Skip to content

Instantly share code, notes, and snippets.

View sjehutch's full-sized avatar

scott hutchinson sjehutch

View GitHub Profile
@sjehutch
sjehutch / gist:d76e95409b0a5de4da89
Created February 10, 2015 02:42
Sequel::DatabaseError
…2.0/gems/sequel-4.19.0/lib/sequel/adapters/
postgres.rb: 180:in `async_exec'
…2.0/gems/sequel-4.19.0/lib/sequel/adapters/
postgres.rb: 180:in `block in execute_query'
….2.0/gems/sequel-4.19.0/lib/sequel/database/
logging.rb: 33:in `log_yield'
….275/lib/sequel/extensions/
newrelic_instrumentation.rb: 43:in `log_yield'
…2.0/gems/sequel-4.19.0/lib/sequel/adapters/
postgres.rb: 180:in `execute_query'
@sjehutch
sjehutch / NumVersion Struct
Created February 12, 2015 20:30
Best practice app versioning NumVersion Struct
Versioning that is based on the NumVersion Struct
Has the following revision indicators:
[major revision].[minor revision].[bug revision]-[stage][stage revision]
Major revision increments indicate significant changes and/or jumps in functionality and/or programming
The major revision number begins at 1 and increments from there.
@sjehutch
sjehutch / error
Created February 17, 2015 21:39
error when sbt publish cd volley
[info] Loading project definition from /Users/sjehutch/code/bitmado/super-bitmado-app/volley/project
[info] Set current project to volley (in build file:/Users/sjehutch/code/bitmado/super-bitmado-app/volley/)
[info] :: delivering :: com.android#volley_2.10;4.3-SNAPSHOT :: 4.3-SNAPSHOT :: integration :: Tue Feb 17 15:37:05 CST 2015
[info]  delivering ivy file to /Users/sjehutch/code/bitmado/super-bitmado-app/volley/target/scala-2.10/ivy-4.3-SNAPSHOT.xml
[info] Wrote /Users/sjehutch/code/bitmado/super-bitmado-app/volley/target/scala-2.10/volley_2.10-4.3-SNAPSHOT.pom
java.lang.RuntimeException: Repository for publishing is not specified.
at scala.sys.package$.error(package.scala:27)
at sbt.Classpaths$$anonfun$getPublishTo$1.apply(Defaults.scala:989)
at sbt.Classpaths$$anonfun$getPublishTo$1.apply(Defaults.scala:989)
at scala.Option.getOrElse(Option.scala:108)
@sjehutch
sjehutch / gist:39bee356e5ec329fbbff
Created March 23, 2015 16:18
android error on intial view load after login success
--------- beginning of system
W/ContextImpl( 886): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1433 com.android.server.wifi.WifiStateMachine.sendDongleScanResultsAvailableBroadcast:13988 com.android.server.wifi.WifiStateMachine.handleMediaLinkEvent:14153 com.android.server.wifi.WifiStateMachine.access$5400:265 com.android.server.wifi.WifiStateMachine$SupplicantStartedState.processMessage:7943
W/libprocessgroup( 886): failed to open /acct/uid_1000/pid_15067/cgroup.procs: No such file or directory
W/BatSI ( 886): Couldn't get kernel wake lock stats
W/ContextImpl(16942): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1798 android.content.ContextWrapper.startService:515 android.content.ContextWrapper.startService:515 com.htc.htcpowermanager.extremepowersaver.ExtremePowerSaverReceiver.onReceive:67 android.app.ActivityThread.handleReceiver:2712
W/ContextImpl( 6318): Calling a method in the system
@sjehutch
sjehutch / put-files-sh
Created May 10, 2015 22:51
push google docs jwa
#!/bin/sh
count="$( find /home/mobiquity/incoming -mindepth 1 -maxdepth 1 | wc -l )"
if [ $count -eq 0 ] ; then
echo "No new file"
exit 1
else
cd /home/mobiquity
/usr/local/bin/gsutil cp -c -L logs/`date '+%Y_%m_%d__%H_%M'`.csv -r incoming gs://jwa-10003-file-storage
cd logs
awk -vc="URL" -vd="https://storage.googleapis.com/jwa-10003-file-storage/" 'NR==1{$0=c","$0}NR!=1{$0=d","$0}1' `date '+%Y_%m_%d__%H_%M'`.csv > `date '+%Y_%m_%d__%H_%M'`_1.csv
@sjehutch
sjehutch / 0_reuse_code.js
Last active August 29, 2015 14:22
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
#!/bin/bash
pear upgrade pear
## Install Phing #######################################
pear channel-discover pear.phing.info
pear install --alldeps phing/phing
## Install PHPUnit #####################################
yum install php-xml
updateRecord #d3c2dddb-d73d-4014-96a8-2cc24e838201
updateRecord #1eb8ad96-b4f3-461e-81a3-0a4e08844f73
insertRecord #38773
updateRecord #ca668ed5-05b3-41da-a3a4-6fa8982968f6
updateRecord #9279ccd9-3088-409e-8bc5-215363e7a29e
updateRecord #7f3ef024-eb34-46af-8b9e-544cdf09378f
updateRecord #becd2875-f4c1-45a5-8676-f6fb25b30fe9
updateRecord #61b7921e-26fe-4d32-9770-6376c61bedd3
updateRecord #fda00e5c-b7df-487a-9a24-5e4087c575e1
updateRecord #d2d25b26-b748-41c5-a94f-6e25d5d0f9eb
updateRecord #d3c2dddb-d73d-4014-96a8-2cc24e838201
updateRecord #1eb8ad96-b4f3-461e-81a3-0a4e08844f73
updateRecord #a94ec01e-f58b-4c40-836e-e8254581d9c7
updateRecord #ca668ed5-05b3-41da-a3a4-6fa8982968f6
updateRecord #9279ccd9-3088-409e-8bc5-215363e7a29e
updateRecord #7f3ef024-eb34-46af-8b9e-544cdf09378f
updateRecord #becd2875-f4c1-45a5-8676-f6fb25b30fe9
updateRecord #61b7921e-26fe-4d32-9770-6376c61bedd3
updateRecord #fda00e5c-b7df-487a-9a24-5e4087c575e1
updateRecord #d2d25b26-b748-41c5-a94f-6e25d5d0f9eb
2015-06-30T04:32:53.055079+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/apisync/job.php" host=fanseye-api.herokuapp.com request_id=84c81ce8-6c2a-406c-a037-743c33d42135 fwd="1.39.62.106" dyno=web.1 connect=0ms service=30007ms status=503 bytes=0
2015-06-30T04:33:02.176096+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=HEAD path="/apisync/job.php" host=fanseye-api.herokuapp.com request_id=f7f591b7-85d4-4d1a-97ae-4e7664034d71 fwd="71.170.152.145" dyno=web.1 connect=1ms service=30003ms status=503 bytes=0
2015-06-30T04:33:32.242087+00:00 app[web.1]: 10.169.165.60 - - [30/Jun/2015:04:32:32 +0000] "HEAD /apisync/job.php HTTP/1.1" 503 - "http://fanseye-api.herokuapp.com/apisync/job.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
2015-06-30T04:33:32.241475+00:00 app[web.1]: [Tue Jun 30 04:33:32.240454 2015] [proxy_fcgi:error] [pid 111:tid 139910790989568] (70007)The timeout specifie