Skip to content

Instantly share code, notes, and snippets.

@Rafiot
Rafiot / yaf-notes.MD
Created January 9, 2016 06:41 — forked from adulau/yaf-notes.MD
yaf notes
@Rafiot
Rafiot / keybase.md
Created February 17, 2015 12:39
Keybase proof

Keybase proof

I hereby claim:

  • I am rafiot on github.
  • I am rafiot (https://keybase.io/rafiot) on keybase.
  • I have a public key whose fingerprint is 8647 F5A7 FFD3 50AE 38B6 E22F 32E4 E1C1 33B3 792F

To claim this, I am signing this object:

#!/usr/bin/env python3
import pygame
from random import randint
from pygame.locals import QUIT
class Box(pygame.sprite.Sprite):
def __init__(self, w, h, color):
super().__init__()
@Rafiot
Rafiot / bad.asc
Created August 2, 2014 08:58
python-gnupg import issue
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBEta9/0BEACwxZeeWlwzuBmtsC4HH8vf+nwYAl0d0shWIHHwnvqV/34U6p4f
M8xKDhJwu4PswlzRgAModAek/GtY1Pmh6gosFOYSZsvi3cEHuHo2gL0nAZV0VNnb
2849cKzi1o1L0sc5LhZncyPL7NB3LJXH9ZwJp6MFm4ick3Hztmo+sP+DPT9BVxeO
XvzKF4UISuRdYgVaPdX+qyJk/TlVOLeOM31lUYNstD1aP1uohxQPCwLZEagT77md
I5bjUsPyRIYJ3c7ZDLGozVnxcxhrMikx+wu1U3wvyKk9djAyBEVbbpt6lJCIwmJG
TC6NHh1hKuAHhpLBE+dr0yaAbikh6aJN/pfMnqAuTpWf8LgseP7wW0nPZNPvIkLB
H6hsKWOrKnIJ9zFEBS/Q/UDhJV0M7RkMhZsJGXXXD3mFktH7Wo3zxdImt+El6cSi
WTI6OLzJAGXqYMaTSmd9acvQY+9jGKuh5reGR5R1ieDDWczh98DK87o9/VpGs+KF
@Rafiot
Rafiot / iporigin.pl
Created May 3, 2011 16:48 — forked from adulau/iporigin.pl
Lookup origin, country and BGP Ranking for a given IP address
#!/usr/bin/perl
#
# Takes as input IP address (one per line)
# and output the guessed IP location along with ASN origin and its description
# and the BGP Ranking of each ASN
#
#perl ip2asn.pl
# www.microsoft.com
# US;AS8075;MICROSOFT-CORP---MSN-AS-BLOCK - Microsoft Corp;65.55.12.249;8075,1.00036643769349,3/9
# 8.8.8.8