Skip to content

Instantly share code, notes, and snippets.

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

Keybase proof

I hereby claim:

  • I am jo on github.
  • I am tf (https://keybase.io/tf) on keybase.
  • I have a public key whose fingerprint is 105E 49AD B0BB 2700 45F6 A242 3F96 EE03 7E73 481C

To claim this, I am signing this object:

@jo
jo / js-crypto-libraries.md
Last active March 31, 2024 20:33
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

@jo
jo / gist:5012357
Created February 22, 2013 10:21
grunt node-qunit
Running "node-qunit" task
TypeError: Cannot read property 'path' of undefined
at absPath (/home/jo/github/daleharvey/pouchdb/node_modules/grunt-node-qunit/node_modules/qunit/lib/testrunner.js:101:13)
at exports.run (/home/jo/github/daleharvey/pouchdb/node_modules/grunt-node-qunit/node_modules/qunit/lib/testrunner.js:146:21)
at Array.forEach (native)
at Object.exports.run (/home/jo/github/daleharvey/pouchdb/node_modules/grunt-node-qunit/node_modules/qunit/lib/testrunner.js:141:11)
at Object.module.exports (/home/jo/github/daleharvey/pouchdb/node_modules/grunt-node-qunit/tasks/node-qunit.js:14:9)
at Object.task.registerTask.thisTask.fn (/home/jo/github/daleharvey/pouchdb/node_modules/grunt/lib/grunt/task.js:58:16)
@jo
jo / snow.sh
Created December 13, 2012 10:32
clear; while :; do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS)); sleep 0.1; done | awk '{a[$3]=0; for(x in a) {o=a[x]; a[x]=a[x]+1; printf "\033[%s;%sH ",o,x; printf "\033[%s;%sH*\033[0;0H",a[x],x;}}'
@jo
jo / index.html
Created November 15, 2012 14:07 — forked from jasondavies/index.html
longscroll.js
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.longscroll {
overflow-y: auto;
width: 480px;
height: 500px;
float: left;
}
.longscroll .row {
@jo
jo / README.md
Created November 13, 2012 21:46
Selectable elements

Provide selection capabilities for DOM elements, geared to <select multiple>.

  • click: select element
  • ctrl + click: add element to current selection
  • click + move: select elements while dragging
  • ctrl + a: select all elements within focused list
  • ctrl + shift + a: deselect all elements within focused list
  • ctrl + click + move: toggle selection while dragging
  • shift + click: select range from nearest last selected element to clicked element
  • shift + ctrl + click: add range to current selection
@jo
jo / worker-fetch-json.js
Created August 3, 2012 13:05
A CouchDB Worker that fetches a remote JSON and inserts it into a document.
/*
* CouchDB Worker Fetch JSON
*
* A CouchDB Worker that fetches a remote JSON and inserts it into a document.
*
* Author: Johannes J. Schmidt
* (c) null2 GmbH, 2012
* MIT Licensed
*/
@jo
jo / README
Created April 17, 2012 21:23
Backbone Current Model Experiments
Backbone Current Model Experiments
You have already fetched a collection of pages.
There is a list view and a show view.
The user selects a page in the list view,
and the corresponding page view is shown.
@jo
jo / tf.gif
Created April 14, 2012 20:03
Welcome to TF

this is a test