I hereby claim:
- I am sunny256 on github.
- I am sunny256 (https://keybase.io/sunny256) on keybase.
- I have a public key whose fingerprint is A006 05D6 E676 B319 55E2 E77E FB0C BEE8 94A5 06E5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$ pacmd list-sinks | |
Welcome to PulseAudio! Use "help" for usage information. | |
>>> 1 sink(s) available. | |
* index: 0 | |
name: <auto_null> | |
driver: <module-null-sink.c> | |
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY | |
state: SUSPENDED | |
suspend cause: IDLE | |
priority: 1000 |
WITH RECURSIVE | |
positions(i) as ( | |
VALUES(0) | |
UNION SELECT ALL | |
i+1 FROM positions WHERE i < 63 | |
), | |
solutions(board, n_queens) AS ( | |
SELECT '----------------------------------------------------------------', cast(0 AS bigint) | |
FROM positions | |
UNION |
#!/usr/bin/env python | |
import random | |
import struct | |
import sys | |
# Most of the Fat32 class was cribbed from https://gist.github.com/jonte/4577833 | |
def ppNum(num): | |
return "%s (%s)" % (hex(num), num) |
#!/bin/bash | |
#======================================================================= | |
# runme | |
# File ID: 38d0ddc8-49bb-11e5-a06b-fefdb24f8e10 | |
# | |
# Author: Øyvind A. Holm <[email protected]> | |
# License: GNU General Public License version 2 or later. | |
#======================================================================= |
WITH RECURSIVE | |
x(i) AS ( VALUES (0) | |
UNION ALL SELECT i + 1 | |
FROM x | |
WHERE i < 101), | |
Z(Ix, Iy, Cx, Cy, X, Y, I) AS ( | |
SELECT | |
Ix, | |
Iy, | |
X :: FLOAT, |
#!/bin/bash | |
#======================================================================= | |
# runme | |
# File ID: 36b615f8-f051-11e4-a442-fefdb24f8e10 | |
# | |
# Demonstration of strange behaviour in git-annex, README is deleted | |
# after a "git annex get" when --file is used together with "git annex | |
# addurl". It's also unable to check the existence of the file on the | |
# FTP server, so I have to use --force to drop it. This does not happen |
# See docs in http://git-annex.branchable.com/internals/hashing/ and implementation in http://sources.debian.net/src/git-annex/5.20140227/Locations.hs/?hl=408#L408 | |
import hashlib | |
import struct | |
def hashdirlower(key): | |
hasher = hashlib.md5() | |
hasher.update(key) | |
digest = hasher.hexdigest() | |
return "%s/%s/" % (digest[:3], digest[3:6]) |
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
# create our directories |
*** t5150-request-pull.sh *** | |
not ok 1 - setup | |
# | |
# | |
# git init --bare upstream.git && | |
# git init --bare downstream.git && | |
# git clone upstream.git upstream-private && | |
# git clone downstream.git local && | |
# | |
# trash_url="file://$TRASH_DIRECTORY" && |