Skip to content

Instantly share code, notes, and snippets.

View meandavejustice's full-sized avatar

Dave Justice meandavejustice

View GitHub Profile
"watch-css": "jung -f '\.scss$' -- npm run build-css",
(imhotep)meandave@Mainframe:~/Code/imhotep$ python imhotep/main.py --repo_name="meandavejustice/extreme-sound-stretch" --github-username="meandavejustice" --github-password="CLASSIFIED" --pr-number=2
No handlers could be found for logger "__main__"
remote: Reusing existing pack: 51, done.
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 61 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (61/61), 36.91 MiB | 761 KiB/s, done.
Resolving deltas: 100% (17/17), done.
#!/bin/bash
# http://scott.sherrillmix.com/blog/programmer/syntax-highlighting-in-terminal/
if [ ! -t 0 ]; then
file=/dev/stdin
elif [ -f $1 ]; then
file=$1
else
echo "Usage: $0 code.js"
echo "or e.g. head code.js|$0"
@meandavejustice
meandavejustice / buttshort.js
Created June 4, 2014 20:40
create butt.ly shortened links
var request = require('request');
var cheerio = require('cheerio');
var prompt = require('prompt');
prompt.start();
prompt.get(['url', 'keyword'], function (err, result) {
request.post('https://butt.ly/index.php', function(err, resp, body) {
var $ = cheerio.load(body);
console.log($('#shorturl').attr('value') + ' now refers to ' + result.url);
}).form({url:result.url, keyword: result.keyword});

Keybase proof

I hereby claim:

  • I am meandavejustice on github.
  • I am meandave (https://keybase.io/meandave) on keybase.
  • I have a public key whose fingerprint is 4A3B DEEF A86E 76EC FBE1 5DCB CBEB 3995 DF07 F31B

To claim this, I am signing this object:

@meandavejustice
meandavejustice / yo.sh
Created July 15, 2014 06:09
use responsibly...
#!/bin/bash
if [ ! -t 0 ]; then
user=/dev/stdin
elif [ $1 ]; then
user=$1
else
echo "Usage: $1 [username <string>] $2 [-m msg <string>]" 1>&2; exit 1;
fi
(322/322) checking for file conflicts
error: failed to commit transaction (conflicting files)
nodejs: /usr/share/man/man5/package.json.5 exists in filesystem
nodejs: /usr/share/man/man7/removing-npm.7 exists in filesystem
nodejs: /usr/share/man/man7/semver.7 exists in filesystem
Errors occurred, no packages were upgraded.
var hb = require('handlebars');
var marked = require('marked');
var ls = require('ls-stream');
var fs = require('fs');
var path = require('path');
marked.setOptions({
gfm: true,
highlight: function (code) {
return require('highlight.js').highlightAuto(code).value;
;; mplayer on arch linux skipping issue
(unless (package-installed-p 'emms)
(package-install 'emms))
(require 'emms)
(emms-all)
(emms-default-players)