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 'highline/import' | |
require 'net/netconf/jnpr' | |
start_at = ARGV[0] || begin | |
puts "You need to specify a starting target ip/host" | |
exit 1 | |
end | |
my_username = ENV["USER"] | |
puts "login: #{my_username}" |
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/env ruby | |
# ruby sort_env_json.rb environments/*.json | |
# ruby sort_env_json.rb environments/*.json --like environments/prod.json | |
require './json_file' | |
require 'optparse' | |
begin | |
$stderr.puts "please supply a list of environments/*.json paths you'd like to have sorted alphabetically" | |
exit(1) |
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 | |
=begin | |
Usage: rtftomarkdown.rb FILENAME.rtf | |
Uses textutil, available on Mac only (installed by default) | |
Outputs to STDOUT | |
Notes: | |
Links are replaced with Markdown references (duplicate links combined). |
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/env ruby | |
# Processor for Github flavored markdown, inspired by: | |
# https://github.com/alampros/Docter/blob/master/bin/github-flavored-markdown.rb | |
# | |
# Current version of this script can be found here: | |
# https://gist.github.com/1300939 | |
# | |
# Adapted for Redcarpet version 2 by Ralph von der Heyden | |
# http://github.com/ralph | |
# http://twitter.com/ralph |
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
unicorn_profiles="dev prod" | |
unicorn_dev_enable="yes" | |
unicorn_dev_user="devuser" | |
unicorn_dev_listen="/tmp/unicorn.dev.socket" | |
unicorn_dev_dir="/usr/local/www/dev" | |
unicorn_dev_config="/usr/local/www/dev/config.ru" | |
unicorn_dev_env="development" | |
unicorn_dev_flags="" # any additional flags | |
unicorn_dev_rails="YES" # For rails |
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
[solarized-dark] | |
background = #002b36 | |
foreground = #839496 | |
majorLine = #fdf6e3 | |
minorLine = #eee8d5 | |
lineColors = #268bd2,#859900,#dc322f,#d33682,#db4b16,#b58900,#2aa198,#6c71c4 | |
fontName = Sans | |
fontSize = 10 | |
fontBold = False | |
fontItalic = False |