Skip to content

Instantly share code, notes, and snippets.

View selenamarie's full-sized avatar

Selena Deckelmann selenamarie

View GitHub Profile
# totally useful - echo the command and '| sudo sh'
http://www.linuxjournal.com/content/running-complex-commands-sudo
# from irc:
To inline a package, but include it at the end of the file:
Package->import;
<some stuff>
Things I need:
* URL grabber that pulls all URLs from all services I use, categorizes them
* Feed aggregator for all services: goog reader, twitter, last.fm, blogs
* Distributed password service (maybe GPG'd doc in github?)
* Automagic backup & conversion for all talks
from the interwebs:
http://forums.macrumors.com/showpost.php?s=645db4878059e6c26838e3b7bd062eb6&p=2669623&postcount=4
Create a folder with the contents you want on your ISO.
Open Disk Utility and use the New Image from Folder menu item to create an image. Ensure it is uncompressed and use the CD/DVD master option.
In my experience this creates HFS+ masters which are no good in Windows.
thinking about using these as a replication stream:
* standard types: bool, int32, float, double, and string
* don't use 'required' when defining fields
* Each field has a unique tag, 1-15 requiring one less bit than higher nums
** suggested that repeated values are particularly good candidates for this optimization
* C++ generated code reference: http://code.google.com/apis/protocolbuffers/docs/reference/cpp-generated.html
* Add GOOGLE_PROTOBUF_VERIFY_VERSION macro as best practice in main()
PLAN:
Set up pg_replicator as a reader of the 'transaction' log
phase 1: output to text
phase 2: use libpq to apply statements to pg
phase 3: output as pg protocol (?)
http://www.learningdrizzle.com/?p=53
selena@lulu:~ #508 17:34 :) whois 74.117.116.67
OrgName: Parked.com, Ltd.
OrgID: PARKE-38
Address: PO Box 10314
City: Grand Cayman
StateProv: CAYMAN ISLANDS
PostalCode: KY1-1003
Country: KY
@selenamarie
selenamarie / foo.pl
Created March 8, 2010 21:44 — forked from rbuels/foo.pl
my ($attr) = @$token[2];
next unless exists $attr->{rel};
chomp $attr->{rel};
my @rels = split ' ', $attr->{rel};
for my $rel (@rels) {
if( $rel && $rel eq "hub") {
@selenamarie
selenamarie / virtualenv experimentation
Created January 20, 2011 22:53
trying to set up python 2.7 on new system (ubuntu linux)
What I did to get virtualenv going
http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
http://www.logilab.org/blogentry/aleufroy
sudo easy_install virtualenv
# this is for my new project directory
virtualenv --no-site-packages --python=/usr/local/python2.7/bin/python myproject
@selenamarie
selenamarie / goog_storage_notes.py
Created February 10, 2011 22:21
futzing with google storage
#!/usr/bin/python
# easy_install boto
# created .boto config file
# read: http://thurloat.com/2010/06/07/google-storage-and-app-engine/
# https://gist.github.com/425480
# https://code.google.com/apis/storage/docs/gspythonlibrary.html
# Google storage video from cloudstock: http://www.cloudstockevent.com/10/sessions/Introduction-to-Google-s-Cloud-Platform-Technologies
@selenamarie
selenamarie / TIME_WAIT research
Created February 23, 2011 16:27
Stuff about lots of time_wait sockets open
http://forums.oracle.com/forums/thread.jspa?threadID=1107568&tstart=3
http://www.communigate.com/cgatepro/Scalability.html#TimeWait
http://forum.configserver.com/viewtopic.php?t=1565
http://forums.theplanet.com/index.php?showtopic=62399
http://www.sunmanagers.org/pipermail/sunmanagers/2004-September/032709.html
--> details about what time_wait procs are/do, consume resources