Skip to content

Instantly share code, notes, and snippets.

View RyanMcG's full-sized avatar
👣
standing

Ryan McGowan RyanMcG

👣
standing
View GitHub Profile
@RyanMcG
RyanMcG / keybase.md
Last active February 22, 2016 09:34
Keybase verification

Keybase proof

I hereby claim:

  • I am ryanmcg on github.
  • I am ryanmcg (https://keybase.io/ryanmcg) on keybase.
  • I have a public key ASBC26SA5y_vHreF713bvVen5r1BVc920l9awXJCBrBvDAo

To claim this, I am signing this object:

@RyanMcG
RyanMcG / example.clj
Created February 16, 2014 06:13
manners example
(ns manners.example
(:require [manners.core :refer :all]))
@RyanMcG
RyanMcG / github-default-monospace.css
Last active December 20, 2015 12:58
Stylish CSS rules to use 11pt/13em monospace as the github font. Monospace being your system's default.
/* Copyright © 2013 Ryan McGowan <ryan@ryanmcg.com>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("github.com") {
.diff-line-num, .blob-line-nums, .line-number, code, pre {
@RyanMcG
RyanMcG / rails-pre-commit
Last active August 1, 2018 17:05
A pre-commit hook for rails projects that scans for 'binding.pry', 'debugger' and diff artifacts and stops the commit if it finds any.
#!/bin/sh
COMMAND='git grep -n --cached'
ARGS='-e debugger -e "binding\.pry" -- app config db spec vendor script lib Rakefile Guardfile Capfile'
if eval "$COMMAND -q $ARGS" ; then
echo "You have a binding.pry or a debugger in a bad place.\n"
eval "$COMMAND $ARGS"
exit 1
fi
@RyanMcG
RyanMcG / UNLICENSE
Last active December 18, 2015 11:19
This script does nothing on its own. It simply changes to the directory where the script is stored. I forget how to do this a lot so I am storing it here. It is very helpful when the script is in a known location within a project.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@RyanMcG
RyanMcG / touchp
Last active December 18, 2015 10:49
Make the path and a file at once!
#!/bin/sh
# ===================
# touchp -- For Jason
# ===================
# Copyright © 2013 Ryan McGowan <ryan@ryanmcg.com>
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
@RyanMcG
RyanMcG / ripple_chrome
Last active December 16, 2015 09:48
Want to use ripple locally? Disabling websecutiry is bad for browsing but you can launch a second instance of chrome with a different user-data-dir.
#!/bin/sh
# This only works for OS X but could be easily adapted for Linux by changing
# some directory names.
IC_TEMP_DIR=/tmp/icdir
rm -rf $IC_TEMP_DIR
mkdir -p $IC_TEMP_DIR
cp -R ~/Library/Application\ Support/Google/Chrome/Default $IC_TEMP_DIR/Default
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--disable-web-security \
--user-data-dir="$IC_TEMP_DIR" \
@RyanMcG
RyanMcG / UNLICENSE
Last active December 16, 2015 00:48
Solarized Dark Less for Highlight.js optimized for Clojure
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit