Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rockbot on github.
  • I am rockbot (https://keybase.io/rockbot) on keybase.
  • I have a public key ASCVWD_5cur80cTPz40cey0hUkHODzEzyPOEd1mJJXNdPAo

To claim this, I am signing this object:

@rockbot
rockbot / show notes.md
Last active January 25, 2017 18:16
Show Notes for live coding in WDU talk at jsconf.asia (26 Nov 2016) and Vienna MegaMeetup (25 Jan 2017)
  • Let's start by creating a project
    • npm help
    • mkdir random-wombat-facts; and cd random-wombat-facts
    • npm init
      • explain each line
    • vim index.js
      • generate basic list of facts (fact1, fact2, etc)
      • console.log one of them
    • search for random array on npmjs.com
  • pick random-item
@rockbot
rockbot / .inputrc
Created December 4, 2013 22:56
dotfiles
# By default up/down are bound to previous-history
# and next-history respectively. The following does the
# same but gives the extra functionality where if you
# type any text (or more accurately, if there is any text
# between the start of the line and the cursor),
# the subset of the history starting with that text
# is searched (like 4dos for e.g.).
# Note to get rid of a line just Ctrl-C
"\e[B": history-search-forward
"\e[A": history-search-backward
rockbot@rocksauce:Hacking$ hoodie new test
.d$b. .d$b. .d$$$$$$b. .d$$$$$$b. .d$$$$$$b. .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$$´`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P' 'Q$P' 'Q$$$$$$P' 'Q$$$$$$P' 'Q$$$$$$$P 'Q$P''Q$$$$$$$$P'
Version: 0.2.7 (node v0.10.13, npm 1.3.11, platform: darwin)
rockbot@rocksauce:appium$ node server.js
info: Welcome to Appium v0.9.1 (REV 6868e3e70f1d56319f48fd771444d70f1d15fa97)
info: Appium REST http interface listener started on 0.0.0.0:4723
info - socket.io started
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"browserName":"Android","device":"Android","platform":"Mac","version":"6.1","app":"/Users/rockbot/dev/appium/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk","app-package":"com.example.android.apis","app-activity":".ApiDemos","javascriptEnabled":true}}
info: Using local app from desiredCaps: /Users/rockbot/dev/appium/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk
info: Creating new appium session bfa951c7-e68d-4397-9a8e-16aebff71402
info: Starting android appium
debug: Using fast reset? true
WINDOW MANAGER LAST ANR (dumpsys window lastanr)
<no ANR has occurred since boot>
WINDOW MANAGER POLICY STATE (dumpsys window policy)
mSafeMode=false mSystemReady=true mSystemBooted=true
mLidState=-1 mLidOpenRotation=-1 mHdmiPlugged=false
mLastSystemUiFlags=0xe00008 mResettingSystemUiFlags=0x0 mForceClearedSystemUiFlags=0x0
mUiMode=1 mDockMode=0 mCarDockRotation=-1 mDeskDockRotation=-1
mUserRotationMode=0 mUserRotation=0 mAllowAllRotations=-1
@rockbot
rockbot / gist:6284980
Last active December 21, 2015 09:28
attempt to use new device port flag
rockbot@rocksauce:appium$ node server.js --udid 015d3fbace3c0813 -p 4730 -dp 4726
info: Welcome to Appium v0.8.5 (REV ec3895f283e7b1702fd6a2f4d1310a4d851eafdd)
info: Appium REST http interface listener started on 0.0.0.0:4730
info - socket.io started
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"browserName":"Android","device":"Android","platform":"Mac","version":"6.0","app":"/Users/rockbot/dev/appium/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk","app-package":"com.example.android.apis","app-activity":".ApiDemos","javascriptEnabled":true}}
info: Using local app from desiredCaps: /Users/rockbot/dev/appium/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk
info: Creating new appium session 6be986a3-703d-49dc-b703-9f29a9a45abc
info: Starting android appium
debug: Using fast reset? true
doSomething = function(cb) {
exec(cmd, options, function(err, stdout, stderr) {
if (err) {
console.error(stdout);
console.error(stderr);
return cb(err);
}
// do some other stuff
return cb;
@rockbot
rockbot / gist:6017983
Created July 17, 2013 05:51
Installing opencv on Mac OSX 10.8.*

brew tap homebrew/science brew install opencv

brew install mplayer

@rockbot
rockbot / gist:4964712
Last active December 13, 2015 19:48 — forked from lucasfais/gist:1207002
Useful Shortcuts for Sublime Text

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt