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 | |
# Source of random data | |
#DEV=/dev/urandom | |
#DEV=/dev/random | |
#DEV=/dev/hwrng | |
DEV=/var/run/rtl_entropy.fifo | |
# Remap unused characters | |
# OWASP will no longer look like alphanum |
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/php | |
<?php | |
$length = 10; | |
if ($argc > 1) { | |
if ($argv[1] == '-h' || $argv[1] == '--help') { | |
echo basename($argv[0]) . ' [-h|--help] [length]' . PHP_EOL; | |
echo 'length defaults to 10' . PHP_EOL; | |
exit; |
This file has been truncated, but you can view the full file.
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 | |
scale=3 | |
if [ $# -lt 1 ]; then | |
fract=64 | |
else | |
fract=$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
#!/bin/dash | |
# Is this script already running? | |
pidof -x $(basename $0) -o $$ >/dev/null && 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/bash | |
# must be run via sudo | |
cd /sys/bus/pci/drivers/ohci-pci | |
for i in ????:??:??.?;do echo -n "$i" >unbind;echo -n "$i" >bind;done |
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 | |
COLS=`tput cols` | |
ROWS=$[`tput lines`-1] | |
function printgraph() { | |
if [ $TYPE == hex ]; then | |
COUNT1=$[COLS/4] | |
COUNT2=$[ROWS/2] | |
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
#!/bin/bash | |
if [ $# -ne 1 ] | |
then | |
echo | |
echo "usage: $0 <email@address>" | |
echo | |
echo | |
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 | |
header('Last-Modified: '.gmdate('D, d M Y H:i:s', time()).' GMT'); | |
header('Expires: '.gmdate('D, d M Y H:i:s', 0).' GMT'); | |
header('Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, FALSE'); | |
header('Pragma: no-cache'); | |
header('Content-Disposition: attachment; filename="test.file"'); | |
header('Content-type: application/octet-stream'); | |
header('Content-Length: 134217728'); | |
flush(); |
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 test ! -e 5_digit_primes.txt.xz; then | |
echo 5_digit_primes.txt.xz does not exist | |
echo $0 requires this file | |
echo Please generate it with the following command | |
echo "seq 10007 99991|factor|grep '^\([^:]*\): \1$'|cut -d: -f1|xz -9e >5_digit_primes.txt.xz" | |
exit 2 | |
fi |
OlderNewer