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 UTM param stripper | |
// @author Paul Irish | |
// @namespace http://github.com/paulirish | |
// @version 1.1 | |
// @description Drop the UTM params from a URL when the page loads. | |
// @extra Cuz you know they're all ugly n shit. | |
// @include http://* | |
// ==/UserScript== |
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
--- MySQL-python-1.2.3/setup_posix.py 2010-06-17 09:21:56.000000000 +0200 | |
+++ MySQL-python-1.2.3-patched/setup_posix.py 2013-11-12 13:05:44.028407794 +0100 | |
@@ -85,6 +85,7 @@ | |
] | |
create_release_file(metadata) | |
del metadata['version_info'] | |
+ libraries.append('stdc++') | |
ext_options = dict( | |
name = "_mysql", | |
library_dirs = library_dirs, |
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
Show hidden characters
{ | |
"cmd": ["sass", "--update", "$file:${file_path}/${file_base_name}.css", "--no-cache", "--style", "compact"], | |
"selector": "source.sass, source.scss", | |
"file_regex": "error (/.*.scss) .Line ([0-9]+):", | |
"osx": { | |
"path": "/usr/local/var/rbenv/shims/:/usr/local/bin:$PATH" | |
}, | |
"windows": { | |
"shell": "true" | |
} |
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
To check if the system is vulnerable: | |
env x='() { :;}; echo vulnerable' bash -c /bin/bash | |
returns 'vulnerable' |
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
import dns.resolver | |
import csv | |
import re | |
import sys | |
domain_cache = {} | |
def test_email_domain(domain): | |
if domain is None: | |
return False |
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
load data local infile 'c:/fierce/fwe_opens.csv' ignore into table opens fields | |
TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' | |
lines terminated by '\n' | |
(email,@check_time,@last_open,total_opens) | |
set mlid = 102866, | |
check_time = from_unixtime(@check_time), | |
last_open = if(@last_open<=0,NULL,date(from_unixtime(@last_open))) | |
; |
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/python | |
import pywapi # http://code.google.com/p/python-weather-api/ | |
import telnetlib | |
import sys | |
if len(sys.argv) != 3: | |
print "USAGE: python print_weather.py <ZIPCODE> <PRINTER_IP>" | |
exit() | |
location_id = sys.argv[1] |
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
<?php print '<?xml version="1.0" encoding="UTF-8"?>'; ?> | |
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> | |
<channel> | |
<title>FierceWireless</title> | |
<link>http://www.fiercewireless.com</link> | |
<description> | |
The latest wireless industry news from FierceWireless | |
</description> | |
<language>en-us</language> |
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
# domain from email address | |
SELECT mid(email from locate('@',email)+1) as domain FROM emails; | |
# domain from URL (hacky) | |
SELECT MID(url,8,LOCATE('/',url,8)-8) AS domain FROM clicks |
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
# First: wget --random-wait --wait=2 --limit-rate=100K http://e.mybio.zerista.com/exhibitor?exhibitor_page={1..142} | |
# But that saves them with a stupid name, so rename using: | |
# ls -d exhib* | sed 's/\(.*\)=\(.*\)$/mv "&" "bio\2.html"/' | sh | |
# | |
from BeautifulSoup import BeautifulSoup | |
import csv | |
import glob | |
import os | |
writer = csv.writer(open("bio.csv", "wb")) |
OlderNewer