- Colorado Gravel Roads
- AllTrails
- Google Maps
- Trails.com
This file contains 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 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 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' |
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
server_name blog.linkleaf.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name blog.linkleaf.com; |
This file contains 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 | |
# ` is a cool prefix | |
set -g prefix ` | |
set -g default-terminal "screen-256color" | |
# this should allow for `` to be a literal ` | |
bind-key ` send-prefix |
This file contains 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
# A simple tripwire utility to trigger breakpoints selectively. | |
# | |
# Requires `pry` and provides a pry console at the breakpoints. | |
# | |
# Place `binding.trip` anywhere you might want a breakpoint in your code | |
# | |
# def some_method(args) | |
# do_something | |
# binding.trip # <= breakpoint here | |
# do_something_else |
Add the following line to ~/.local/share/applications/mimeapps.list
:
x-scheme-handler/nautilus=nautilus-handler.desktop
Place nautilus-handler.desktop
into ~/.local/share/applications
.
Place nautilus-hander
into a PATH
directory. I use ~/bin
. Make this executable (chmod +x nautilus-handler
).
Now nautilus uri scheme (example: nautilus:/some/path
) links should work.
This file contains 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
module God | |
module Conditions | |
class RestartFilePresent < PollCondition | |
attr_reader :restart_file | |
def initialize | |
super | |
end | |
def restart_file=(file) |
This file contains 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
<% | |
# this is a multi-line comment | |
# in ERB | |
%> |