Skip to content

Instantly share code, notes, and snippets.

@wannabefro
Created May 3, 2013 17:23
Show Gist options
  • Save wannabefro/5511588 to your computer and use it in GitHub Desktop.
Save wannabefro/5511588 to your computer and use it in GitHub Desktop.
Terminal excersise on apollo
➜ ~ echo "hello world"
hello world
➜ ~ ls -a
. .bash_profile .irb-history .subversion Applications Movies
.. .bashrc .irbc .viminfo Calibre Library Music
.CFUserTextEncoding .codeintel .irbrc .zcompdump Desktop Pictures
.DS_Store .cups .lesshst .zprofile Documents Public
.Trash .dropbox .oh-my-zsh .zsh-update Downloads
.adobe .fontconfig .rnd .zsh_history Dropbox
.android .gem .sqlite_history .zshrc Google Drive
.bash_history .gitconfig .ssh .zshrc.pre-oh-my-zsh Library
➜ ~ cd ../
➜ /Users cd sam
➜ ~ cd Documents
➜ Documents ls
CSS
Crossing The Line.txt
Imaginaters
Java
Javascript
Launch Academy
Learn Music Site
Lynda
Microsoft User Data
Objective-C
Ruby
SQL
Sports Interactive
Think Like a Programmer-An Introduction to Creative Problem Solving.pdf
Treehouse
Web
launcher_Sam
logo1.jpg
logo1.psd
my website
workspace
➜ ~ curl "www.apple.com"
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="Author" content="Apple Inc." />
<meta name="viewport" content="width=1024" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, IE=9" />
<link id="globalheader-stylesheet" rel="stylesheet" href="http://images.apple.com/global/nav/styles/navigation.css" type="text/css" />
<title>Apple</title>
<meta name="omni_page" content="Apple - Index/Tab" />
<meta name="Description" content="Apple designs and creates iPod and iTunes, Mac laptop and desktop computers, the OS X operating system, and the revolutionary iPhone and iPad." />
<link rel="home" href="http://www.apple.com/" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://images.apple.com/main/rss/hotnews/hotnews.rss" />
<link rel="index" href="http://www.apple.com/sitemap/" />
<link rel="stylesheet" href="/global/styles/base.css" type="text/css" />
<link rel="stylesheet" href="/v/home/t/styles/home.css" type="text/css" />
<link rel="stylesheet" href="/v/home/t/styles/billboard.css" type="text/css" />
<link rel="stylesheet" href="/v/itunes/shared/counter/a/styles/counter.css" type="text/css" />
<link rel="stylesheet" href="/itunes/shared/counter/styles/counter.css" type="text/css" />
<link rel="stylesheet" href="/home/styles/home.css" type="text/css" />
<script src="http://images.apple.com/global/scripts/lib/prototype.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/lib/scriptaculous.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/lib/sizzle.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/browserdetect.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/apple_core.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/search_decorator.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/feedstatistics.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/ac_base/ac_base.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/ac_retina/ac_retina.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/lib/event_mixins.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/swap_view.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/view_master_tracker.js" type="text/javascript" charset="utf-8"></script>
<script src="http://images.apple.com/global/scripts/ac_autogallery.js" type="text/javascript" charset="utf-8"></script>
<script src="/global/scripts/promomanager.js" type="text/javascript" charset="utf-8"></script>
<script src="/v/home/t/scripts/home.js" type="text/javascript" charset="utf-8"></script>
<script src="/v/itunes/shared/counter/a/scripts/counter.js" type="text/javascript" charset="utf-8"></script>
<script src="/v/home/t/scripts/home-promo-counter.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="home" class="home">
<script type="text/javascript">
var searchSection = 'global';
var searchCountry = 'us';
var aiRequestsEnabled = true;
var aiDisplaySuggestions = true;
</script>
<script src="http://images.apple.com/global/nav/scripts/globalnav.js" type="text/javascript" charset="utf-8"></script>
<nav id="globalheader" class="apple">
<!--googleoff: all-->
<ul id="globalnav" role="navigation">
<li id="gn-apple"><a href="/"><span>Apple</span></a></li>
<li id="gn-store"><a href="http://store.apple.com/"><span>Store</span></a></li>
<li id="gn-mac"><a href="/mac/"><span>Mac</span></a></li>
<li id="gn-ipod"><a href="/ipod/"><span>iPod</span></a></li>
<li id="gn-iphone"><a href="/iphone/"><span>iPhone</span></a></li>
<li id="gn-ipad"><a href="/ipad/"><span>iPad</span></a></li>
<li id="gn-itunes"><a href="/itunes/"><span>iTunes</span></a></li>
<li id="gn-support" class="gn-last"><a href="/support/"><span>Support</span></a></li>
</ul>
<!--googleon: all-->
<div id="globalsearch">
<form action="/search/" method="post" class="search" id="g-search"><div class="sp-label">
<label for="sp-searchtext">Search</label>
<input type="text" name="q" id="sp-searchtext" accesskey="s" />
</div></form>
<div id="sp-magnify"><div class="magnify-searchmode"></div><div class="magnify"></div></div>
<div id="sp-results"></div>
</div>
</nav>
<script type="text/javascript">
AC.GlobalNav.Instance = new AC.GlobalNav();
</script>
<div id="top">
<!-- SiteCatalyst code version: H.8. Copyright 1997-2006 Omniture, Inc. -->
<script type="text/javascript">
/* RSID: */
var s_account="appleglobal,applehome"
</script>
<script type="text/javascript" src="http://images.apple.com/metrics/scripts/s_code_h.js"></script>
<script type="text/javascript">
s.pageName=AC.Tracking.pageName()+" (us)";
s.channel="www.us.homepage"
/* Browser Height and Device Type */
var platform = '';
if (s.u.match(/(kindle|silk-accelerated|android|webos|rim tablet os|windows phone)/i)) {
platform = 'mobile other';
} else if (s.u.match(/windows/i)) {
platform = 'windows';
}else if (s.u.match(/(iphone|ipod)/i)) {
platform = 'iphone/ipod touch';
} else if (s.u.match(/(ipad)/i)) {
platform = 'ipad';
}else if (s.u.match(/Mac OS X/i)){
platform = 'Mac';
} else {
platform = 'other';
}
s.eVar44=window.innerHeight;
s.eVar43=platform;
Event.onDOMReady(function() {
function trackNav(link,loc) {
link.observe('mousedown',function(){
var propURL = null;
if(propURL = link.down('img')){
propURL = propURL.getAttribute('src');
propURL = propURL.substring(propURL.lastIndexOf('/')+1, propURL.length);
}
if(propURL == null){
propURL = link.getAttribute('href');
}
if (propURL != null) {
var prefix=(loc=='hero')?'h@':'p@';
AC.Tracking.trackClick({
prop3: prefix + propURL + ' - ' + AC.Tracking.pageName()
}, this, 'o', prefix + propURL + ' - ' + AC.Tracking.pageName());
}
//navigation tracking
if(AC&&AC.Storage){
AC.Storage.setItem('s_nav',loc,'0');
}
});
}
$$('#billboard a').each(function(link){
trackNav(link,'hero');
});
$$('.promos a').each(function(link){
trackNav(link,'promos');
});
});
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<!-- End SiteCatalyst code version: H.8. -->
</div>
<div id="main" data-hires="true">
<article id="billboard">
<div class="iphone-ipad-container">
<section class="hero">
<a href="/iphone/" class="block iphone">
<h1><img src="/home/images/billboard_iphone_title.png" height="136" width="640" alt="iPhone 5. Loving it is easy. That's why so many people do." /></h1>
<img src="/home/images/billboard_iphone_hero.jpg" height="528" width="763" alt="" class="hero-image" />
</a>
</section>
<section class="hero">
<a href="/ipad/" class="block ipad">
<h1><img src="/home/images/billboard_ipad_title.png" height="118" width="217" alt="iPad. Two sizes do all." /></h1>
<img src="/home/images/billboard_ipad_hero.jpg" height="607" width="510" alt="" class="hero-image" />
</a>
</section>
</div><!-- /iphone-ipad-container -->
</article><!--/billboard-->
<aside class="promos">
<ul>
<li class="first-child"><div class="curve-down">
<a class="promo1" href="/ipad/"><img src="http://images.apple.com/home/images/promo_ipad.png" alt="iPad. Two sizes do all." width="237" height="185" /></a>
<a class="promo1" href="/iphone/"><img src="http://images.apple.com/home/images/promo_iphone5.png" alt="iPhone 5. Loving it is easy. That’s why so many people do." width="237" height="185" /></a>
</div></li>
<li class="second-child"><div class="curve-down">
<a class="promo2" href="/iphone/videos/#tv-ads-photos-every-day"><img src="http://images.apple.com/home/images/promo_iphone_ad_photoseveryday.png" alt="Watch the new iPhone TV ad.”" width="237" height="185" /><span class="play"></span></a>
</div></li>
<li class="third-child"><div class="curve-down">
<a class="promo tile promo3" href="/itunes/50-billion-app-countdown/">
<img src="http://images.apple.com/home/images/promo_50billion.png" alt="Thanks to you, we’re about to hit 50 billion app downloads." width="237" height="185" />
<div class="counter selfclear">
<noscript><img src="http://images.apple.com/itunes/shared/counter/images/counter_noscript_promo.png" width="207" height="34" alt="" /></noscript>
</div>
</a>
</div></li>
<li class="last-child"><div class="curve-down">
<a class="promo4" href="https://developer.apple.com/wwdc/"><img src="http://images.apple.com/home/images/promo_wwdc.png" alt="WWDC 2013. June 10-14 in San Francisco." width="237" height="185" /></a>
</div></li>
</ul>
</aside>
<footer id="homefooter">
<div id="links">
<p class="left">Shop the <a href="http://store.apple.com/us">Apple Online Store</a> (1-800-MY-APPLE), visit an <a href="/retail/">Apple Retail Store</a>, or find a <a href="/buy/">reseller</a>.</p>
<ul class="piped right">
<li><a href="/sitemap/" class="first">Site Map</a></li>
<li><a href="/hotnews/">Hot News</a></li>
<li><a href="/rss/">RSS Feeds</a></li>
<li><a href="/pr/">Media Info</a></li>
<li><a href="/environment/">Environment</a></li>
<li><a href="/jobs/">Job Opportunities</a></li>
<li><a href="/contact/">Contact Us</a></li>
</ul>
</div><!--/links-->
<div class="sosumi">
<p class="copyright">Copyright © 2013 Apple Inc. All rights reserved.</p>
<ul class="piped">
<li><a href="/legal/" class="first">Terms of Use</a></li>
<li><a href="/legal/privacy/">Privacy Policy</a></li>
</ul>
<div id="worldwide">
<a href="/choose-your-country/">
<img src="/global/elements/flags/22x22/usa.png" alt="United States of America" height="22" width="22" />
<span class="more">Choose your country or region</span>
</a>
</div>
</div><!--/sosumi-->
</footer><!--/homefooter-->
</div><!--/main-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment