Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am facto on github.
  • I am facto (https://keybase.io/facto) on keybase.
  • I have a public key whose fingerprint is 19B5 069B 6B93 8308 7E67 E143 D6F0 3169 E84A F23C

To claim this, I am signing this object:

@joshrieken
joshrieken / .pryrc
Created June 28, 2012 21:20
.pryrc
# === EDITOR ===
Pry.editor = 'subl'
# === CUSTOM PROMPT ===
# This prompt shows the ruby version (useful for RVM)
Pry.prompt = [proc { |obj, nest_level, _| "#{RUBY_VERSION} (#{obj}):#{nest_level} > " }, proc { |obj, nest_level, _| "#{RUBY_VERSION} (#{obj}):#{nest_level} * " }]
# === Listing config ===
# Better colors - by default the headings for methods are too
# similar to method name colors leading to a "soup"
alias r1="cd blah"
alias r2="cd blah2"
.post
.post_header
span.post_date 11/25/12
| -
span.post_title The Reticulating of the Splines
.post_content
| Well, it's been a long, long time since I updated this.
@joshrieken
joshrieken / gist:5843181
Created June 23, 2013 00:04
sublime text 2 + vintage mode autocomplete fix
{ "keys": ["ctrl+c"], "command": "hide_auto_complete", "context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
]
},
@joshrieken
joshrieken / gist:7156583
Last active December 26, 2015 13:09
Compiling ImageMagick with jasper support via homebrew
Install jasper:
$ brew install jasper
Uninstall your version of imagemagick:
$ brew uninstall imagemagick
Gain access to previous versions of homebrew packages:
$ brew tap homebrew/versions
Now, check out the version of ImageMagick corresponding to our project's version of RMagick (6.8.6-3):

Keybase proof

I hereby claim:

  • I am facto on github.
  • I am facto (https://keybase.io/facto) on keybase.
  • I have a public key whose fingerprint is 8642 A806 BDBD 371D 9977 9C94 BC4D C6B1 E81F 6087

To claim this, I am signing this object:

@joshrieken
joshrieken / run_for_all_apps.sh
Created May 17, 2016 00:32
Easily run commands for all umbrella project apps
#!/bin/sh
ESC_SEQ="\x1b["
COL_RESET=$ESC_SEQ"39;49;00m"
COL_GREEN=$ESC_SEQ"32;01m"
for f in apps/*;
do
[ -d $f ] && cd "$f" && echo "$COL_GREEN ======= $f ======= $COL_RESET" && $@
cd - >/dev/null
@joshrieken
joshrieken / dell_precision_5510_korora_24.md
Last active October 3, 2016 15:13
Setting up Korora 24 (Fedora 24) on Dell Precision 5510

Installing Korora

My laptop came with Windows 10 installed. The first major issue I ran into involved the fake-RAID setup. My only drive, a 1 TB PCIe SSD, came configured as RAID-0 in UEFI. I configured it to use AHCI, which required a reinstall of Windows 10.

After reinstalling Windows 10 using the provided DVD, I was able to install Korora via a bootable USB drive.

The install worked as expected, and I was able to boot into both Korora and Windows 10 on demand.

Post-Install

@joshrieken
joshrieken / loopdedoo.js
Created January 22, 2016 03:49
Ardent Camper looping videos code
$(function() {
var $video = $('.hero-video');
var $hero = $('.hero');
if (!!$video.length) {
function playVideos() {
var videos = [
{
src: [