Skip to content

Instantly share code, notes, and snippets.

View brianly's full-sized avatar
🦙
Don't get much time to hack right now due to 👶

Brian Lyttle brianly

🦙
Don't get much time to hack right now due to 👶
View GitHub Profile
@brianly
brianly / free_email_provider_domains.txt
Last active September 8, 2015 18:19 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
@brianly
brianly / hack.sh
Created March 31, 2012 14:57 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@brianly
brianly / remove-xcode.sh
Created April 18, 2012 19:05
Xcode removal commands
sudo /Developer/Library/uninstall-devtools –mode=all
sudo rm -rf /Developer*
sudo rm -f /Applications/*Xcode.app
from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Deployment.Application;
using System.Globalization;
using System.Linq;
using System.Reactive.Linq;
using System.Timers;
using System.Windows;
@brianly
brianly / synciefind
Created October 31, 2012 21:38
Finds lines in the Syncie Log page. Copy the Syncie page to a text file first, obviously.
#!/usr/bin/python
import re
import argparse
import locale
# Accept a sane looking network ID
parser = argparse.ArgumentParser(description='Syncie Log Parser')
parser.add_argument('-n', action="store", dest="network", type=int)
args = parser.parse_args()
@brianly
brianly / offie.py
Created December 30, 2012 03:01 — forked from anonymous/offie.py
from boto import ec2
regions = ec2.regions()
for region in regions:
print region.name
conn = ec2.connect_to_region(region.name)
instances = conn.get_all_instances()
@brianly
brianly / acrylaport.py
Last active December 11, 2015 01:18
The guts of a script to convert posts from a WordPress blog export into markdown for use with Acrylamid.
import os
import codecs
import xml.etree.ElementTree as etree
from dateutil import parser as du
from urlparse import urlparse
def parse_export(path):
"""Parses the WordPress export file into a Python-native format"""
@brianly
brianly / gist:4574309
Created January 19, 2013 18:55
Stupid WinForms example showing how to Embed a browser control and handle Yammer OAuth.
// Add these to a form:
// * Web Browser
// * Button 1 (starts the process)
// * Button 2 (outputs the current URL)
// * TextBox 1 (logs actions)
// * TextBox 2 (for the token)
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("https://www.yammer.com/dialog/oauth?client_id=SFZc9HHFXK77keEFYdXphw&redirect_uri=http://brianlyttle.com/yammer/mshtml/redirect_uri&response_type=token");
@brianly
brianly / auth.py
Last active December 14, 2015 11:38
An example showing you how to get an Access Token with YamPy.
# -*- coding: utf-8 -*-
import os
import yampy
import webbrowser
# Configure all of these constants at https://www.yammer.com/client_applications
CLIENT_ID = ''
CLIENT_SECRET = ''
REDIRECT_URI = 'http://brianlyttle.com/yammer/'