- Colorado Gravel Roads
- AllTrails
- Google Maps
- Trails.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (/:\/\/(www\.)?phoronix\.com/.test(window.location.href)) { | |
let bgH = "#333333"; | |
let bgL = "#222222"; | |
let text = "#e0e0e0"; | |
let textH = "#e0e0e0"; | |
let textL = "#aeaeae"; | |
let accent = "#666666"; | |
let css = ` | |
body { | |
background: ${bgH}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Tool to convert Google motion JPGs (MVIMG) to MP4 video files. | |
# | |
# requires exiftool utility (ie: `apt install exiftool`) | |
# requires exiftool gem (ie: `gem install exiftool`) | |
# | |
require 'exiftool' | |
files = Dir['*.jpg'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
OVPN_CONFIG_PATH = "~/path/to/your.ovpn" | |
require 'open3' | |
class VpnWrapper | |
attr_reader :buffer, :local_interface, :local_dns, :pid | |
def initialize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require_relative "lib.rb" | |
dc "run app #{ARGV.join(' ')}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Pretty print json | |
# | |
# Reads JSON from file(s) or from STDIN | |
# | |
# Usage: | |
# | |
# cat my_json.json | pjson | |
# pjson my_json.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'time' | |
require 'optparse' | |
class Cleaner | |
attr_accessor :whitelist, :blacklist, :cutoff_days, :confirm, :dry_run, :keep, :skip, :remove | |
def initialize(options = {}) | |
@whitelist = %W(master develop #{local_branch}).uniq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# definitely DON'T use Ctrl+b. lame. | |
unbind C-b | |
# I never use the Insert key on the console, but it is a bit of a stretch | |
# set -g prefix IC | |
# ` is a cool prefix | |
set -g prefix ` | |
set -g default-terminal "screen-256color" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
base_cmd = ARGV[0] | |
cmd_pattern = Regexp.new(base_cmd) | |
running = `wmctrl -lx`.lines.grep(cmd_pattern) | |
if running.any? | |
window_id = running.first.match(/0x[0-9a-f]{8}/)[0] | |
exec "wmctrl -ia #{window_id}" | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "capistrano/setup" | |
require "capistrano/deploy" | |
require 'capistrano/chruby' | |
require 'capistrano/bundler' |