README is empty
This file contains hidden or 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
ls -1 *.gz | awk '{print "echo "$1" && pv "$1"|gunzip -c>"$1}' | sed -e 's/.gz//3' | sh |
This file contains hidden or 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 | |
# Author: Eric Blue | |
# Date: 2012-11-01 | |
# | |
# Runs Tcpdump, sniffs for SQL traffic and prints out high-level timers and counters for performance tracking | |
# Idea taken from Poor man's query logging - http://www.mysqlperformanceblog.com/2008/11/07/poor-mans-query-logging/ | |
# | |
INTERFACE=$1 |
This file contains hidden or 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 | |
# Example: ./migrate_cvs_git.sh /usr/local/cvsroot/dev/api-sandbox sandbox https://[email protected]/scm/proj/repo-sandbox.git | |
if [ $# -lt 2 ] | |
then | |
echo "Usage: $0 <cvs_dir> <git_project_name> <git_origin_url>"; | |
exit 1; | |
fi |
This file contains hidden or 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 | |
# Usage: ngrep_search.sh <search_term> | |
find . -name 'capfiles*' | xargs -I % ngrep -t -I % -q $1 |
This file contains hidden or 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 | |
# Found at http://askubuntu.com/questions/528101/what-is-the-cve-2014-6271-bash-vulnerability-and-how-do-i-fix-it | |
# From cft over at Hacker News | |
mkdir src | |
cd src | |
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz | |
#download all patches | |
for i in $(seq -f "%03g" 0 25); do wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; done |
This file contains hidden or 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
Verifying that +ericblue is my blockchain ID. https://onename.com/ericblue |
This file contains hidden or 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 | |
# Deploys new authorized key from id_rsa.pub via SSH so new SSH connections will not require password authentication | |
# Example: cd ~/user; ./deploy_ssh_key.sh [email protected] | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 <user@hostname>"; | |
exit 1; |
This file contains hidden or 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 | |
# launch_screens.sh - https://gist.github.com/ericblue/5bad210e113c56ade8766506fc99e611 | |
# Launch script using screens to automatically create named sessions and launch executed commands while detaching immediately | |
# Useful as a startup helper script to create multiple screen sessions you can later reattach to (e.g. screen -r screen1) | |
# Key name = the screen session name | |
# Key value = command to execute | |
declare -A screens=( | |
["screen1"]="/usr/bin/top" |
This file contains hidden or 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
# Generate a new Key | |
openssl genrsa -out cert-domain.key 2048 | |
# Generate a new Certificate Request | |
openssl req -new -sha256 -key cert-domain.key -out cert-domain.csr |
OlderNewer