¡TODO!
This file contains hidden or 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
sleep `expr $SLEEP`h; for j in {1..3}; do for i in {1..70}; do sleep 1 && amixer set Master $i%; done; done |
This file contains hidden or 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
# ~/.mpd/config | |
# MPD configuration that enables you to run the server from the userspace | |
# And to stream music over HTTP so that you could listen it in a distributed fashion (from the office/school) | |
# Uncomment the commented lines to stream music to the local audio output | |
# Note that you can have more than one audio outputs enabled! | |
# Where is my music? | |
music_directory "/home/mpdaemon/Music" | |
playlist_directory "/home/mpdaemon/.mpd/playlists" |
This file contains hidden or 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/python | |
##################### | |
# TelnetTerminal.py # | |
#===================# | |
# By Kerberos # | |
##################### | |
import os, sys, telnetlib, getopt, socket | |
from telnetlib import IAC, NOP | |
def Init(): |
This file contains hidden or 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
for x in ./* ; do cd $x; git branch -r | sed "s,^,($x) → ,g"; cd ..; done |
This file contains hidden or 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 | |
my_lsr () { | |
d=$1; | |
for x in "$d"/* "$d"/.[!.]* "$d"/..?*; do | |
if test -f "$x"; then | |
# handler for an ordinary file | |
eval "$2" "$x" | |
elif test -h "$x"; then | |
# handler for a symlink | |
eval "$2" "$x" |
This file contains hidden or 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
#sr-header-area div.srdrop > * { display: none !important } | |
#sr-header-area div.sr-list > * { display: none !important } | |
#sr-header-area div.sr-list > .sr-bar:nth-of-type(2) { padding-left: 0.5em !important; display: block !important; text-transform:lowercase; font-size: 1.2em; } | |
#sr-header-area #sr-more-link { display: none !important } |
This file contains hidden or 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 logging | |
from world import World | |
from heapq import heappush, heappop | |
from test_emulators import run_interactively | |
class LambdaFields(object): | |
# fields: [(int LambdaCoordinate, [int] LambdaField)] | |
# list of individual fields produced by each lambda | |
# LambdaCoordinate is the 1d coordinate of lambda in the world | |
# LambdaField is the list of effects that the field has on each of the cells |
This file contains hidden or 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
%% Consider | |
%% mod:func([A],{A,B},list(), any(), some_type({A,list(),B})) -> ok | error. | |
%% | |
%% Start from the beginning. Scan each character | |
%% | |
%% 1. Once we hit ":", we've got our module name, start looking for function | |
%% name. | |
%% 2. Once we hit "(", we've got our method name, start looking for arguments | |
%% 3. Arguments are a bit trickier | |
%% 3.1 If we encounter a "{", "[", "(" we don't care about anything |