Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View seekpeace's full-sized avatar

Enoch Shin seekpeace

  • Northern VA
View GitHub Profile
@seekpeace
seekpeace / searching_for_obi_wan.rb
Last active August 29, 2015 14:17
Where is OB1?
#The Search for Obi-Wan
puts "Hello, I'm C-3P0, human-cyborg relations."
puts "What is your name?"
name = gets.chomp.to_s
puts "It is a pleasure to meet you, #{name}. Have you ever met a protocol droid before?"
user_answer = gets.chomp.to_s
puts "#{user_answer}? How interesting, for someone from around these parts."
puts "I'm terribly sorry for prying, but you don't by any chance go by the alias of Obi-Wan Kenobi, do you?"
puts "(Please answer \"I do\" or \"I don't\")"
cd ..
mv TOP_SECRET/SERIOUSLY_TOP_SECRET/YOU_PROBABLY_SHOULDNT_BE_IN_HERE/totallyNotNuclearCodes.txt FLASH_DRIVE/.
echo "8675309" > NO_NUCLEAR_LAUNCH_SEQUENCES_HERE/totallyNotNuclearCodes.txt
cp CAT_PHOTOS/nefariousMisterMittens.jpg FLASH_DRIVE/.
rm -rf NO_NUCLEAR_LAUNCH_SEQUENCES_HERE/
mkdir DR_NEFARIOUS_NEW_LAUNCH_SEQUENCE
@seekpeace
seekpeace / bash_homework
Last active August 29, 2015 14:17
bash homework
export PATH="/usr/local/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
GA(){
mkdir GeneralAssembly
cd GeneralAssembly
mkdir -p Projects Outcomes Homework/week01/day01 Notes/week01/day01
echo “Keep calm and carry on” > README.md
echo “Hey there, student! Welcome to WDI6! I just set up this directory tree for you:”