This file contains hidden or 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
vim ~/.bash_profile | |
and paste the following in there: | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
This file contains hidden or 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
Hi, | |
I’m John, founder of $company. I saw you signed up for a trial… Can you tell me what would make this a successful trial for you? | |
Thanks, | |
John |
This file contains hidden or 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
Author | URL | Count | Keywords | |
---|---|---|---|---|
Prudent Finances | http://seekingalpha.com//author/prudent-finances | 1 | ex | |
Dividend Dreams | http://seekingalpha.com//author/dividend-dreams | 1 | ex | |
Ranjit Goswami | http://seekingalpha.com//author/ranjit-goswami | 1 | ex | |
WisdomTree | http://seekingalpha.com//author/wisdomtree | 3 | hedge fund,former,ex | |
George Fisher | http://seekingalpha.com//author/george-fisher | 1 | ex | |
Edward Harrison | http://seekingalpha.com//author/edward-harrison | 1 | ex | |
Chris Lau | http://seekingalpha.com//author/chris-lau | 1 | ex | |
Matthew Bradbard | http://seekingalpha.com//author/matthew-bradbard | 1 | ex | |
Andy Singh | http://seekingalpha.com//author/andy-singh | 1 | ex |
This file contains hidden or 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
var client = 1444099876.816*1000; | |
var server = 1444099883.941*1000; | |
var seconds = (new Date(server).getTime() - new Date(client).getTime())/1000; | |
console.log("SECONDS: "+ seconds) |
This file contains hidden or 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
var crypto = require('crypto'); | |
var generate_key = function() { | |
var sha = crypto.createHash('sha256'); | |
sha.update(Math.random().toString()); | |
return sha.digest('hex'); | |
}; |
This file contains hidden or 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 | |
mkdir Screenshots | |
defaults write com.apple.screencapture location /Users/johnmurch/Screenshots | |
killall SystemUIServer |
This file contains hidden or 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
var now = new Date(); | |
var delay = 60 * 60 * 1000; // 1 hour in msec | |
console.log('now',new Date().toISOString());console.log('delay',delay,'min',(60 -now.getMinutes()),'sec',(60-now.getSeconds()),'mill',(1000-now.getMilliseconds())); | |
var start = delay - (now.getMinutes() * 60 + now.getSeconds()) * 1000; //msec until next hour | |
console.log('start',start); | |
var kickoff = new Date(); | |
kickoff.setMilliseconds(start); | |
console.log('kickoff', new Date(kickoff).toISOString()); |
This file contains hidden or 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 | |
# uptime.sh | |
# get uptime from /proc/uptime | |
uptime=$(</proc/uptime) | |
uptime=${uptime%%.*} | |
seconds=$(( uptime%60 )) | |
minutes=$(( uptime/60%60 )) | |
hours=$(( uptime/60/60%24 )) |
This file contains hidden or 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 | |
# An overly obvious reference for most commonly requested bash timestamps | |
# Now all you Mac fags can stop pestering me. | |
cat << EOD | |
Format/result | Command | Output | |
------------------------------+----------------------------+------------------------------ | |
YY-MM-DD_hh:mm:ss | date +%F_%T | $(date +%F_%T) | |
YYMMDD_hhmmss | date +%Y%m%d_%H%M%S | $(date +%Y%m%d_%H%M%S) |