Skip to content

Instantly share code, notes, and snippets.

@vmpn
vmpn / lpass-ssh-add.sh
Last active September 12, 2015 03:51 — forked from bcopeland/lp-ssh-add.sh
Working around new lines being converted to spaces in lastpass
#!/bin/bash
#
# Import all passwordless SSH keys from LP
#
CONTAINER="Secure Notes"
KEYS=`lpass ls "${CONTAINER}" | sed -n 's/.*\[id: \([[:digit:]]*\).*/\1/p'`
export SSH_ASKPASS="/bin/false"
import sys
sys.path.append('/home/myuser/am335x_pru_package/pru_sw/app_loader/python')
import prussdrv
import struct
import ctypes
print "hi"
@vmpn
vmpn / git2svn.sh
Created April 22, 2012 04:41
Convert git patch to svn patch
#!/bin/bash
# Derived from https://gist.github.com/44537
set -e
REV="$1"
FILE="$2"
sed \
-e "/^copy from.*/d" \
-e "/^copy to.*/d" \
-e "/similarity index.*/d" \
#!/bin/bash
#
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html)
# modified by mike@mikepearce.net
# modified by aconway@[redacted] - handle diffs that introduce new files
#
# Generate an SVN-compatible diff against the tip of the tracking branch
# Get the tracking branch (if we're on a branch)
TRACKING_BRANCH=`git svn info | grep URL | sed -e 's/.*\/branches\///'`
Originally:
https://gist.github.com/7565976a89d5da1511ce
Hi Donald (and Martin),
Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I
appreciate the tone. This is a Yegge-long response, but given that you and
Martin are the two people best-situated to do anything about this, I'd rather
err on the side of giving you too much to think about. I realize I'm being very
critical of something in which you've invested a great deal (both financially
@vmpn
vmpn / gist:1321562
Created October 28, 2011 03:33 — forked from jberkel/gist:1087757
HOWTO: compile mkbootimg/mkbootfs
get Android source code: http://source.android.com/source/downloading.html
$ cd /path/to/android-src
$ cd system/core/libmincrypt/
$ gcc -c *.c -I../include
$ ar rcs libmincrypt.a *.o
$ cd ../mkbootimg
$ gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a
$ cd ../cpio
$ gcc mkbootfs.c -o mkbootfs -I../include