A list of things that can/should be tested, preferably before commit/receive.
- SimianArmy
- muhafiz
- appCanary - Monitor servers for vulnerabilities
| find . -type f \( ! -name "*.php" -and ! -name "*.css" -and ! -name "*.js" -and ! -name "*.jpg" -and ! -name "*.png" -and ! -name "*.gif" \) -not -path "*/vendor/*" |
| #!/bin/bash | |
| # Rails Terminals for Rails 3.2/4 and Gnome | |
| # A simple script that opens a Gnome terminal with titled tabs: | |
| # 1. Rails Server | |
| # 2. Spork | |
| # 3. bash | |
| # and opens the app in: | |
| # 1. Sublime Text | |
| # 2. Browser |
A list of things that can/should be tested, preferably before commit/receive.
| GIT_WORK_TREE=/home/user/public_html git checkout -f |
| #!/bin/bash | |
| min_args=2 | |
| if [[ $# < $min_args ]]; then | |
| echo "At least $min_args arguments are required." | |
| exit 1 | |
| fi | |
| source_dir=${1%/} |
| <?php | |
| /** | |
| * A function that can insert at both integer and string positions | |
| * | |
| * @param array $array | |
| * @param int|string $position | |
| * @param mixed $insert | |
| */ | |
| function array_insert(&$array, $position, $insert) |
| @echo off | |
| REM Helps securing Skype profile by storing it in a TrueCrypt drive | |
| REM 1. Create the container if you don't have it | |
| REM 2. Disable auto starting of Skype on Windows Start | |
| REM 3. Log out and completely exit Skype | |
| REM 4. Move %APPDATA%\Skype into the container, e.g. K:\AppData\Skype | |
| REM 5. mklink /D "%APPDATA%\Skype" "K:\AppData\Skype" | |
| REM 6. Add a shortcut like `C:\Code\truecrypt_skype.bat D:\test\example.tc` | |
| REM to "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup" |
| taskkill /F /IM explorer.exe | |
| cd /d %userprofile%\AppData\Local | |
| attrib –h IconCache.db | |
| del IconCache.db | |
| start explorer |
| <?php | |
| if (!empty($_POST) && isset($_FILES['file']) | |
| && $_FILES['file']['error'] == UPLOAD_ERR_OK | |
| ) { | |
| header( | |
| 'Content-Disposition: attachment; filename="' | |
| . $_FILES['file']['name'] . '.gz";' | |
| ); | |
| echo gzencode(file_get_contents($_FILES['file']['tmp_name'])); | |
| exit; |