Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
dir=$(mktemp -d)
cd $dir
cower -ddu
vim -p */*
for package in *; do
cd $package
makepkg -sicr
Traceback (most recent call last):
File "/home/trygve/programming/mopidy/mopidy/utils/network.py", line 92, in handle_connection
sock, addr = self.accept_connection()
File "/home/trygve/programming/mopidy/mopidy/utils/network.py", line 104, in accept_connection
return self.server_socket.accept()
File "/usr/lib64/python2.7/socket.py", line 203, in accept
return _socketobject(_sock=sock), addr
File "/usr/lib64/python2.7/socket.py", line 189, in __init__
for method in _delegate_methods:
KeyboardInterrupt
@trygveaa
trygveaa / pyspotify_fetch_albums.py
Created May 14, 2014 22:25
pyspotify: Fetch all albums of an artist
import spotify
import threading
logged_in_event = threading.Event()
def connection_state_listener(session):
if session.connection.state is spotify.ConnectionState.LOGGED_IN:
logged_in_event.set()
session = spotify.Session()
session.on(
@trygveaa
trygveaa / config.go
Last active August 29, 2015 14:01
A simple config parser for go
// Moved to https://github.com/itkinside/itkconfig