- Josh Goebel (@yyyc514): suggested lazy evaluation on
set
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 'rubygems' | |
require 'net/http' | |
require 'digest/md5' | |
require 'pp' | |
begin | |
require 'faker' | |
rescue LoadError | |
puts "You should install faker gem. (gem install faker)" | |
exit |
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
JavaScript █████████████████░░░ なかなか Pretty Good | |
HTML ███████████░░░░░░░░░ まあまあ Not Bad | |
CSS █████████████░░░░░░░ そこそこ Alright | |
Vue.js ███████████████░░░░░ それなり Good | |
Muscle ██░░░░░░░░░░░░░░░░░░ よわよわ Weak | |
Guitar ███████████████████░ つよつよ Strong |
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
# command line: | |
/bin/sh -c 'cd /var/www/app/ && /usr/bin/git pull origin develop >> /var/www/app/log/gitpull.log 2>&1' | |
# crontab edit | |
crontab -e | |
# every 1 minute pull changes (if any) | |
*/1 * * * * /bin/sh -c 'cd /var/www/app/ && /usr/bin/git pull origin develop >> /var/www/app/log/gitpull.log 2>&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
#!/bin/bash | |
# | |
# Set up OSX preferences | |
# | |
# Inspired by: https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
########################################### | |
# CONFIG | |
HOSTNAME="machiavellia" | |
TIMEZONE="America/Chicago" # 'systemsetup -listtimezones' |
Edit: I few months ago I got a new laptop and did the same thing on Mavericks.
I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).
I kinda regret for not using Boxen to automate the