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
#!/bin/bash | |
# for use with cron, eg: | |
# 0 3 * * * postgres /var/db/db_backup.sh foo_db | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 <db_name> [pg_dump args]" | |
exit 1 | |
fi |
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
insmod ntldr | |
ntldr (\$root)/bootmgr | |
#>/etc/apt/apt.conf.d/ | |
Acquire::http::proxy "http://proxy.lan:3128/"; | |
Acquire::ftp::proxy "ftp://proxy.lan:3128/"; | |
Acquire::https::proxy "https://proxy.lan:3128/"; | |
#>>/etc/environment | |
http_proxy=http://proxy.lan:3128/ |
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
graph "Programming Domains" { | |
domains [label="Programming Domains"]; | |
desktop [label="Desktop"]; | |
domains -- desktop [style=dotted]; | |
dotnet [label=".NET" shape="diamond"]; | |
desktop -- dotnet; |
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 Tokenable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def token(name) | |
name = name.to_sym | |
validates name, uniqueness: true, allow_nil: true | |
define_token_methods(name) do |
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
source 'https://rubygems.org' | |
ruby '2.2.3' | |
gem 'rails', '4.2.4' | |
gem 'pg' | |
gem 'sass-rails', '~> 5.0' | |
gem 'uglifier', '>= 1.3.0' |
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 | |
require 'optparse' | |
require 'ostruct' | |
Options = OpenStruct.new | |
Options.external = false | |
Options.errors = false | |
Options.dup = false | |
Options.verb = true |
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
Show hidden characters
{ | |
"auto_close_tags": false, | |
"auto_complete_commit_on_tab": true, | |
"auto_match_enabled": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 10, | |
"indent_to_bracket": true, | |
"rulers": | |
[ | |
80 |
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 ActionView | |
module Helpers | |
module TextHelper | |
def method_missing(name, *args, &block) | |
if name.to_s =~ /\Aconcat_(.+)/ | |
concat public_send($1, *args, &block) | |
else | |
super | |
end | |
end |
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
[global_config] | |
borderless = True | |
suppress_multiple_term_dialog = True | |
window_state = maximized | |
[keybindings] | |
[layouts] | |
[[default]] | |
[[[console]]] | |
order = 0 | |
parent = support |
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
function shoot() { | |
local pid=`ps x \ | |
| grep '$@' \ | |
| grep -v grep \ | |
| head -n1 \ | |
| awk '{ print $1 }' | |
kill -9 $pid | |
} |
NewerOlder