This has now been moved to a proper GitHub repository: https://github.com/njh/gen-webid-cert
Please submit issues and enhancements there.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
exports.isReadable = isReadable | |
exports.isReadableSync = isReadableSync | |
exports.isWritable = isWritable | |
exports.isWritableSync = isWritableSync | |
exports.isExecutable = isExecutable | |
exports.isExecutableSync = isExecutableSync | |
function isReadable (path, cb) { | |
fs.stat(path, function (er, s) { | |
if (er) return cb(er) |
# I took this from here: http://www.programmierecke.net/howto/gpg-ssh.html | |
# Deactivate the gnome-keyring. We will be replacing it with gnupg-agent | |
gconftool-2 --type bool --set /apps/gnome-keyring/daemon-components/ssh false | |
# Configure gpg to use the agent | |
echo "use-agent" >> ~/.gnupg/gpg.conf | |
# Enable ssh-agent drop in replacement support for gpg-agent | |
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf |
#!/bin/bash | |
# re-self-sign id.pem|id.p12 [days] | |
# extends the life of an expired certificate identity | |
b=$(basename $1 .p12) | |
b=$(basename $b .pem) | |
days=$2 | |
# unwrap p12 to pem | |
if [ -f $b.p12 ]; then |
This has now been moved to a proper GitHub repository: https://github.com/njh/gen-webid-cert
Please submit issues and enhancements there.
#!/usr/bin/env ruby -w | |
# pnginator.rb: pack a .js file into a PNG image with an HTML payload; | |
# when saved with an .html extension and opened in a browser, the HTML extracts and executes | |
# the javascript. | |
# Usage: ruby pnginator.rb input.js output.png.html | |
# By Gasman <http://matt.west.co.tt/> | |
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
Git checkout
can do almost anything ... or, at least, many things. It can switch branches. It can mix and match branches. It can resolve merge conflicts. It can give you a scratchpad to test things. It can even be used to interactively patch files. It's so powerful because it's so abstract. But much like numinous mystics, abstraction makes it confusing.
Basically git checkout
does two things:
license: gpl-3.0 |
{ | |
"@context": { | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"prov": "http://www.w3.org/ns/prov#", | |
"foaf": "http://xmlns.com/foaf/0.1/", | |
"agent": { "@type": "@id", "@id": "prov:agent" }, | |
"entity": { "@type": "@id", "@id": "prov:entity" }, | |
"activity": { "@type": "@id", "@id": "prov:activity" }, | |
"hadPlan": { "@type": "@id", "@id": "prov:hadPlan" }, |