This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<opml version="1.1"> | |
<!--Generated by NewsBlur - www.newsblur.com--> | |
<head> | |
<title>NewsBlur Feeds</title> | |
<dateCreated>2014-09-03 16:23:07.139591</dateCreated> | |
<dateModified>2014-09-03 16:23:07.139591</dateModified> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% cat test.txt | ./geo.py | |
171.111.153.168 is China | |
4.2.2.2 is United States | |
91.188.124.232 is Poland | |
8.6.6.4 is United States | |
66.163.128.206 is United States | |
62.210.38.226 is France | |
94.173.21.140 is United Kingdom | |
117.21.191.208 is China |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
if [[ -z $1 ]]; then | |
echo 'syntax: shootphantom URL [name] (.png will be added for you)' | |
echo 'if NAME is empty a name will be attempted to be guessed' | |
return 1 | |
fi | |
DATE=`date +%s` | |
URL=$1 | |
echo 'url is:' $URL | |
if [[ ! -z $2 ]];then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ScanIP(Base): | |
__tablename__='ScanIP' | |
pk = Column(Integer,Sequence('pk'), primary_key=True) | |
ip = Column(VARCHAR(39)) | |
class ScanPort(Base): | |
__tablename__='ScanPort' | |
pk = Column(Integer,Sequence('pk'), primary_key=True) | |
ip_pk= Column(Integer, ForeignKey('ScanIP.pk')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class portscan(Base): | |
__tablename__ = 'portscan' | |
pk = Column(Integer,Sequence('pk'), primary_key=True) | |
ip = Column(VARCHAR(39)) | |
dtime = Column(DATETIME) #because we're keeping a log and gonna update it every so | |
p21 = Column(Boolean) | |
p22 = Column(Boolean) | |
p53 = Column(Boolean) | |
p80 = Column(Boolean) | |
p443 = Column(Boolean) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void getrunners(unsigned int *restrict running, unsigned int *restrict blocked) { | |
struct direct *ent; | |
DIR *proc; | |
*running=0; | |
*blocked=0; | |
if((proc=opendir("/proc"))==NULL) crash("/proc"); | |
while(( ent=readdir(proc) )) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Replace Text On Webpages | |
// @namespace http://userscripts.org/users/23652 | |
// @description Replaces text on websites. Now supports wildcards in search queries. Won't replace text in certain tags like links and code blocks | |
// @include http://* | |
// @include https://* | |
// @exclude http://userscripts.org/scripts/review/* | |
// @copyright JoeSimmons | |
// @version 1.0.52 | |
// @license http://creativecommons.org/licenses/by-nc-nd/3.0/us/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import simplejson | |
import urllib2 | |
url="http://www.uasstatus.com/spaceapi.json" | |
out=urllib2.urlopen(url).read() | |
json=simplejson.loads(out) | |
if json['open']== True: | |
line= "#[fg=green,bold]|{0}|" | |
else: | |
line= "#[fg=red]|{0}|" |
NewerOlder