Skip to content

Instantly share code, notes, and snippets.

View sojourning's full-sized avatar

indefiniteloop.com sojourning

View GitHub Profile
@sojourning
sojourning / states_hash.json
Created March 25, 2016 09:53 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@sojourning
sojourning / build.sh
Created February 14, 2016 18:09
Build script used with Jenkins for Building a Jekyll blog.
#!/bin/sh
cd /path/to/jekyll/setup/
rvmsudo jekyll build --lsi #I use rvm to manage rubies, and gems.
#once successfully built, commit the changes to the repo.
sudo git add --all
sudo git commit -m "Successful Build Commit - Build Number: $BUILD_NUMBER" #Build Number fetched from var that Jenkins makes available for shell scripts
sudo git push
#Once pushed to the git repo, we publish the blog with rsync.
sudo rsync -vrpzc --delete /path/to/jekyll/setup/ /Path/To/Apache/Web/Folder/For/Blog/
if [ $? -eq 0 ]