Skip to content

Instantly share code, notes, and snippets.

View kespindler's full-sized avatar

Kurt Spindler kespindler

View GitHub Profile
@kespindler
kespindler / get_page_with_cookiejar.py
Created October 1, 2011 11:23 — forked from jabbalaci/get_page_with_cookiejar.py
download a cookie-protected page using cookielib
#!/usr/bin/env python
import os
import sqlite3
import cookielib
import urllib2
COOKIE_DB = "{home}/.mozilla/firefox/cookies.sqlite".format(home=os.path.expanduser('~'))
CONTENTS = "host, path, isSecure, expiry, name, value"
COOKIEFILE = 'cookies.lwp' # the path and filename that you want to use to save your cookies in
@kespindler
kespindler / import_cards.js
Created November 24, 2011 17:40
Trello: Add multiple cards bookmarklet
(function () {
var body = document.getElementsByTagName("body")[0];
var bg = document.createElement("div");
bg.setAttribute("style", "position: absolute; z-index: 1000; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.5)");
var form = document.createElement("div");
form.setAttribute("style", "margin: 0 auto; height: 100%; width: 800px; padding: 50px; background: rgb(200, 200, 220);");
form.appendChild(document.createTextNode("Board: "));
var list_select = document.createElement("select");
var lists = boardView.model.listList.models;