Skip to content

Instantly share code, notes, and snippets.

View remohammadi's full-sized avatar

Reza M Ghayeghchi remohammadi

View GitHub Profile
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@remohammadi
remohammadi / traceroute_http.py
Last active August 29, 2015 14:19
Http Traceroute
#! /usr/bin/env python
import sys
import time
from scapy.all import *
# thanks to http://jvns.ca/blog/2013/10/31/day-20-scapy-and-traceroute/
if len(sys.argv) < 2:
print "Usage: %s example.org" % sys.argv[0]

Keybase proof

I hereby claim:

  • I am remohammadi on github.
  • I am rezamohammadi (https://keybase.io/rezamohammadi) on keybase.
  • I have a public key whose fingerprint is A5D4 4927 C8D6 4527 B821 A146 7BBF 1210 9056 1279

To claim this, I am signing this object:

@remohammadi
remohammadi / iranize.sh
Created February 19, 2012 09:27
An script to exclude Iranian ip blocks from the default (vpn) gateway
#!/bin/sh
COMMAND="sudo route add -net"
if [ "$1" = 'n' ]
then
COMMAND="sudo route delete -net"
fi
GW="$2"
if [ -z "$2" ]