Skip to content

Instantly share code, notes, and snippets.

View markryall's full-sized avatar

Mark Ryall markryall

View GitHub Profile
DONE_PATTERN="${1:-"webpack: Compiled successfully."}"
PROGRESS_PATTERN="${3:-"webpack: Compiling..."}"
ERROR_PATTERN="${3:-"ERROR"}"
HAS_ERROR=0
main() {
tee >(update_status)
@markryall
markryall / tips.md
Last active July 31, 2017 20:11
remote work
  • get a really good chair
  • get a standing desk
  • get a standing desk mat
  • do a stand up in the morning by yourself (what am i going to focus on today)
  • do a debrief at the end of the day (what did i do)
  • stop working at the end of the day and relax
  • stop working and have breaks for meals
  • write everything down
  • turn off or uninstall email/slack from your phone
  • take leave
@markryall
markryall / lmk
Created July 4, 2017 07:06
make run | bash ~/Downloads/lmk
DONE_PATTERN="${1:-"bundle is now VALID"}"
#
PROGRESS_PATTERN="${3:-"bundle is now INVALID"}"
#
ERROR_PATTERN="${3:-"ERROR"}"
main() {
tee >(update_status)
}
@markryall
markryall / time_report
Created July 21, 2012 16:20
time_report
#!/usr/bin/env ruby
require 'erb'
FromTo = Struct.new :from, :to
template = ERB.new <<EOF, nil, '%>'
<html>
<head></head>
<body>
diff --git a/Gemfile b/Gemfile
index f322577..9bb0f33 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,4 +4,4 @@ gemspec
platforms(:ruby) do
gem 'therubyracer', '>= 0.8.0.pre2'
-end
+end
mephistopheles:Jukebox markryall$ songbirdsh
songbirdsh > search ned atomic god
22681: ned's atomic dustbin god fodder 1 kill your television
22682: ned's atomic dustbin god fodder 2 less than useful
22683: ned's atomic dustbin god fodder 3 selfish
22684: ned's atomic dustbin god fodder 4 grey cell green
22685: ned's atomic dustbin god fodder 5 cut up
22686: ned's atomic dustbin god fodder 6 throwing things
22687: ned's atomic dustbin god fodder 7 capital letters
@markryall
markryall / the story so far
Created November 27, 2010 04:35
songbird.rb
require 'rubygems'
require 'sequel'
require 'cgi'
require 'splat'
home = File.expand_path '~'
profiles = "#{home}/Library/Application Support/Songbird2/Profiles"
profile = "e6rg7czm.default"
db_path = "#{profiles}/#{profile}/db/main@library.songbirdnest.com.db"
@markryall
markryall / brew -> ghc -> cabal -> atomo
Created November 14, 2010 01:31
my attempt to install atomo on snow leopard with brew, ghc, cabal
> brew install ghc
Formula already installed: /usr/local/Cellar/ghc/6.12.3
> wget http://hackage.haskell.org/packages/archive/cabal-install/0.8.2/cabal-install-0.8.2.tar.gz
> tar zxvf cabal-install-0.8.2.tar.gz
> cd cabal-install-0.8.2
> sh bootstrap.sh
> export PATH=~/.cabal/bin:$PATH
> cabal install atomo
module Things
class Thing
instance_methods.each { |m| undef_method m unless m =~ /^__/ or ['instance_eval'].include?(m) }
include Things
def initialize
@hash = {}
end
def __hash
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\0bash]
@="Prompt - bash"
[HKEY_CLASSES_ROOT\Directory\shell\0bash\command]
@="c:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\""
[HKEY_CLASSES_ROOT\Directory\shell\0cmd]
@="Prompt - cmd"