Skip to content

Instantly share code, notes, and snippets.

@DarthNerdus
DarthNerdus / convert.sh
Created March 18, 2010 22:30
Converts a folder containing a hg-git clone to an pure git clone.
# Convert.sh - Converts a folder containing a hg-git clone to an pure git clone.
function convert() {
local path
for path in "$@"; do
gitpath="$(/bin/cat $path/.hg/hgrc 2>/dev/null | /usr/bin/grep -o "git://.*")"
if [ x$gitpath != x ]
then
rm $path
/usr/local/bin/git clone $gitpath
@DarthNerdus
DarthNerdus / ._what.md
Created April 30, 2010 22:12 — forked from kneath/._what.md
Badass git pull alternative

Badass git pull alternative

Add this little snippet to your ~/.gitconfig and it amps up your git pull by means of git up

  1. Adds in a list of the commits you're pulling down
  2. Auto-prunes remote branches
  3. Defaults to pull --rebase - gets rid of unnecessary merge commits. If you don't know what rebase does, this is probably safe for you. If you know what rebase does, you should know where this will not be safe for you.

Scott Chacon and Ryan Tomayko basically figured out how to do this and I am stealing all of the credit.

@DarthNerdus
DarthNerdus / mosh-cygwin
Created April 13, 2012 01:18 — forked from eerohele/mosh-cygwin.md
Compiling Mosh (http://mosh.mit.edu/) under Cygwin
1. Download Cygwin: http://www.cygwin.com
2. Run setup.exe and install the following packages in addition to the default ones:
- make
- boost
- libncurses-devel
- pkg-config
- perl
3. Download and compile Protocol Buffers: http://code.google.com/p/protobuf/
@DarthNerdus
DarthNerdus / tmux-mem-cpu-load.sh
Last active December 15, 2015 18:29
tmux-mem-cpu-load; usable with Linux or 10.8+ #shell #tmux
#!/bin/bash
if [ -z $1 ]; then
echo "Usage: $0 interval [number of lines]"
exit 1
else
INTERVAL=$1
fi
NUM_LINES=10
@DarthNerdus
DarthNerdus / addToAshes
Created May 23, 2013 16:40
Add to OmniFocus from @ashesapp
ashes://addOpenURL?title=Add%20to%20OmniFocus&url=omnifocus%3A%2F%2F%2Fadd%3Fname%3D%5B%5B%5Btitle%5D%5D%5D%26note%3D%5B%5B%5Bpost%5D%5D%5D
@DarthNerdus
DarthNerdus / gist:5785778
Created June 14, 2013 22:29
Install isolated ruby 2.0.0 on OS X [REDACTED]
# Install openssl via homebrew
CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl --with-out-ext=tk --without-gcc" rbenv install 2.0.0-p195

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@DarthNerdus
DarthNerdus / IngressDualMap.user.js
Created July 26, 2019 01:49 — forked from Terrance/IngressDualMap.user.js
An IITC plugin that exports portals currently in view as a CSV list for use with Ingress Dual Map.
// ==UserScript==
// @id iitc-plugin-ingressdualmap-exporter@OllieTerrance
// @name IITC plugin: Ingress Dual Map Exporter
// @category Keys
// @version 0.0.0.1
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @description Exports portals currently in view as a CSV list for use with Ingress Dual Map.
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*
// @include http://*.ingress.com/intel*
[date:"2018-04-09T01:32:00Z"]
[timeout:240]
[bbox:{{bbox}}];
(
// ZOOM IN TO A SMALL AREA NEAR YOUR SUSPECTED NESTS BEFORE CLICKING 'RUN' AT THE TOP LEFT. IF YOUR AREA IS TOO LARGE, IT WILL TAKE TOO LONG TO SCAN.
// If Niantic updates the OSM version for EX raid eligibility criteria, these tags will classify gyms as 'parks'. BUT THERE IS NO CONFIRMATION THAT NIANTIC HAS DONE ANY UPDATE FOR EX RAIDS YET. Previously nests and EX raid criteria were INDEPENDENT.
way[leisure=park];
way[landuse=recreation_ground];