Skip to content

Instantly share code, notes, and snippets.

View victorhooi's full-sized avatar

Victor Hooi victorhooi

View GitHub Profile
@victorhooi
victorhooi / gist:8700008
Created January 30, 2014 00:11
Appium Errors - Android Emulator with Browser
info: Welcome to Appium v0.14.2
info: Appium REST http interface listener started on 0.0.0.0:4723
info - socket.io started
info: Spawning instruments force-quitting watcher process
info: [FQInstruments] Force quit unresponsive instruments v0.0.1
info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.14.2","revision":"113e796b850b28e7066fe472faf8554b73b6299d"}}}
@victorhooi
victorhooi / gist:8703017
Created January 30, 2014 05:19
Appium Console Log - Permission Error for iOS Simulator
info: Welcome to Appium v0.14.2
info: Appium REST http interface listener started on 0.0.0.0:4723
info - socket.io started
info: Spawning instruments force-quitting watcher process
info: [FQInstruments] Force quit unresponsive instruments v0.0.1
info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.14.2","revision":"113e796b850b28e7066fe472faf8554b73b6299d"}}}
@victorhooi
victorhooi / gist:8968631
Created February 13, 2014 02:24
Lime QML Error - panic: pre-allocated buffer size was wrong
$ go run main.go
panic: pre-allocated buffer size was wrong
goroutine 12 [running]:
runtime.panic(0x43cf560, 0xc2100d70f0)
/usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/panic.c:266 +0xb6
github.com/niemeyer/qml.typeInfo(0x4475660, 0xc21003e080, 0x4475660)
/Users/victorhooi/code/go/src/github.com/niemeyer/qml/datatype.go:304 +0x7fd
github.com/niemeyer/qml.wrapGoValue(0xc2100d6000, 0x4475660, 0xc21003e080, 0x1, 0x0)
/Users/victorhooi/code/go/src/github.com/niemeyer/qml/bridge.go:233 +0x40d
@victorhooi
victorhooi / gist:9339617
Created March 4, 2014 03:09
Error backing up (exporting) Discourse forum
[2014-03-04 14:06:07] 'victorhooi' has started the backup!
[2014-03-04 14:06:07] Marking backup as running...
[2014-03-04 14:06:07] Enabling readonly mode...
[2014-03-04 14:06:07] Pausing sidekiq...
[2014-03-04 14:06:07] Waiting for sidekiq to finish running jobs...
[2014-03-04 14:06:07] Waiting for 18 jobs...
[2014-03-04 14:06:09] Waiting for 17 jobs...
[2014-03-04 14:06:11] Waiting for 17 jobs...
[2014-03-04 14:06:13] Waiting for 17 jobs...
[2014-03-04 14:06:15] Waiting for 17 jobs...
This file has been truncated, but you can view the full file.
ok: run: redis: (pid 20) 0s
ok: run: redis: (pid 20) 0s
ok: run: postgres: (pid 24) 0s
ok: run: postgres: (pid 24) 0s
ok: run: copy_env: (pid 25) 0s
ok: run: copy_env: (pid 25) 0s
rsyslogd: WARNING: rsyslogd is running in compatibility mode. Automatically generated config directives may interfer with your rsyslog.conf settings. We suggest upgrading your config and adding -c5 as the first rsyslogd option.
rsyslogd: Could not open output pipe '/dev/xconsole' [try http://www.rsyslog.com/e/2039 ]
rsyslogd: Warning: backward compatibility layer added to following directive to rsyslog.conf: ModLoad immark
rsyslogd: Warning: backward compatibility layer added to following directive to rsyslog.conf: MarkMessagePeriod 1200
commit d2077d89d02c4a9eefdc85cb5dfa1557fba88086
Author: Thomas Rueckstiess <thomas@rueckstiess.net>
Date: Mon Mar 24 16:11:05 2014 +1100
patch to run the script without creating data and on an existing mongod instance (single ok, on port 27017).
diff --git a/index.py b/index.py
index 2ac5a87..a4b4b82 100644
--- a/index.py
+++ b/index.py
@victorhooi
victorhooi / gist:6ca00229c3befffc596e
Last active August 29, 2015 14:02
default.yaml for uptime
url: 'http://localhost:80'
mongodb:
server: localhost
database: uptime
user: root
password:
connectionString: mongodb://localhost:27017 # alternative to setting server, database, user and password separately
monitor:
@victorhooi
victorhooi / gist:f65038f7fbbf5dfccc3f
Created May 31, 2014 13:33
production.yaml for uptime
server:
port: 80
@victorhooi
victorhooi / 0_reuse_code.js
Created June 10, 2014 07:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@victorhooi
victorhooi / gist:5b3cc9065787cf370ae1
Created June 18, 2014 04:59
SNMP Output from TP-Link TD-8840T
snmpwalk -v1 -cpublic 192.168.1.1
iso.3.6.1.2.1.1.1.0 = STRING: "0.8.0 2.2 v0007.0 Build 140418 Rel.42874n"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.16972
iso.3.6.1.2.1.1.3.0 = Timeticks: (213796580) 24 days, 17:52:45.80
iso.3.6.1.2.1.1.4.0 = ""
iso.3.6.1.2.1.1.5.0 = STRING: "TD-8840T"
iso.3.6.1.2.1.1.6.0 = ""
iso.3.6.1.2.1.1.7.0 = INTEGER: 79
iso.3.6.1.2.1.2.1.0 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1