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
#!/bin/bash | |
# Author: Jason Barnett <[email protected]> | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2014 Jason Barnett | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
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
jbarnett@Hackintosh-10 ~ $ cat ~/.ssh/config | |
Host r176.spigit.com r178.spigit.com | |
ProxyCommand ssh -T operations002.c.mindjet-gce-stack.internal 'nc %h %p' | |
jbarnett@Hackintosh-10 ~ $ |
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
#!/bin/bash | |
wget "http://golang.org/dl/go1.3.linux-amd64.tar.gz" -O ~/go1.3.linux-amd64.tar.gz | |
tar -C /usr/local -xzf ~/go1.3.linux-amd64.tar.gz | |
cat << 'EOF' | sudo tee -a /etc/profile | |
export GOROOT=/usr/local/go | |
export PATH=$PATH:/usr/local/go/bin | |
EOF |
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
#!/bin/bash | |
components=$(mysql -BNe 'select * from bugs.components;' | tr '\t' '|') | |
AMY_ID=277 | |
IFS=$'\n' | |
for x in $components;do | |
component_id=$(echo ${x} | awk -F\| '{print $1}') | |
default_assignee_id=$(echo ${x} | awk -F\| '{print $4}') | |
default_assignee_email=$(mysql -BNe "select login_name from bugs.profiles where userid = '${default_assignee_id}';") | |
example_email=$(echo ${default_assignee_email} | egrep -o 'example\.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
cat >> ~/.vimrc <<EOF | |
set nocompatible | |
set backspace=indent,eol,start | |
EOF |
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
## First we remove all of the old crap: | |
curl "https://gist.githubusercontent.com/mxcl/1173223/raw/a833ba44e7be8428d877e58640720ff43c59dbad/uninstall_homebrew.sh" > ~/uninstall_homebrew.sh | |
bash ~/uninstall_homebrew.sh | |
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup | |
rm -Rf ~/.rvm | |
## Re-install homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
## Install required libs |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC4gPkAp6XL8nIKs8LH5jouh69sIDCmlOh8hKDEEIepk49+HcTKdD7ZSCPvKKZIfdDREqVRFY9/EAQRVoe/LpeNqm5YsqEiyuzXmJF98LF2u00cWz6dOQsGjvdFllOBm0SbzP+Ylz4432bCMJnSXddwTzZ4rXuhtfM/DGJlx0nZ3DeceTNV22GdqFJbxv1/HqemWp8u6pFLUyHJsLqz2Zeuelyn5PHPKEj/oAtQxiAoAYrG5kP38lYngUeT4mtRQWPa3ug74KOzwK/bzmSLgFTPDWqXJRaR5b6M7hM5y9JoMZoLVskSSmOuhSsQeC7Q3tHiwgoauYIQeSqsmv8hP6PVWtSN07Dh/vF5nqTkTY/noQKm8UvRQ1dQCCCXxRwWwHWed/MAQgnTwjijnHfBNP1X6BXcqFRkDzjlx8vpt4T4p29CiSwTfpAOihMSRbAy1WMsSa7l9KhYJ1qDqajGCI2/cutkQS8WFxdBG+bfHTz6VJ2Nl4XwC0veLJ/z8ItC25ADWchDhd4dGqXnjmigcFvj+eX6adyXsSCgDtSdbRgA7NMA/vQWGu2qsQAbY966cfC7YT77csZNekrY46sRa89UCOpP+vPSwhZfX5WAlkEIbGYtQEhZkStuP/I/pJHrdo0VwMXkaULYZ951W8qwK3KkZiW2R4pBgmP/WRnhpGTw2Q== [email protected] |
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
## Install homebrew: | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
## Run brew doctor to make sure everything is ok | |
brew doctor | |
## Install mutt | |
brew install mutt | |
## Setup your .muttrc file with the gmail smtp info: |
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 'mysql2' | |
mysql = Mysql2::Client.new(:default_file => '/root/.my.cnf', :default_group => 'client') | |
mysql.query_options.merge!(:symbolize_keys => true) | |
result = mysql.query("SELECT siteid,servername,port FROM qa34ga.SiteUrls;") | |
result.each { |x| p x } | |
# {:siteid=>1, :servername=>"www.qa34ga.mydomain.com", :port=>80} | |
# {:siteid=>502, :servername=>"graduationtest.qa34ga.mydomain.com", :port=>80} |