This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Moved to https://github.com/itkinside/itkconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
dir=$(mktemp -d) | |
cd $dir | |
cower -ddu | |
vim -p */* | |
for package in *; do | |
cd $package | |
makepkg -sicr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Service] | |
ExecStart= | |
ExecStart=/usr/local/bin/wpa_workaround -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I | |
Restart=always | |
RestartSec=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First commit | |
New commit in master | |
New line from the feature branch test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
test=false | |
host=localhost | |
port=6600 | |
while getopts ":th:p:" opt; do | |
case $opt in | |
t) | |
test=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use POSIX; | |
use File::Temp qw(tempfile); | |
use LWP::Simple qw($ua get getstore is_success); | |
if (rand > 0.5) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wpa_cli='wpa_cli -i wlp2s0' | |
if [ -z "$1" ]; then | |
$wpa_cli status | |
elif [ "$1" == "c" ]; then | |
$wpa_cli | |
elif [ "$1" == "l" ]; then | |
$wpa_cli list_networks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use utf8; | |
use IO::Socket::INET6; | |
my $current_song; | |
if (my $server = IO::Socket::INET6->new(PeerAddr => ($ARGV[0] or 'localhost'), PeerPort => ($ARGV[1] or '6600'), Proto => 'tcp', Timeout => 5)) { |
OlderNewer