Skip to content

Instantly share code, notes, and snippets.

@kevinmehall
kevinmehall / _t2-swd.md
Last active April 4, 2017 06:47
Tessel 2 onboard SWD

Needs a more recent openocd than is currently available in openwrt/packages:

opkg update
wget https://kevinmehall.net/tmp/openocd_d3c2679bcb8e8ba25e7b6e443b39f57474afc099-2_ramips_24kec.ipk -O /tmp/openocd.ipk
opkg install /tmp/openocd.ipk
rm /tmp/openocd.ipk

In another terminal:

@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active July 4, 2024 13:00
Backend Architectures Keywords and References
@nrubin
nrubin / matlab.sublime-build
Last active August 17, 2017 14:21
Build System for Sublime Text 2 for MATLAB files on Windows
{
"cmd": ["C:\\Program Files\\MATLAB\\R2012b\\bin\\matlab", "-nosplash", "-nodesktop", "-r", "run('$file_name')"],
"selector": "source.m"
}
@aaronjgreenberg
aaronjgreenberg / mongoff.sh
Created February 2, 2013 02:33
Shell command to stop a `mongod` process.
MONGO_PID=`ps aux | grep mongo | awk '{print $2}' | head -n 1`
# SIGTERM the mongod process
kill -15 $MONGO_PID
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@nuxlli
nuxlli / sublime_text_2_useful_shortcuts.md
Created September 9, 2011 18:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt