Skip to content

Instantly share code, notes, and snippets.

ausburyl
badlt
blackout
bramang
bunsenhoneydew
callahan
corsairmarks
dbrinks
efink
frodo
#!/bin/env bash
# Author Paul Wand 2010
#
# This script creates users based text file containing usernames
#
# requires apg (automatic password generator):
# sudo yum install apg
# nab list of users from gist.github
users=`curl http://gist.github.com/raw/563371/6db567224f54db7e061c75789e3dec5dc740f53f/eosuserroster`
148.61.162.132 rugby
148.61.162.133 bessy
148.61.162.135 lionssuck
148.61.162.136 cupcaketime
148.61.162.137 gertrude
148.61.162.138 theshire
148.61.162.139 blkbox
148.61.162.140 dunesky
148.61.162.141 thingone
148.61.162.142 bluesky
@hiddendragonXVII
hiddendragonXVII / define.py
Created September 7, 2010 21:47
quick python script to define words
#!/usr/bin/env python
from suds import WebFault
from suds.client import Client
import sys
class definition(object):
def __init__(self, input):
url = 'http://services.aonaware.com/DictService/DictService.asmx?wsdl'
client = Client(url)
d = dict(word=input)
@hiddendragonXVII
hiddendragonXVII / example.html
Created July 31, 2011 02:59 — forked from j4mie/example.html
A tiny shim for Processing/Coffeescript prototyping
<!DOCTYPE html>
<title>CoffeeScript/Processing</title>
<script src="https://raw.github.com/jeresig/processing-js/master/processing.js"></script>
<script src="https://raw.github.com/jashkenas/coffee-script/master/extras/coffee-script.js"></script>
<script src="https://raw.github.com/gist/1114064/professing.js"></script>
<script type="text/coffeescript">
sketch ->
@hiddendragonXVII
hiddendragonXVII / hamburgurs.cpp
Created February 22, 2012 20:39
justin's homework
#include <iostream>
#include <string>
using namespace std;
int getHamburgers(){
char more = 'Y';
int total=0;
int numberBurgers = 0;
@hiddendragonXVII
hiddendragonXVII / approved-publishers-without-rss-feeds.py
Created July 26, 2012 22:18
approved publishers without rss feeds
from mongokit import Connection, Document
import json
import feedparser
connection = Connection()
publishers = connection.publisher.master
for publisher in publishers.find( { 'definitely_flag': True } ):
if not publisher.get('rss_feeds'):
ubuntu@ip-10-171-19-12:~/ng-trunk/grail/content_pipeline/content_ingestion/bridgeKeeper$ keeper
10/05/2012 10:01:45 PM [INFO]: * Running on http://0.0.0.0:9001/
{'status': 'pending', 'publisher': '4fd1347ae2a72d781284579b', 'author': 'Kathryn Tully', 'url': 'http://www.forbes.com/sites/kathryntully/2012/10/05/is-art-an-asset-or-an-investment/', 'title': 'Is Art an Asset or an Investment?', 'summary': 'On Wednesday night in New York, at a UBS discussion on fine art and investments, moderator, art adviser and dealer Jason Rulnick asked panelists whether they thought art was an asset or an investment. Pretty much everyone agreed that it was an asset, but were a lot more guarded about its investment potential.', 'content_type': 'article', 'rss_date': 1349459871}
10/05/2012 10:02:02 PM [INFO]: 173.255.195.231 - - [05/Oct/2012 22:02:02] "POST / HTTP/1.1" 200 -
{'status': 'pending', 'publisher': '4fd1347be2a72d78128457a4', 'author': 'Mark Hearn', 'url': 'http://www.engadget.com/2012/10/05/kindle-paperwhite-gets-its
ubuntu@ip-10-171-19-12:~/ng-trunk/grail/content_pipeline/content_ingestion/bridgeKeeper$ keeper
10/05/2012 10:01:45 PM [INFO]: * Running on http://0.0.0.0:9001/
{'status': 'pending', 'publisher': '4fd1347ae2a72d781284579b', 'author': 'Kathryn Tully', 'url': 'http://www.forbes.com/sites/kathryntully/2012/10/05/is-art-an-asset-or-an-investment/', 'title': 'Is Art an Asset or an Investment?', 'summary': 'On Wednesday night in New York, at a UBS discussion on fine art and investments, moderator, art adviser and dealer Jason Rulnick asked panelists whether they thought art was an asset or an investment. Pretty much everyone agreed that it was an asset, but were a lot more guarded about its investment potential.', 'content_type': 'article', 'rss_date': 1349459871}
10/05/2012 10:02:02 PM [INFO]: 173.255.195.231 - - [05/Oct/2012 22:02:02] "POST / HTTP/1.1" 200 -
{'status': 'pending', 'publisher': '4fd1347be2a72d78128457a4', 'author': 'Mark Hearn', 'url': 'http://www.engadget.com/2012/10/05/kindle-paperwhite-gets-its