Skip to content

Instantly share code, notes, and snippets.

View tkell's full-sized avatar

Thor tkell

View GitHub Profile
@tkell
tkell / tor-aws.md
Last active November 22, 2016 00:16
Install Tor on AWS, November 2016

As of 2016-11-20, this installs Tor on an AWS Ubuntu Micro EC2 instance

See sources here and here.

Write new apt sources -- you might need to do this manually

echo "deb http://deb.torproject.org/torproject.org xenial main" >> /etc/apt/sources.list
echo "deb-src http://deb.torproject.org/torproject.org xenial main" >> /etc/apt/sources.list

Add the key server

@tkell
tkell / onepipes.py
Created February 15, 2013 18:05
one.py with LocalAudioStream!
def main(input_filename, output_filename):
input_file = open(input_filename, 'rb')
audio_stream = audio.LocalAudioStream(input_file)
print audio_stream.analysis.pyechonest_track.id
bars = audio_stream.analysis.bars
collect = []
for bar in bars:
@tkell
tkell / gist:4739299
Created February 8, 2013 14:22
Tweaks for LocalAudioStream
def run(self):
try:
self.infile.seek(0)
self.p.stdin.write(self.infile.read())
except IOError:
pass
self.p.stdin.close()