I hereby claim:
- I am shamangeorge on github.
- I am shamangeorge (https://keybase.io/shamangeorge) on keybase.
- I have a public key whose fingerprint is 4DDC E17F 4BBB F17A 2238 5FBF 543D C658 ABC5 A3F2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# | |
# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN | |
# on a Ubuntu server instance. Tested with 14.04 (Trusty) AND 12.04 (Precise). | |
# With minor modifications, this script *can also be used* on dedicated servers | |
# or any KVM- or XEN-based Virtual Private Server (VPS) from other providers. | |
# | |
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN | |
# YOUR AMAZON EC2 INSTANCE STARTS! | |
# |
#!/bin/sh | |
exec < /dev/tty | |
./.git/hooks/validate_commit.rb $1 |
<body> | |
<video id="sample" src="" controls="true"></video> | |
<video id="sample2" src="" controls="true"></video> | |
<script> | |
var videos = [ | |
document.getElementById('sample'), | |
document.getElementById('sample2') | |
]; | |
initHandler(0); |
#!/bin/bash | |
/opt/vhl/ffmpeg/bin/ffmpeg -i audio.in -ac 1 -acodec pcm_s16le -ar 16000 audio.out |
#deviceMotionVariables { | |
text-align: justify; | |
width: 200px; | |
border: 5px solid black; | |
position: absolute; | |
right: 10%; | |
top: 5%; | |
display: none; | |
} |
#!/bin/bash | |
#################################### | |
# | |
# Backup to NFS mount script with | |
# grandfather-father-son rotation. | |
# | |
#################################### | |
# What to backup. | |
backup_files="/home /var/www /var/spool/mail /etc /root /boot /opt" |
for url in `curl http://www.vagrantbox.es | grep '<td>h' | sed 's/<th scope="row">//g' | sed 's/<\/td>//g' | sed 's/<td>//g' | sed '/goo.gl/d' | sed 's/\ //g'`; do file=`echo $url | sed 's/\ //g' | sed 's/\///g' | sed 's/disk1//g' | sed 's/http\://g' | sed 's/https\://g'`; vagrant box add $file $url; done; |
dir = 1$ | |
for gitconfig in `find $dir -wholename "*.git/config" -type f`;do nano "$gitconfig"; done |
egrep -o '([0-9]{1,3}\.){3}[0-9]{1,3}' # finds ips in a file | |
# From http://stackoverflow.com/questions/1444406/how-can-i-delete-duplicate-lines-in-a-file-in-unix/1444448#1444448 | |
# delete duplicate, consecutive lines from a file (emulates "uniq"). | |
# First line in a set of duplicate lines is kept, rest are deleted. | |
sed '$!N; /^\(.*\)\n\1$/!P; D' | |
# delete duplicate, nonconsecutive lines from a file. Beware not to | |
# overflow the buffer size of the hold space, or else use GNU sed. | |
sed -n 'G; s/\n/&&/; /^\([ -~]*\n\).*\n\1/d; s/\n//; h; P' |