Skip to content

Instantly share code, notes, and snippets.

View windviki's full-sized avatar
🍻
Loving craft beer

windviki

🍻
Loving craft beer
View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<style type="text/css">
*{ padding: 0; margin: 0;}
/*body {background: #000;}*/
canvas {display: block;}
div {text-align: center;}
.center_d {margin:0 auto;width:800px;top:300;position:relative;}
</style>
@windviki
windviki / encrypted-git-repo.md
Created September 6, 2012 08:26
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang ([email protected]). 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

@windviki
windviki / meta.py
Created May 18, 2012 10:03 — forked from shazow/meta.py
BaseModel object for SQLAlchemy declarative object abstractions (with query statistics tracking and JSON decoder).
"""SQLAlchemy Metadata and Session object"""
from sqlalchemy import MetaData
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.orm.session import Session as SessionBase
from sqlalchemy.interfaces import ConnectionProxy
from datetime import datetime
import time
__all__ = ['Session', 'metadata', 'BaseModel']
@windviki
windviki / beyondcompare-diff.sh
Created November 29, 2011 02:28 — forked from ecerulm/diffmerge-diff.sh
Cygwin Git: wrappers for beyond compare, diffmerge and winmerge
#!/bin/sh
# Use BeyondCompare as difftool for git in cygwin.
# git config --global difftool.bc.cmd "beyondcompare-diff.sh \"\$LOCAL\" \"\$REMOTE\""
# git difftool -t bc branch1..branch2
# Reference: http://www.tldp.org/LDP/abs/abs-guide.pdf
library=~/gittool/githelperfunctions.sh
#[ -f $library ] && . $library