Skip to content

Instantly share code, notes, and snippets.

View aadlani's full-sized avatar
🚀

Anouar ADLANI aadlani

🚀
View GitHub Profile
const xl = require('excel4node');
const costsObj = {
'supplies': {
'paper': 100,
'toner': 50,
},
'equipment': {
'laptops': 3500,
'accessories': 150
ifconfig $(ip route list | awk '/^default/ {print $5}') | grep -sw "inet" | tr ":" " " | awk {'print $3"."$7'} | { IFS=. read -r i1 i2 i3 i4 m1 m2 m3 m4; printf "push \"route %d.%d.%d.%d %d.%d.%d.%d\"\n" "$((i1 & m1))" "$((i2 & m2))" "$((i3 & m3))" "$((i4 & m4))" $m1 $m2 $m3 $m4; } | sed '/your local subnet/ r /dev/stdin' /etc/openvpn/server.conf | uniq | sudo tee /etc/openvpn/server.conf

Keybase proof

I hereby claim:

  • I am aadlani on github.
  • I am aadlani (https://keybase.io/aadlani) on keybase.
  • I have a public key ASDE_wk_rIHMhOgoyjhFhVOk69h2gyGLPpZJFit0QHIsmQo

To claim this, I am signing this object:

@aadlani
aadlani / ruby1.9_idn_002.patch
Created September 4, 2010 12:48
Patch the idn gem for ruby 1.9
# Retreive the patch file and name it idn.patch
...
# Download the archive from ruby forge of Ruby IDN
$ wget http://rubyforge.org/frs/download.php/8555/idn-0.0.2.tar.gz
# Extract the archive
$ tar -zxvf idn-0.0.2.tar.gz
x idn-0.0.2/
x idn-0.0.2/README