Skip to content

Instantly share code, notes, and snippets.

View orenmazor's full-sized avatar

Oren Mazor orenmazor

  • AgileBits (1Password)
  • Toronto, ON, Canada
View GitHub Profile
@orenmazor
orenmazor / popclientdump.py
Created August 8, 2011 18:38
lightweight gmail downloader
# quick hack to download a bunch of gmail emails for testing. this is the easiest way to do this the hardway.
from poplib import POP3_SSL, error_proto
from sys import argv
from time import time
from argparse import ArgumentParser
def gmaildump(username, password, quantity):
gmail = POP3_SSL("pop.gmail.com", 995)
# gmail.set_debuglevel(5)
@orenmazor
orenmazor / node_getclicky.js
Created October 18, 2011 17:16
talking to getclicky from node
var http = require('http');
var querystring = require('querystring');
function getclick(remoteaddr,href,title,ref,ua)
{
var site_id = '';
var sitekey_admin = '';
var params = {"site_id": site_id,
"sitekey_admin":sitekey_admin,
"ip_address":remoteaddr,
@orenmazor
orenmazor / gist:1598946
Created January 12, 2012 05:27
python snippet to decode base64
from base64 import b64decode
for attachment in inbound_json["attachment"]:
blob = b64decode(attachment["Content"])
file = open(attachment["Name"],"w")
file.write(blob)
file.close()
IDIOTS IRKED BY SUPREME COURT RULING >> Fleeing to Canada for a life unfettered by universal healthcare //
“#SCOTUS holds up free healthcare for everyone?! Screw this commie country, I'm moving to #Canada #whoswithme.” -@VanSummers, Twitter
A handful of Conservatives disappointed with Thursday’s Supreme Court ruling turned their sights to Canada in hopes of a life unfettered by universal healthcare. Canadians have enjoyed universal healthcare since 1961.
Here's a guide to help future dissidents flee to countries more in keeping with their beliefs.
For the Obamacare haters:
If the thought of watching the poor get healthy on government cash makes you sick, consider moving to Burma. Its annual per-capita spending on healthcare is $4.50 and comes with a heaping side of human rights violations. If that still rankles, you can escape health care completely in the Darién Gap. This famously wild land bridge between Panama and Colombia is full of drug traffickers, FARC militia, kidnappers, all manner of lethal wild
class ETLJob
include Sidekiq::Worker
sidekiq_options :queue => :ETLTasks, :backtrace => true, :retry => false
def perform(control_file)
ETL::Engine.init({:execution_dbname=>"etl_execution_prod"})
ETL::Engine.process("#{Dir.pwd}/control/#{control_file}.ctl")
end
end
xdgfhklhkdgv kxfbsoe .boolean
sfkugbwkjo9c wekjw3rgiuxiox b if. then
iuywe liuku;sdfhi;etwjk kn;sehiouksafjkasf;ikse oisi;sgdk; sequence
ghu;dlou;gbviufrghuEFSijphvs piuhsdfxipergoiusdljbxdvpiubvxlhjsdfljhgsvlkj.javascript
slhjvbsdfkjwfcgbAIPUdgwik;dgbfkjbdalkiwebg.shopify.fart
asfuybaljwcgvxvahswlidbvaszclgiujsd,jvxkuvcbw.e.mbfvzxdgfhklhkdgv kxfbsoe .boolean
sfkugbwkjo9c wekjw3rgiuxiox b if. then
iuywe liuku;sdfhi;etwjk kn;sehiouksafjkasf;ikse oisi;sgdk; sequence
ghsjdmjlaksjdaslkdjalksdjalksjdlakksksjeueueueueueueueueueueu;dlou;gbviufrghuEFSijphvs piuhsdfxipergoiusdljbxdvpiubvxlhjsdfljhgsvlkj.javascript
REPORTIFY IS FIXED! TADA!
xdgfhklhkdgv kxfbsoe .boolean
sfkugbwkjo9c wekjw3rgiuxiox b if. then
iuywe liuku;sdfhi;etwjk kn;sehiouksafjkasf;ikse oisi;sgdk; sequence
ghu;dlou;gbviufrghuEFSijphvs piuhsdfxipergoiusdljbxdvpiubvxlhjsdfljhgsvlkj.javascript
slhjvbsdfkjwfcgbAIPUdgwik;dgbfkjbdalkiwebg.shopify.fart
asfuybaljwcgvxvahswlidbvaszclgiujsd,jvxkuvcbw.e.mbfvzxdgfhklhkdgv kxfbsoe .boolean
sfkugbwkjo9c wekjw3rgiuxiox b if. then
iuywe liuku;sdfhi;etwjk kn;sehiouksafjkasf;ikse oisi;sgdk; sequence
ghsjdmjlaksjdaslkdjalksdjalksjdlakksksjeueueueueueueueueueueu;dlou;gbviufrghuEFSijphvs piuhsdfxipergoiusdljbxdvpiubvxlhjsdfljhgsvlkj.javascript
REPORTIFY IS FIXED! TADA!
@orenmazor
orenmazor / sha256sum
Created July 16, 2014 15:10
sha256sum wrapper for shasum
#!/bin/sh
shasum -a 256 $1 $2 $3
# -----------------------------------------------------------------------------
#
# This file is the copyrighted property of Tableau Software and is protected
# by registered patents and other applicable U.S. and international laws and
# regulations.
#
# Unlicensed use of the contents of this file is prohibited. Please refer to
# the NOTICES.txt file for further details.
#
# -----------------------------------------------------------------------------
ant
gcc
g++
libkrb5-dev
libmysqlclient-dev
libssl-dev
libsasl2-dev
libsasl2-modules-gssapi-mit
libsqlite3-dev
libtidy-0.99-0