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
# NOTE: overriding __call__ in BaseTask not work, so monkey path Task | |
def deduplicator(f): | |
@wraps(f) | |
def wrapper(self, *a, **kw): | |
if config.get('REDIS_DEDUPLICATION', None): | |
if redis_dedup(self.request.id, self.request.retries): | |
raise Ignore() | |
return f(self, *a, **kw) | |
return wrapper |
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
package main | |
import "runtime" | |
import "runtime/debug" | |
type inner struct { | |
data int | |
} | |
type outer struct { |
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
alias fuck='sudo $(fc -ln -1)' | |
# Set up aliases | |
alias ack='ack-grep' | |
alias mv='nocorrect mv' # no spelling correction on mv | |
alias cp='nocorrect cp' # no spelling correction on cp | |
alias mkdir='nocorrect mkdir' # no spelling correction on mkdir | |
alias j=jobs | |
alias pu=pushd | |
alias po=popd | |
alias d='dirs -v' |
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/pulseaudio -nF | |
#load-module module-alsa-sink device=hw:0 tsched=0 sink_name=main.out | |
#load-module module-alsa-source device=hw:0 tsched=0 source_name=main.in | |
load-module module-udev-detect | |
load-module module-null-sink | |
#load-module module-equalizer-sink | |
load-module module-dbus-protocol | |
load-module module-augment-properties | |
load-module module-esound-protocol-unix |
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
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted | |
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted | |
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us. | |
D: [pulseaudio] core-util.c: RealtimeKit worked. | |
I: [pulseaudio] core-util.c: Successfully gained nice level -11. | |
I: [pulseaudio] main.c: This is PulseAudio 5.0 | |
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu | |
D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused- |
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/pulseaudio -nF | |
#load-module module-alsa-sink device=hw:0 tsched=0 sink_name=main.out | |
#load-module module-alsa-source device=hw:0 tsched=0 source_name=main.in | |
load-module module-alsa-card card_name=main tsched=0 device_id=0 sink_name=main.out source_name=main.in use_ucm=false profile=headphones profile_set=/etc/pulse/profile.conf paths_dir=/etc/pulse/paths | |
#load-module module-udev-detect tsched=1 use_ucm=true | |
load-module module-null-sink | |
#load-module module-equalizer-sink | |
load-module module-dbus-protocol | |
load-module module-augment-properties |
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/python | |
from urllib2 import urlopen | |
import os,sys,re | |
from BeautifulSoup import BeautifulSoup | |
if not len(sys.argv) == 2: | |
print "usage: %s <url>" % (sys.argv[0]) | |
sys.exit(1) |
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
from fabric.network import ssh, io | |
import time | |
def patched_input_loop(chan, using_pty): | |
while not chan.exit_status_ready(): | |
time.sleep(ssh.io_sleep) | |
io.input_loop = patched_input_loop |
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
with import <nixpkgs> {}; | |
let | |
glibc = pkgs.glibc; | |
wrapGCCWith = gccWrapper: glibc: baseGCC: gccWrapper { | |
nativeTools = stdenv.cc.nativeTools or false; | |
nativeLibc = stdenv.cc.nativeLibc or false; | |
nativePrefix = stdenv.cc.nativePrefix or ""; | |
gcc = baseGCC; | |
libc = glibc; |
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
pkgs : { | |
allowUnfree = true; | |
packageOverrides = pkgs: rec { | |
gccgo49 = pkgs.wrapGCC (pkgs.gcc49.gcc.override { | |
name = "gccgo49"; | |
langCC = true; | |
langC = true; | |
langGo = true; | |
}); |
OlderNewer