This file contains hidden or 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
#lang racket | |
; Ported from http://pb.lericson.se/p/FpbYhX/ | |
(require ffi/unsafe | |
ffi/unsafe/atomic) | |
(define libmulti (ffi-lib "/System/Library/PrivateFrameworks/MultitouchSupport.framework/MultitouchSupport")) | |
(define CFArrayRef _pointer) |
This file contains hidden or 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
#lang racket/gui | |
; Ported from http://pb.lericson.se/p/FpbYhX/ | |
(require ffi/unsafe | |
ffi/unsafe/atomic) | |
(define libmulti (ffi-lib "/System/Library/PrivateFrameworks/MultitouchSupport.framework/MultitouchSupport")) | |
(define CFArrayRef _pointer) |
This file contains hidden or 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
# Cryptopass by dchest | |
# Based on: | |
# pbkdf2.py -- library to calculate keys from passwords | |
# Copyright (C) 2010 Tobias Ammann | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 3 of |
This file contains hidden or 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 | |
fossil extra | tr '\n' '\0' | xargs -0 -t fossil add |
This file contains hidden or 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
Microsoft's Symbolic Plan | |
========================= | |
(Redmond, Microsoft HQ. One year before Windows Vista release. Meeting.) | |
Marketing VC: | |
Our latest marketing research suggests that UNIX has a | |
competitive advantage: _symbolic links_. |
This file contains hidden or 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 ecdsa | |
import ( | |
"io" | |
"os" | |
"big" | |
"crypto/elliptic" | |
"sync" | |
) |
This file contains hidden or 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 | |
# | |
# Switch between two different installations of Go: | |
# | |
# source goswitch dev | |
# ^ makes GOROOT ~/Sources/go | |
# | |
# source goswitch prod | |
# ^ makes GOROOT ~/go |
This file contains hidden or 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 | |
# | |
# Runs godoc with the current path and opens browser (on a Mac). | |
# | |
godoc -http=":8888" -path="." 2> /dev/null & | |
pid=$! | |
trap 'kill $pid' INT | |
open "http://localhost:8888" |
This file contains hidden or 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
// | |
// Example. | |
// | |
// Your application must have a strong secret key for password reset purposes. | |
This key will be used to generate and verify password reset tokens. (If you | |
already have a secret key, for example, for authcookie package, it's better | |
not to reuse it, just use a different one.) | |
secret := []byte("assume we have a long randomly generated secret key here") |
This file contains hidden or 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
[instaweb] | |
local = true | |
httpd = webrick | |
port = 4321 | |
[gui] | |
fontdiff = -family Menlo -size 11 -weight normal -slant roman -underline 0 -overstrike 0 | |
[alias] | |
st = status |