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
# Copyright (c) 1999-2011, Juniper Networks Inc. | |
# All rights reserved. | |
# Author: Jeremy Schulman | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# |
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
# Copyright (c) 1999-2011, Juniper Networks Inc. | |
# All rights reserved. | |
# Author: Jeremy Schulman | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# |
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
env_mgr() { | |
if [ "$PWD" != "$OLDPWD" ]; then | |
OLDPWD="$PWD"; | |
if [ -d .git ]; then | |
git pull | |
if [ -e ".rock.yml" ]; then | |
ROCK_RUNTIME=$(cat .rock.yml |grep runtime |cut -d" " -f2) | |
eval $(rock --runtime=${ROCK_RUNTIME} env) |
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 | |
additional_strace_args="$1" | |
MASTER_PID=$(ps auwx | grep php-fpm | grep -v grep | grep 'master process' | cut -d ' ' -f 6) | |
while read -r pid; | |
do | |
if [[ $pid != $MASTER_PID ]]; then | |
nohup strace -r -p "$pid" $additional_strace_args >"$pid.trc" 2>&1 & |
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
1.0.0.0/8,apnic | |
2.0.0.0/8,ripe | |
3.0.0.0/8,arin | |
4.0.0.0/8,arin | |
5.0.0.0/8,ripe | |
6.0.0.0/8,arin | |
7.0.0.0/8,arin | |
8.0.0.0/8,arin | |
9.0.0.0/8,arin | |
10.0.0.0/8,rfc1918 |
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
ROCKET_GIT_BRANCH=$(git branch 2>/dev/null|sed 's/* //');if [[ -n $ROCKET_GIT_BRANCH ]]; then echo $ROCKET_GIT_BRANCH; 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
### Keybase proof | |
I hereby claim: | |
* I am mikemackintosh on github. | |
* I am loves2splug (https://keybase.io/loves2splug) on keybase. | |
* I have a public key whose fingerprint is CC33 800C C1DE 112D 6DC9 FB14 CEE7 9D3F 9255 989E | |
To claim this, I am signing this object: |
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 | |
################################################################################################## | |
## 01/01/2015 --- RT-AC56U / RT-ACRT66U / RT-AC68U Firewall Addition v0.7.6 # | |
################################################################################################## | |
### ----- Make Sure To Edit The Following Files ----- # | |
### /jffs/scripts/firewall <-- Blacklists IP's From /tmp/home/root/ipset.txt # | |
### /jffs/scripts/ipset.txt <-- Banned IP List/IPSet Rules # | |
################################################################################################## | |
############################## |
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
sudo easy_install Pygments | |
alias cat='pygmentize -O console256 -g' |
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 | |
gen_key() { | |
bits=4096 | |
keytype=$1 | |
ks="${keytype}_" | |
key="keys/ssh_host_${ks}key" | |
if [ ! -e "${key}" ] ; then | |
if [ "${keytype}" = 'dsa' ] ; then | |
bits=1024 | |
elif [ "${keytype}" = 'ecdsa' ] ; then |
OlderNewer