I hereby claim:
- I am joshjordan on github.
- I am joshjordan (https://keybase.io/joshjordan) on keybase.
- I have a public key whose fingerprint is 017B 4FEC 0D82 7646 A7BA F2B3 AD81 8BB5 E132 FB8A
To claim this, I am signing this object:
golang: go run go-producer.go | |
redis: redis-server | |
ruby: sidekiq -r './ruby-consumer.rb' |
$Rewards = "Donuts","Cookies","Steak","Bacon","Cupcakes","Truffles","Chocolates","Snacks","Breakfast","Lunch","Back rubs","Burgers","Pancakes","High fives","Coconuts","Cheesecake","Stamps" | |
$sendDateTime = (Get-Date) | |
$sendDateTime.AddSeconds(-1) | |
while($true) | |
{ | |
Write-Output ($sendDateTime -lt (Get-Date)) | |
if($sendDateTime -lt (Get-Date)) | |
{ | |
$ChosenReward = $Rewards | Get-Random |
#!/bin/bash | |
# Set PROXY_HOST to the SSH proxy hostname (optionally, include a username) | |
# Override PROXY_PORT if necessary | |
sudo -s <<EOF | |
trap clear_proxy INT | |
function clear_proxy() { | |
echo "Disconnecting proxy..." |
require 'csv' | |
class Array | |
def to_csv(csv_filename, homogeneous_headers = false) | |
return unless self.any? | |
headers = if homogeneous_headers | |
self.first.keys | |
else | |
self.inject([]) { |memo, row| memo |= row.keys; memo } | |
end |
I hereby claim:
To claim this, I am signing this object:
#!/bin/zsh | |
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" | |
setopt EXTENDED_GLOB | |
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do | |
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" | |
done | |
git clone https://gist.github.com/033fd9f674a670da0460.git ~/zprezto_custom | |
ln -s ~/zprezto_custom/prompt_joshjordan_setup ~/.zprezto/modules/prompt/functions/prompt_joshjordan_setup |
# | |
# My prezto prompt. Simplified version of (read: almost completely lifted from) steeef theme | |
# | |
function prompt_joshjordan_precmd { | |
# Check for untracked files or updated submodules since vcs_info does not. | |
if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then | |
branch_format="(${_prompt_joshjordan_colors[1]}%b%f%u%c${_prompt_joshjordan_colors[4]}●%f)" | |
else | |
branch_format="(${_prompt_joshjordan_colors[1]}%b%f%u%c)" |
require 'benchmark' | |
module A | |
end | |
class DefinedMethodStyle | |
def dont_bust_cache(*) | |
Object.new | |
nil | |
end |