Skip to content

Instantly share code, notes, and snippets.

Marc Boeker marcboeker

Block or report user

Report or block marcboeker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marcboeker
marcboeker / authme.sh
Last active Jun 27, 2016 — forked from nutrun/gist:252619
SSH password less auth
View authme.sh
# twitter.com/michael_jones wrote me
# Put in ~/.profile, or similar
# Use like "authme someuser@someserver"
function authme {
ssh $1 'cat >>~/.ssh/authorized_keys' <~/.ssh/id_rsa.pub
}
View reload_nginx.sh
kill -HUP `cat /var/logs/nginx.pid`
@marcboeker
marcboeker / remove_from_git.sh
Created Oct 15, 2014
Remove file or directory from Git
View remove_from_git.sh
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch imgs" HEAD
git filter-branch --tree-filter 'rm -fr imgs' HEAD
@marcboeker
marcboeker / ssh_forward.sh
Created Oct 15, 2014
Forward remote port via SSH
View ssh_forward.sh
ssh -nNT -g -R 9000:localhost:3000 user@remote_server
View gist:4ef03d7f0e24911713c9
interface=wlan0
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=www.example.com
hw_mode=g
channel=6
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
View gist:a533a05e197a65b4aa67
random: Trying to read entropy from /dev/random
Configuration file: etc/hostapd/hostapd.conf
ctrl_interface_group=0
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Using driver-based off-channel TX
You can’t perform that action at this time.