728 lines
36 KiB
Bash
728 lines
36 KiB
Bash
|
|
||
|
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en" class="">
|
||
|
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
|
||
|
<meta charset='utf-8'>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta http-equiv="Content-Language" content="en">
|
||
|
|
||
|
|
||
|
<title>chill-script/chill.sh at master · silvernode/chill-script · GitHub</title>
|
||
|
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
|
||
|
<link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
|
||
|
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-114.png">
|
||
|
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114.png">
|
||
|
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-144.png">
|
||
|
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png">
|
||
|
<meta property="fb:app_id" content="1401488693436528">
|
||
|
|
||
|
<meta content="@github" name="twitter:site" /><meta content="summary" name="twitter:card" /><meta content="silvernode/chill-script" name="twitter:title" /><meta content="chill-script - Countdown to next bong hit" name="twitter:description" /><meta content="https://avatars1.githubusercontent.com/u/401972?v=3&s=400" name="twitter:image:src" />
|
||
|
<meta content="GitHub" property="og:site_name" /><meta content="object" property="og:type" /><meta content="https://avatars1.githubusercontent.com/u/401972?v=3&s=400" property="og:image" /><meta content="silvernode/chill-script" property="og:title" /><meta content="https://github.com/silvernode/chill-script" property="og:url" /><meta content="chill-script - Countdown to next bong hit" property="og:description" />
|
||
|
<meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
|
||
|
<meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
|
||
|
<link rel="assets" href="https://assets-cdn.github.com/">
|
||
|
|
||
|
<meta name="pjax-timeout" content="1000">
|
||
|
|
||
|
|
||
|
<meta name="msapplication-TileImage" content="/windows-tile.png">
|
||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||
|
<meta name="selected-link" value="repo_source" data-pjax-transient>
|
||
|
<meta name="google-analytics" content="UA-3769691-2">
|
||
|
|
||
|
<meta content="collector.githubapp.com" name="octolytics-host" /><meta content="collector-cdn.github.com" name="octolytics-script-host" /><meta content="github" name="octolytics-app-id" /><meta content="467BB9D9:2CC1:9F2CC56:5557195F" name="octolytics-dimension-request_id" />
|
||
|
|
||
|
<meta content="Rails, view, blob#show" name="analytics-event" />
|
||
|
<meta class="js-ga-set" name="dimension1" content="Logged Out">
|
||
|
<meta class="js-ga-set" name="dimension2" content="Header v3">
|
||
|
<meta name="is-dotcom" content="true">
|
||
|
<meta name="hostname" content="github.com">
|
||
|
<meta name="user-login" content="">
|
||
|
|
||
|
|
||
|
<link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
|
||
|
|
||
|
|
||
|
<meta content="authenticity_token" name="csrf-param" />
|
||
|
<meta content="4e4WIndlmXenzyzroJAE+/PHiqUl5t2WDjtxLIfpDxFEiquZ3IRDpYzlfMKpWlJIpWU5wljG76SK4etEsZ//Gg==" name="csrf-token" />
|
||
|
|
||
|
<link href="https://assets-cdn.github.com/assets/github/index-d80e093fe7c48ff920ce83dfd2ad7c02806722220d164b49101ed783098ea618.css" media="all" rel="stylesheet" />
|
||
|
<link href="https://assets-cdn.github.com/assets/github2/index-99a58ea750b0547d1266460cd4ade0c2c81ed8c524cbba4ea5e3b37e18daec79.css" media="all" rel="stylesheet" />
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<meta http-equiv="x-pjax-version" content="282d80bd51fc0e03270191711c02f726">
|
||
|
|
||
|
|
||
|
<meta name="description" content="chill-script - Countdown to next bong hit">
|
||
|
<meta name="go-import" content="github.com/silvernode/chill-script git https://github.com/silvernode/chill-script.git">
|
||
|
|
||
|
<meta content="401972" name="octolytics-dimension-user_id" /><meta content="silvernode" name="octolytics-dimension-user_login" /><meta content="35718958" name="octolytics-dimension-repository_id" /><meta content="silvernode/chill-script" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="35718958" name="octolytics-dimension-repository_network_root_id" /><meta content="silvernode/chill-script" name="octolytics-dimension-repository_network_root_nwo" />
|
||
|
<link href="https://github.com/silvernode/chill-script/commits/master.atom" rel="alternate" title="Recent Commits to chill-script:master" type="application/atom+xml">
|
||
|
|
||
|
</head>
|
||
|
|
||
|
|
||
|
<body class="logged_out env-production linux vis-public page-blob">
|
||
|
<a href="#start-of-content" tabindex="1" class="accessibility-aid js-skip-to-content">Skip to content</a>
|
||
|
<div class="wrapper">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="header header-logged-out" role="banner">
|
||
|
<div class="container clearfix">
|
||
|
|
||
|
<a class="header-logo-wordmark" href="https://github.com/" data-ga-click="(Logged out) Header, go to homepage, icon:logo-wordmark">
|
||
|
<span class="mega-octicon octicon-logo-github"></span>
|
||
|
</a>
|
||
|
|
||
|
<div class="header-actions" role="navigation">
|
||
|
<a class="btn btn-primary" href="/join" data-ga-click="(Logged out) Header, clicked Sign up, text:sign-up">Sign up</a>
|
||
|
<a class="btn" href="/login?return_to=%2Fsilvernode%2Fchill-script%2Fblob%2Fmaster%2Fchill.sh" data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">Sign in</a>
|
||
|
</div>
|
||
|
|
||
|
<div class="site-search repo-scope js-site-search" role="search">
|
||
|
<form accept-charset="UTF-8" action="/silvernode/chill-script/search" class="js-site-search-form" data-global-search-url="/search" data-repo-search-url="/silvernode/chill-script/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /></div>
|
||
|
<label class="js-chromeless-input-container form-control">
|
||
|
<div class="scope-badge">This repository</div>
|
||
|
<input type="text"
|
||
|
class="js-site-search-focus js-site-search-field is-clearable chromeless-input"
|
||
|
data-hotkey="s"
|
||
|
name="q"
|
||
|
placeholder="Search"
|
||
|
data-global-scope-placeholder="Search GitHub"
|
||
|
data-repo-scope-placeholder="Search"
|
||
|
tabindex="1"
|
||
|
autocapitalize="off">
|
||
|
</label>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<ul class="header-nav left" role="navigation">
|
||
|
<li class="header-nav-item">
|
||
|
<a class="header-nav-link" href="/explore" data-ga-click="(Logged out) Header, go to explore, text:explore">Explore</a>
|
||
|
</li>
|
||
|
<li class="header-nav-item">
|
||
|
<a class="header-nav-link" href="/features" data-ga-click="(Logged out) Header, go to features, text:features">Features</a>
|
||
|
</li>
|
||
|
<li class="header-nav-item">
|
||
|
<a class="header-nav-link" href="https://enterprise.github.com/" data-ga-click="(Logged out) Header, go to enterprise, text:enterprise">Enterprise</a>
|
||
|
</li>
|
||
|
<li class="header-nav-item">
|
||
|
<a class="header-nav-link" href="/blog" data-ga-click="(Logged out) Header, go to blog, text:blog">Blog</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<div id="start-of-content" class="accessibility-aid"></div>
|
||
|
<div class="site" itemscope itemtype="http://schema.org/WebPage">
|
||
|
<div id="js-flash-container">
|
||
|
|
||
|
</div>
|
||
|
<div class="pagehead repohead instapaper_ignore readability-menu">
|
||
|
<div class="container">
|
||
|
|
||
|
<ul class="pagehead-actions">
|
||
|
|
||
|
<li>
|
||
|
<a href="/login?return_to=%2Fsilvernode%2Fchill-script"
|
||
|
class="btn btn-sm btn-with-count tooltipped tooltipped-n"
|
||
|
aria-label="You must be signed in to watch a repository" rel="nofollow">
|
||
|
<span class="octicon octicon-eye"></span>
|
||
|
Watch
|
||
|
</a>
|
||
|
<a class="social-count" href="/silvernode/chill-script/watchers">
|
||
|
1
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="/login?return_to=%2Fsilvernode%2Fchill-script"
|
||
|
class="btn btn-sm btn-with-count tooltipped tooltipped-n"
|
||
|
aria-label="You must be signed in to star a repository" rel="nofollow">
|
||
|
<span class="octicon octicon-star"></span>
|
||
|
Star
|
||
|
</a>
|
||
|
|
||
|
<a class="social-count js-social-count" href="/silvernode/chill-script/stargazers">
|
||
|
0
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li>
|
||
|
<a href="/login?return_to=%2Fsilvernode%2Fchill-script"
|
||
|
class="btn btn-sm btn-with-count tooltipped tooltipped-n"
|
||
|
aria-label="You must be signed in to fork a repository" rel="nofollow">
|
||
|
<span class="octicon octicon-repo-forked"></span>
|
||
|
Fork
|
||
|
</a>
|
||
|
<a href="/silvernode/chill-script/network" class="social-count">
|
||
|
0
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
|
||
|
<span class="mega-octicon octicon-repo"></span>
|
||
|
<span class="author"><a href="/silvernode" class="url fn" itemprop="url" rel="author"><span itemprop="title">silvernode</span></a></span><!--
|
||
|
--><span class="path-divider">/</span><!--
|
||
|
--><strong><a href="/silvernode/chill-script" class="js-current-repository" data-pjax="#js-repo-pjax-container">chill-script</a></strong>
|
||
|
|
||
|
<span class="page-context-loader">
|
||
|
<img alt="" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
|
||
|
</span>
|
||
|
|
||
|
</h1>
|
||
|
</div><!-- /.container -->
|
||
|
</div><!-- /.repohead -->
|
||
|
|
||
|
<div class="container">
|
||
|
<div class="repository-with-sidebar repo-container new-discussion-timeline ">
|
||
|
<div class="repository-sidebar clearfix">
|
||
|
|
||
|
<nav class="sunken-menu repo-nav js-repo-nav js-sidenav-container-pjax js-octicon-loaders"
|
||
|
role="navigation"
|
||
|
data-pjax="#js-repo-pjax-container"
|
||
|
data-issue-count-url="/silvernode/chill-script/issues/counts">
|
||
|
<ul class="sunken-menu-group">
|
||
|
<li class="tooltipped tooltipped-w" aria-label="Code">
|
||
|
<a href="/silvernode/chill-script" aria-label="Code" class="selected js-selected-navigation-item sunken-menu-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /silvernode/chill-script">
|
||
|
<span class="octicon octicon-code"></span> <span class="full-word">Code</span>
|
||
|
<img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
|
||
|
</a> </li>
|
||
|
|
||
|
<li class="tooltipped tooltipped-w" aria-label="Issues">
|
||
|
<a href="/silvernode/chill-script/issues" aria-label="Issues" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /silvernode/chill-script/issues">
|
||
|
<span class="octicon octicon-issue-opened"></span> <span class="full-word">Issues</span>
|
||
|
<span class="js-issue-replace-counter"></span>
|
||
|
<img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
|
||
|
</a> </li>
|
||
|
|
||
|
<li class="tooltipped tooltipped-w" aria-label="Pull requests">
|
||
|
<a href="/silvernode/chill-script/pulls" aria-label="Pull requests" class="js-selected-navigation-item sunken-menu-item" data-hotkey="g p" data-selected-links="repo_pulls /silvernode/chill-script/pulls">
|
||
|
<span class="octicon octicon-git-pull-request"></span> <span class="full-word">Pull requests</span>
|
||
|
<span class="js-pull-replace-counter"></span>
|
||
|
<img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
|
||
|
</a> </li>
|
||
|
|
||
|
</ul>
|
||
|
<div class="sunken-menu-separator"></div>
|
||
|
<ul class="sunken-menu-group">
|
||
|
|
||
|
<li class="tooltipped tooltipped-w" aria-label="Pulse">
|
||
|
<a href="/silvernode/chill-script/pulse" aria-label="Pulse" class="js-selected-navigation-item sunken-menu-item" data-selected-links="pulse /silvernode/chill-script/pulse">
|
||
|
<span class="octicon octicon-pulse"></span> <span class="full-word">Pulse</span>
|
||
|
<img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
|
||
|
</a> </li>
|
||
|
|
||
|
<li class="tooltipped tooltipped-w" aria-label="Graphs">
|
||
|
<a href="/silvernode/chill-script/graphs" aria-label="Graphs" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_graphs repo_contributors /silvernode/chill-script/graphs">
|
||
|
<span class="octicon octicon-graph"></span> <span class="full-word">Graphs</span>
|
||
|
<img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif" width="16" />
|
||
|
</a> </li>
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
</nav>
|
||
|
|
||
|
<div class="only-with-full-nav">
|
||
|
|
||
|
<div class="clone-url open"
|
||
|
data-protocol-type="http"
|
||
|
data-url="/users/set_protocol?protocol_selector=http&protocol_type=clone">
|
||
|
<h3><span class="text-emphasized">HTTPS</span> clone URL</h3>
|
||
|
<div class="input-group js-zeroclipboard-container">
|
||
|
<input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
|
||
|
value="https://github.com/silvernode/chill-script.git" readonly="readonly">
|
||
|
<span class="input-group-button">
|
||
|
<button aria-label="Copy to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button tooltipped tooltipped-s" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="clone-url "
|
||
|
data-protocol-type="subversion"
|
||
|
data-url="/users/set_protocol?protocol_selector=subversion&protocol_type=clone">
|
||
|
<h3><span class="text-emphasized">Subversion</span> checkout URL</h3>
|
||
|
<div class="input-group js-zeroclipboard-container">
|
||
|
<input type="text" class="input-mini input-monospace js-url-field js-zeroclipboard-target"
|
||
|
value="https://github.com/silvernode/chill-script" readonly="readonly">
|
||
|
<span class="input-group-button">
|
||
|
<button aria-label="Copy to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button tooltipped tooltipped-s" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<p class="clone-options">You can clone with
|
||
|
<a href="#" class="js-clone-selector" data-protocol="http">HTTPS</a> or <a href="#" class="js-clone-selector" data-protocol="subversion">Subversion</a>.
|
||
|
<a href="https://help.github.com/articles/which-remote-url-should-i-use" class="help tooltipped tooltipped-n" aria-label="Get help on which URL is right for you.">
|
||
|
<span class="octicon octicon-question"></span>
|
||
|
</a>
|
||
|
</p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<a href="/silvernode/chill-script/archive/master.zip"
|
||
|
class="btn btn-sm sidebar-button"
|
||
|
aria-label="Download the contents of silvernode/chill-script as a zip file"
|
||
|
title="Download the contents of silvernode/chill-script as a zip file"
|
||
|
rel="nofollow">
|
||
|
<span class="octicon octicon-cloud-download"></span>
|
||
|
Download ZIP
|
||
|
</a>
|
||
|
</div>
|
||
|
</div><!-- /.repository-sidebar -->
|
||
|
|
||
|
<div id="js-repo-pjax-container" class="repository-content context-loader-container" data-pjax-container>
|
||
|
|
||
|
|
||
|
|
||
|
<a href="/silvernode/chill-script/blob/82a820324d12536a7f99a9824fae8f39be17d605/chill.sh" class="hidden js-permalink-shortcut" data-hotkey="y">Permalink</a>
|
||
|
|
||
|
<!-- blob contrib key: blob_contributors:v21:c04aea16ef6ec019bee6c3ed148bca60 -->
|
||
|
|
||
|
<div class="file-navigation js-zeroclipboard-container">
|
||
|
|
||
|
<div class="select-menu js-menu-container js-select-menu left">
|
||
|
<span class="btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
|
||
|
data-master-branch="master"
|
||
|
data-ref="master"
|
||
|
title="master"
|
||
|
role="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
|
||
|
<span class="octicon octicon-git-branch"></span>
|
||
|
<i>branch:</i>
|
||
|
<span class="js-select-button css-truncate-target">master</span>
|
||
|
</span>
|
||
|
|
||
|
<div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
|
||
|
|
||
|
<div class="select-menu-modal">
|
||
|
<div class="select-menu-header">
|
||
|
<span class="select-menu-title">Switch branches/tags</span>
|
||
|
<span class="octicon octicon-x js-menu-close" role="button" aria-label="Close"></span>
|
||
|
</div>
|
||
|
|
||
|
<div class="select-menu-filters">
|
||
|
<div class="select-menu-text-filter">
|
||
|
<input type="text" aria-label="Filter branches/tags" id="context-commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
|
||
|
</div>
|
||
|
<div class="select-menu-tabs">
|
||
|
<ul>
|
||
|
<li class="select-menu-tab">
|
||
|
<a href="#" data-tab-filter="branches" data-filter-placeholder="Filter branches/tags" class="js-select-menu-tab">Branches</a>
|
||
|
</li>
|
||
|
<li class="select-menu-tab">
|
||
|
<a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab">Tags</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches">
|
||
|
|
||
|
<div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
|
||
|
|
||
|
|
||
|
<a class="select-menu-item js-navigation-item js-navigation-open selected"
|
||
|
href="/silvernode/chill-script/blob/master/chill.sh"
|
||
|
data-name="master"
|
||
|
data-skip-pjax="true"
|
||
|
rel="nofollow">
|
||
|
<span class="select-menu-item-icon octicon octicon-check"></span>
|
||
|
<span class="select-menu-item-text css-truncate-target" title="master">
|
||
|
master
|
||
|
</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
|
||
|
<div class="select-menu-no-results">Nothing to show</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
|
||
|
<div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="select-menu-no-results">Nothing to show</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="btn-group right">
|
||
|
<a href="/silvernode/chill-script/find/master"
|
||
|
class="js-show-file-finder btn btn-sm empty-icon tooltipped tooltipped-s"
|
||
|
data-pjax
|
||
|
data-hotkey="t"
|
||
|
aria-label="Quickly jump between files">
|
||
|
<span class="octicon octicon-list-unordered"></span>
|
||
|
</a>
|
||
|
<button aria-label="Copy file path to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button tooltipped tooltipped-s" data-copied-hint="Copied!" type="button"><span class="octicon octicon-clippy"></span></button>
|
||
|
</div>
|
||
|
|
||
|
<div class="breadcrumb js-zeroclipboard-target">
|
||
|
<span class='repo-root js-repo-root'><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/silvernode/chill-script" class="" data-branch="master" data-direction="back" data-pjax="true" itemscope="url"><span itemprop="title">chill-script</span></a></span></span><span class="separator">/</span><strong class="final-path">chill.sh</strong>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="commit file-history-tease">
|
||
|
<div class="file-history-tease-header">
|
||
|
<img alt="@silvernode" class="avatar" data-user="401972" height="24" src="https://avatars3.githubusercontent.com/u/401972?v=3&s=48" width="24" />
|
||
|
<span class="author"><a href="/silvernode" rel="author">silvernode</a></span>
|
||
|
<time datetime="2015-05-16T10:12:46Z" is="relative-time">May 16, 2015</time>
|
||
|
<div class="commit-title">
|
||
|
<a href="/silvernode/chill-script/commit/82a820324d12536a7f99a9824fae8f39be17d605" class="message" data-pjax="true" title="first commit">first commit</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="participation">
|
||
|
<p class="quickstat">
|
||
|
<a href="#blob_contributors_box" rel="facebox">
|
||
|
<strong>1</strong>
|
||
|
contributor
|
||
|
</a>
|
||
|
</p>
|
||
|
|
||
|
</div>
|
||
|
<div id="blob_contributors_box" style="display:none">
|
||
|
<h2 class="facebox-header">Users who have contributed to this file</h2>
|
||
|
<ul class="facebox-user-list">
|
||
|
<li class="facebox-user-list-item">
|
||
|
<img alt="@silvernode" data-user="401972" height="24" src="https://avatars3.githubusercontent.com/u/401972?v=3&s=48" width="24" />
|
||
|
<a href="/silvernode">silvernode</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="file">
|
||
|
<div class="file-header">
|
||
|
<div class="file-actions">
|
||
|
|
||
|
<div class="btn-group">
|
||
|
<a href="/silvernode/chill-script/raw/master/chill.sh" class="btn btn-sm " id="raw-url">Raw</a>
|
||
|
<a href="/silvernode/chill-script/blame/master/chill.sh" class="btn btn-sm js-update-url-with-hash">Blame</a>
|
||
|
<a href="/silvernode/chill-script/commits/master/chill.sh" class="btn btn-sm " rel="nofollow">History</a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<button type="button" class="octicon-btn disabled tooltipped tooltipped-n" aria-label="You must be signed in to make or propose changes">
|
||
|
<span class="octicon octicon-pencil"></span>
|
||
|
</button>
|
||
|
|
||
|
<button type="button" class="octicon-btn octicon-btn-danger disabled tooltipped tooltipped-n" aria-label="You must be signed in to make or propose changes">
|
||
|
<span class="octicon octicon-trashcan"></span>
|
||
|
</button>
|
||
|
</div>
|
||
|
|
||
|
<div class="file-info">
|
||
|
<span class="file-mode" title="File mode">executable file</span>
|
||
|
<span class="file-info-divider"></span>
|
||
|
46 lines (33 sloc)
|
||
|
<span class="file-info-divider"></span>
|
||
|
0.59 kb
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="blob-wrapper data type-shell">
|
||
|
<table class="highlight tab-size-8 js-file-line-container">
|
||
|
<tr>
|
||
|
<td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
|
||
|
<td id="LC1" class="blob-code blob-code-inner js-file-line"><span class="pl-c">#!/bin/bash</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
|
||
|
<td id="LC2" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
|
||
|
<td id="LC3" class="blob-code blob-code-inner js-file-line">CHILLTIME=1 <span class="pl-c"># Minutes between bong hits</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
|
||
|
<td id="LC4" class="blob-code blob-code-inner js-file-line">BONGTIME=1 <span class="pl-c"># Minutes during bong hits</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
|
||
|
<td id="LC5" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
|
||
|
<td id="LC6" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
|
||
|
<td id="LC7" class="blob-code blob-code-inner js-file-line"><span class="pl-en">chillCount</span>(){</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
|
||
|
<td id="LC8" class="blob-code blob-code-inner js-file-line"> clear</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
|
||
|
<td id="LC9" class="blob-code blob-code-inner js-file-line"> secs=<span class="pl-s"><span class="pl-pds">$((</span> <span class="pl-smi">${CHILLTIME}</span> <span class="pl-k">*</span> <span class="pl-c1">60</span><span class="pl-pds">))</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
|
||
|
<td id="LC10" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>(-_-)<span class="pl-pds">"</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
|
||
|
<td id="LC11" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>Seconds until next bong hit<span class="pl-pds">"</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
|
||
|
<td id="LC12" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">while</span> [ <span class="pl-smi">$secs</span> -gt 0 ]<span class="pl-k">;</span> <span class="pl-k">do</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
|
||
|
<td id="LC13" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
|
||
|
<td id="LC14" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> -ne <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$secs</span>\033[0K\r<span class="pl-pds">"</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
|
||
|
<td id="LC15" class="blob-code blob-code-inner js-file-line"> sleep 1</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
|
||
|
<td id="LC16" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">$((</span>secs<span class="pl-k">--</span><span class="pl-pds">))</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
|
||
|
<td id="LC17" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">done</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
|
||
|
<td id="LC18" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
|
||
|
<td id="LC19" class="blob-code blob-code-inner js-file-line">}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
|
||
|
<td id="LC20" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
|
||
|
<td id="LC21" class="blob-code blob-code-inner js-file-line"><span class="pl-en">bongCount</span>(){</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
|
||
|
<td id="LC22" class="blob-code blob-code-inner js-file-line"> clear</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
|
||
|
<td id="LC23" class="blob-code blob-code-inner js-file-line"> secs=<span class="pl-s"><span class="pl-pds">$((</span> <span class="pl-smi">${BONGTIME}</span> <span class="pl-k">*</span> <span class="pl-c1">60</span><span class="pl-pds">))</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
|
||
|
<td id="LC24" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>(-_-)<span class="pl-pds">"</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
|
||
|
<td id="LC25" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
|
||
|
<td id="LC26" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>Seconds until next chill period<span class="pl-pds">"</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
|
||
|
<td id="LC27" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">while</span> [ <span class="pl-smi">$secs</span> -gt 0 ]<span class="pl-k">;</span> <span class="pl-k">do</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
|
||
|
<td id="LC28" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
|
||
|
<td id="LC29" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">echo</span> -ne <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$secs</span>\033[0K\r<span class="pl-pds">"</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
|
||
|
<td id="LC30" class="blob-code blob-code-inner js-file-line"> sleep 1</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
|
||
|
<td id="LC31" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">$((</span>secs<span class="pl-k">--</span><span class="pl-pds">))</span></span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
|
||
|
<td id="LC32" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">done</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
|
||
|
<td id="LC33" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
|
||
|
<td id="LC34" class="blob-code blob-code-inner js-file-line">}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
|
||
|
<td id="LC35" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L36" class="blob-num js-line-number" data-line-number="36"></td>
|
||
|
<td id="LC36" class="blob-code blob-code-inner js-file-line"><span class="pl-en">main</span>(){</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L37" class="blob-num js-line-number" data-line-number="37"></td>
|
||
|
<td id="LC37" class="blob-code blob-code-inner js-file-line"> clear</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L38" class="blob-num js-line-number" data-line-number="38"></td>
|
||
|
<td id="LC38" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">while</span> <span class="pl-c1">true</span><span class="pl-k">;</span><span class="pl-k">do</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L39" class="blob-num js-line-number" data-line-number="39"></td>
|
||
|
<td id="LC39" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L40" class="blob-num js-line-number" data-line-number="40"></td>
|
||
|
<td id="LC40" class="blob-code blob-code-inner js-file-line"> chillCount</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L41" class="blob-num js-line-number" data-line-number="41"></td>
|
||
|
<td id="LC41" class="blob-code blob-code-inner js-file-line"> bongCount</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L42" class="blob-num js-line-number" data-line-number="42"></td>
|
||
|
<td id="LC42" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">done</span></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L43" class="blob-num js-line-number" data-line-number="43"></td>
|
||
|
<td id="LC43" class="blob-code blob-code-inner js-file-line">}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L44" class="blob-num js-line-number" data-line-number="44"></td>
|
||
|
<td id="LC44" class="blob-code blob-code-inner js-file-line">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td id="L45" class="blob-num js-line-number" data-line-number="45"></td>
|
||
|
<td id="LC45" class="blob-code blob-code-inner js-file-line">main</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<a href="#jump-to-line" rel="facebox[.linejump]" data-hotkey="l" style="display:none">Jump to Line</a>
|
||
|
<div id="jump-to-line" style="display:none">
|
||
|
<form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /></div>
|
||
|
<input class="linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line…" autofocus>
|
||
|
<button type="submit" class="btn">Go</button>
|
||
|
</form></div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div><!-- /.repo-container -->
|
||
|
<div class="modal-backdrop"></div>
|
||
|
</div><!-- /.container -->
|
||
|
</div><!-- /.site -->
|
||
|
|
||
|
|
||
|
</div><!-- /.wrapper -->
|
||
|
|
||
|
<div class="container">
|
||
|
<div class="site-footer" role="contentinfo">
|
||
|
<ul class="site-footer-links right">
|
||
|
<li><a href="https://status.github.com/" data-ga-click="Footer, go to status, text:status">Status</a></li>
|
||
|
<li><a href="https://developer.github.com" data-ga-click="Footer, go to api, text:api">API</a></li>
|
||
|
<li><a href="https://training.github.com" data-ga-click="Footer, go to training, text:training">Training</a></li>
|
||
|
<li><a href="https://shop.github.com" data-ga-click="Footer, go to shop, text:shop">Shop</a></li>
|
||
|
<li><a href="https://github.com/blog" data-ga-click="Footer, go to blog, text:blog">Blog</a></li>
|
||
|
<li><a href="https://github.com/about" data-ga-click="Footer, go to about, text:about">About</a></li>
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
<a href="https://github.com" aria-label="Homepage">
|
||
|
<span class="mega-octicon octicon-mark-github" title="GitHub"></span>
|
||
|
</a>
|
||
|
<ul class="site-footer-links">
|
||
|
<li>© 2015 <span title="0.03598s from github-fe128-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
|
||
|
<li><a href="https://github.com/site/terms" data-ga-click="Footer, go to terms, text:terms">Terms</a></li>
|
||
|
<li><a href="https://github.com/site/privacy" data-ga-click="Footer, go to privacy, text:privacy">Privacy</a></li>
|
||
|
<li><a href="https://github.com/security" data-ga-click="Footer, go to security, text:security">Security</a></li>
|
||
|
<li><a href="https://github.com/contact" data-ga-click="Footer, go to contact, text:contact">Contact</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="fullscreen-overlay js-fullscreen-overlay" id="fullscreen_overlay">
|
||
|
<div class="fullscreen-container js-suggester-container">
|
||
|
<div class="textarea-wrap">
|
||
|
<textarea name="fullscreen-contents" id="fullscreen-contents" class="fullscreen-contents js-fullscreen-contents" placeholder=""></textarea>
|
||
|
<div class="suggester-container">
|
||
|
<div class="suggester fullscreen-suggester js-suggester js-navigation-container"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="fullscreen-sidebar">
|
||
|
<a href="#" class="exit-fullscreen js-exit-fullscreen tooltipped tooltipped-w" aria-label="Exit Zen Mode">
|
||
|
<span class="mega-octicon octicon-screen-normal"></span>
|
||
|
</a>
|
||
|
<a href="#" class="theme-switcher js-theme-switcher tooltipped tooltipped-w"
|
||
|
aria-label="Switch themes">
|
||
|
<span class="octicon octicon-color-mode"></span>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div id="ajax-error-message" class="flash flash-error">
|
||
|
<span class="octicon octicon-alert"></span>
|
||
|
<a href="#" class="octicon octicon-x flash-close js-ajax-error-dismiss" aria-label="Dismiss error"></a>
|
||
|
Something went wrong with that request. Please try again.
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<script crossorigin="anonymous" src="https://assets-cdn.github.com/assets/frameworks-5c08de317e4054ec200d36d3b1361ddd3cb30c05c9070a9d72862ee28ab1d7f9.js"></script>
|
||
|
<script async="async" crossorigin="anonymous" src="https://assets-cdn.github.com/assets/github/index-b79817a43c4618022b9ecd18dadd96010ccecbb12b56fcc232664db1f897e3a8.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|