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
#!/usr/bin/env php | |
<?php | |
putenv("XDEBUG_CONFIG=idekey=netbeans-xdebug"); | |
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main'); | |
if (strpos('/usr/bin/php', '@php_bin') === 0) { | |
require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'PHPUnit' . DIRECTORY_SEPARATOR . 'Autoload.php'; | |
} else { |
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
#!/usr/bin/env php | |
<?php | |
/** Build arg string */ | |
if(isset($argv)) { | |
/** Remove original phpunit script call argument */ | |
unset($argv[0]); | |
/** Build arguments into a string */ |
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 | |
formail -R cc X-original-cc \ | |
-R to X-original-to \ | |
-R bcc X-original-bcc \ | |
-f -A"To: [email protected]" \ | |
| /usr/sbin/sendmail -t -i | |
# pipe all to a log instead, comment out formail code | |
#tee -a /tmp/trapmail.log > /dev/null |
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
#!/usr/bin/env php | |
<?php | |
$zip = new ZipArchive(); | |
if ($zip->open('name.zip') === true) { | |
var_dump(getTotalUncompressedSize($zip)); | |
$zip->close(); | |
} |
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
--- | |
layout: page | |
sitemap: | |
priority: 0.7 | |
changefreq: monthly | |
lastmod: 2014-08-01T15:06:00 | |
--- | |
<div class="row-fluid"> | |
<div class="span12 padded"> |
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 | |
INJECTION="All your bash" | |
OUTPUT=$(env x='() { :;}; echo '"$INJECTION"'' bash -c "echo are belong to us." 2>&1); | |
if [[ $OUTPUT == *"$INJECTION"* ]] | |
then | |
echo -e "WARNING THIS SERVER IS VULNERABLE - UPDATE BASH NOW." | |
else | |
echo -e "All clear you can relax!"; |
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 | |
HOST=$1 | |
PORT=$2 | |
INJECTION="sslv3 alert handshake failure" | |
OUTPUT=$(openssl s_client -connect $HOST:$PORT -ssl3 2>&1); | |
FAILED="connect:errno" | |
if [[ $OUTPUT == *"$INJECTION"* ]] |
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
build_settings: | |
ignore: | |
- "vendor" | |
- "tests" | |
setup: | |
composer: | |
action: "install --no-dev" |
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 | |
if [ ! "$#" -eq 1 ]; then | |
echo "Usage: sudo $0 VIRTUAL_HOST_NAME" | |
exit | |
fi | |
if [ ! $(whoami) = "root" ]; then | |
echo "You require root privilages for server maintanence, use sudo?" | |
exit |
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/zsh | |
if [ -z "$1" ] | |
then | |
echo "Please specify the project you wish to watch with jekyll watch e.g ./Scripts/jekyll-blog projectname" | |
else | |
cd ~/Software/Jekyll/ | |
nohup ~/.rbenv/shims/bundle exec jekyll build --source ~/NetBeansProjects/$1/ --destination ~/NetBeansProjects/$1/_site --watch 1>&2 & | |
fi |
OlderNewer