gcd(F_n, F_{n+1}) = 1
< end %>
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
# Only supports simple symmetric GPG cast5 (cfb) | |
# iow: gpg -c | |
import M2Crypto | |
import hashlib | |
import struct | |
import zlib | |
import random | |
import time |
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
# _plugins/excerpt.rb - based on http://blog.darkrefraction.com/2012/jekyll-excerpt-plugin.html | |
# (added convert detection and don't overwrite already recorded excerpts) | |
# in layout/post.html capture the content in excerpt as fallback: {% excerpt %}{{ content }}{% endexcerpt %} | |
module Jekyll | |
class Excerpt < Liquid::Block | |
def render(context) | |
# Get the current post's post object | |
id = context["page"]["id"] |
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" encoding="UTF-8"?> | |
<!-- Packages/User/lighttpd2-config.tmLanguage --> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
</array> | |
<key>name</key> | |
<string>Lighttpd2</string> |
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/bash | |
# syntax: $0 -p <packagename> [-a "author <email>"] [-k "my-keyring-filename.gpg"] [-d <destdir for package>] [-v <packageversion>] [--] <keyfiles...> | |
set -e | |
selfdir=$(readlink -f "$0") | |
selfdir=$(dirname "${selfdir}") | |
tmpdir=$(mktemp --tmpdir -d create-gpgring-package-XXXXXXX) |
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/bash | |
# quote command in ssh call to prevent remote side from expanding any arguments | |
# uses bash printf %q for quoting - no idea how compatible this is with other shells. | |
# http://stackoverflow.com/questions/6592376/prevent-ssh-from-breaking-up-shell-script-parameters | |
sshargs=() | |
while (( $# > 0 )); do | |
case "$1" in |
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
/* | |
gcc -o gnutls-priority gnutls-priority.c `pkg-config gnutls --cflags --libs` -DTRY_INTERNALS | |
With -DTRY_INTERNALS it will try to show internal stuff, but the internal API might change | |
and the feature break. | |
Example call: | |
./gnutls-priority "NORMAL:-MAC-ALL:+AEAD" | |
also check gnutls-cli -c |
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" encoding="UTF-8"?> | |
<!-- parses output from: tshark -O ssl -T pdml --> | |
<xsl:stylesheet | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |
xmlns:math="http://exslt.org/math"> | |
<xsl:output method="text" indent="yes"/> | |
<xsl:template match="/pdml"> | |
<xsl:call-template name="tcp-stream"> |
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
SHELL=/bin/bash | |
PATH=/home/stringer/.rbenv/bin:/bin/:/usr/bin:/usr/local/bin/:/usr/local/sbin | |
*/10 * * * * source $HOME/.bash_profile; cd $HOME/stringer/; CRON_JOB=1 bundle exec rake fetch_feeds |
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
/* | |
gcc -o cram-md5 `pkg-config --cflags --libs openssl` cram-md5.c && ./cram-md5 | |
*/ | |
#include <string.h> | |
#include <openssl/md5.h> | |
#include <openssl/crypto.h> | |
static void store_int(unsigned char *d, MD5_LONG l) { |