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
gst-launch \ | |
ximagesrc startx=0 starty=0 endx=1600 endy=1200 \ | |
! ffmpegcolorspace \ | |
! queue \ | |
! vp8enc max-latency=25 threads=4 \ | |
! mux. \ | |
pulsesrc device=alsa_input.usb-045e_Microsoft_LifeChat_LX-3000-00-LX3000.analog-mono \ | |
! audio/x-raw-int \ | |
! queue \ | |
! audioconvert \ |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<selectfont> | |
<rejectfont> | |
<pattern> | |
<patelt name="scalable"> | |
<bool>false</bool> | |
</patelt> | |
</pattern> |
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] | |
gerrit = "!f() { \n\ | |
ACTION=$1 \n\ | |
BRANCH=$2 \n\ | |
shift 2 \n\ | |
RECEIVEPACK=\"\" \n\ | |
for REVIEWER in \"$@\"; do RECEIVEPACK=\"$RECEIVEPACK --reviewer '$REVIEWER'\"; done \n\ | |
if [ -n \"$RECEIVEPACK\" ] \n\ | |
then \n\ | |
git push \"--receive-pack=git receive-pack $RECEIVEPACK\" gerrit HEAD:refs/$ACTION/$BRANCH \n\ |
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
for TAG in $(git tag); do git tag "v$(echo "$TAG" | cut -d - -f 2)" "$TAG"; git tag -d "$TAG"; done |
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
cat $VOBFILES | gst-launch \ | |
filesrc location=/dev/fd/0 \ | |
! dvddemux name=demux \ | |
demux.current_audio \ | |
! queue \ | |
! a52dec \ | |
! audioconvert \ | |
! audioresample \ | |
! vorbisenc \ | |
! mux. \ |
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
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
let s:bootstrap = 0 | |
try | |
call vundle#rc() | |
catch /E117:/ | |
let s:bootstrap = 1 | |
silent !mkdir -p ~/.vim/bundle | |
silent !git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
redraw! |
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 hashlib | |
import hmac | |
import struct | |
def dt(mac): | |
hdig = mac.hexdigest() | |
offset = int(hdig[-1], 16) | |
p = hdig[offset * 2 : offset * 2 + 8] | |
return int(p, 16) & 0x7fffffff |
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
module Percolation where | |
import Control.Monad (join) | |
import Data.Maybe (mapMaybe) | |
import qualified Data.Map.Lazy as M | |
import qualified Data.Set as S | |
-- | Percolation algorithm. | |
-- | |
-- Important assumptions or implementation details: |
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
### Keybase proof | |
I hereby claim: | |
* I am frasertweedale on github. | |
* I am frasertweedale (https://keybase.io/frasertweedale) on keybase. | |
* I have a public key whose fingerprint is 5848 CE28 186B B469 C295 15E1 4B53 9052 4111 E1E2 | |
To claim this, I am signing this object: |
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
-----BEGIN PUBLIC KEY----- | |
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAopt0Lubb0ur+L+VzsP9k | |
i4QrvQb/4gVlmr/d59lUsTr9cz5B5OtNLi+WMVcNh4EmmNIiWoVuQY4Wqjm2d1IA | |
VCXw+OqeAuj9nUW4jSvI/lDLyErFBXezNM5yggeesiV2ii+uO41zOjUxnSkupFzh | |
zOWr+Oj4kJI/iNU++3RpzyrBSmSGK9TN9k3afhyDMNlJi5SqK/wOrSjqAMfaufHE | |
MkJqBibDL/+xx48SbtInhtD4LIneHoOGxVtkLIcTSS5EpnIsDWZgXX6jBatv9LJe | |
u2UeQsKLKcCgrhT3VX+pc/aDsUFS4ZqOonLRt9mcFVxC4NDNMKsfXTCd760HQXYU | |
enVLydNavvGtGYQpbUWx5IT3IphaNxWANACpWrcvTawgPyGkGTPd347Nqhm5YV2c | |
YRf4rVX/S7U0QOzMPxHKN4siZVCspiedY+O4P6qe2R2cTyxntjLVGZcTBlXAdQJ8 | |
UfQuuX97FX47xghxR6wyWfkXGCes2kVdVo0fF0vkYe1652SGJsfWjc5ojR9KFKkD |
OlderNewer