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 re | |
import time | |
class Stage(object): | |
"""One of the element of a retention policy. | |
A stage means "keep that many points with that precision". | |
Precision is the amount of time a point covers, measured in seconds. |
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
#include <openssl/conf.h> | |
#include <openssl/evp.h> | |
#include <openssl/err.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> |
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
#include <errno.h> | |
#include <linux/tcp.h> | |
#include <netdb.h> | |
#include <netinet/in.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <unistd.h> |
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 | |
# You need to retrieve the hot, the cold and ninki pub using the | |
# patch script you'll find on https://github.com/mycroft/ninki-recover | |
# Fill the inputs, start sweeping, open console, and you'll see outputs like the | |
# following: | |
# used path is: m/0/1000/00 | |
# balance is 0 on this key: | |
# address: 32aVrFpfoACPiGFJiLUfkNnbkBoWnGu1Sp | |
# hot (priv): L42FdtAvqUkPNNAbFp7YFc8pbs1TaLQorAPi8vSwWGvaFrbRrxdr |
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 | |
make distclean | |
./configure --prefix=/opt/mplayer --enable-termcap --enable-iconv --enable-langinfo --enable-networking \ | |
--enable-smb --enable-cdparanoia --enable-cddb --enable-freetype --enable-fontconfig --enable-unrarexec \ | |
--enable-inet6 --enable-ftp --enable-pthreads --enable-gnutls --enable-gif --enable-png --enable-mng --enable-libcdio \ | |
--enable-xanim --enable-xvid-lavc --enable-speex --enable-musepack \ | |
--enable-x264 --enable-x264-lavc --enable-liba52 --enable-xinerama --enable-alsa --enable-pulse \ | |
--enable-xvid --enable-libvorbis --enable-jpeg --enable-faad --enable-faac \ | |
--enable-libmpeg2 --enable-mpg123 --enable-caca --enable-aa --enable-vdpau --enable-libdca --enable-theora \ |
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 mycroft on github. | |
* I am mycroft (https://keybase.io/mycroft) on keybase. | |
* I have a public key whose fingerprint is 6285 5941 1156 F08C C635 1E1D 617A 5AE6 7694 51E2 | |
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
<?php | |
use Behat\Behat\Context\ClosuredContextInterface, | |
Behat\Behat\Context\TranslatedContextInterface, | |
Behat\Behat\Context\BehatContext, | |
Behat\Behat\Exception\PendingException; | |
use Behat\Gherkin\Node\PyStringNode, | |
Behat\Gherkin\Node\TableNode; | |
use Behat\Behat\Event\StepEvent; |
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
# via https://gist.github.com/419201#file_gitconfig.bash | |
# Install (from Matt's gist) these useful Git aliases & configurations with the following command: | |
# $ bash <(curl -s https://raw.github.com/gist/419201/gitconfig.bash) | |
git config --global color.ui auto # colorize output (Git 1.5.5 or later) | |
git config --global color.interactive auto # and from 1.5.4 onwards, this will works: | |
echo "Set your name & email to be added to your commits." | |
echo -n "Please enter your name: " |