Skip to content

Instantly share code, notes, and snippets.

View AliSajid's full-sized avatar
🏠
Working from home

Ali Sajid Imami AliSajid

🏠
Working from home
View GitHub Profile
# Generated by iptables-save v1.4.7 on Thu Jun 19 11:52:07 2014
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [10278:531921]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT
#!/usr/bin/env ruby
require 'net/http'
# looks to see if you're a link to a chiptune
# if so, returns the chiptune url and the name of the chiptune.
# if not, returns nil.
def get_list(url)
uri = URI.parse(url)
response = Net::HTTP.get_response(uri)