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 | |
# From Friday, August 03, 2012 | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 |
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 | |
function generate_ssl_cert { | |
cert_name=$1 | |
( | |
openssl genrsa -des3 -out ${cert_name}.key 1024 | |
openssl rsa -in ${cert_name}.key -out ${cert_name}.pem | |
openssl req -new -key ${cert_name}.pem -out ${cert_name}.csr | |
openssl x509 -req -days 365 -in ${cert_name}.csr -signkey ${cert_name}.pem -out ${cert_name}.crt |
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: http://stackoverflow.com/questions/5377960/whats-the-best-practice-to-git-clone-into-an-existing-folder | |
git init | |
git remote add origin $repo_url | |
git fetch origin | |
git checkout -b $branch --track origin/$branch | |
git reset origin/$branch |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<text/> | |
</head> | |
<body> | |
<outline isOpen="false" id="1717402843" text="Environment"> | |
<outline title="Weather - Google News" useCustomFetchInterval="true" version="RSS" useNotification="true" maxArticleAge="60" description="Google News" htmlUrl="http://news.google.com/news?pz=1&ned=us&hl=en" xmlUrl="https://news.google.com/news/feeds?pz=1&cf=all&ned=us&hl=en&csid=b41a655d9b7f7fa0&output=rss" fetchInterval="15" loadLinkedWebsite="true" type="rss" id="765362081" archiveMode="keepAllArticles" maxArticleNumber="1000" text="Weather - Google News"/> | |
</outline> | |
<outline isOpen="false" id="1965544465" text="Education"> |
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
rsync -avz --exclude "{DIR}" -e "ssh -i {PRIV_KEY} -p {PORT}" {LOCAL_DIR}/ {USER}@{IP}:{REMOTE_DIR}/ |
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 | |
vagrant_home_dir="$HOME/.vagrant.d" | |
/usr/bin/env ruby <<-EORUBY | |
require 'json' | |
require 'fileutils' | |
puts 'Loading current Vagrant plugin data' | |
plugin_data = JSON.parse(File.read("$vagrant_home_dir/plugins.json")) |
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 | |
current_dir=`pwd` | |
gem_dir="$current_dir/gems" | |
gem_files=() | |
index=1 | |
echo "Gathering gem repositories from $gem_dir" | |
for file in "$gem_dir"/* |
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 properties (mm) | |
// | |
part_height = 3; | |
ring_outer_diameter = 13; | |
ring_inner_diameter = 7; | |
connector_bridge_length = 38; |
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 properties (mm) | |
// | |
part_height = 3; | |
ring_outer_diameter = 13; | |
ring_inner_diameter = 7; | |
connector_bridge_length = 89; |
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 | |
curr_dir=`pwd` | |
for dir in $(find $curr_dir -type d) | |
do | |
if [ -d "${dir}/.git" ] | |
then | |
echo "Checking Git repo: ${dir}" | |
cd $dir |
OlderNewer