Skip to content

Instantly share code, notes, and snippets.

View martinhbramwell's full-sized avatar
🏠
Creating a serverless, offline-first, single page progressive web app with VueJS

Martin H. Bramwell martinhbramwell

🏠
Creating a serverless, offline-first, single page progressive web app with VueJS
View GitHub Profile
@martinhbramwell
martinhbramwell / initializeEthereumTestNode.sh
Last active September 29, 2017 11:36
Initialize Ethereum test network node
#!/bin/bash
# ############################################################################
#
# This bash script will set up a private Ethereum test network.
#
# It can do either a "root node" or a "client node". It will prompt for
# initial parameters and then do all the rest of the work for you.
#
# Executed in a "client node" it will use SSH and SCP to get

So, what has me hysterical is the seeming random behavior. Sometimes it works, sometimes it does not. When it fails, the selected item is clearly visible on screen for the entire 60 second wait. Screenshots also show it's available all the time, and there is no consistency about which scenario will succeed or fail.

The problematic step is And I have elected to edit the "Graphic Designer" item,

One call to the stepDef looks like this :

  @watch
  Scenario: Verify field validation
WARNING: the "timeoutsImplicitWait" command will be depcrecated soon. Please use a different command in order to avoid failures in your test after updating WebdriverIO.

✔ Given I have opened the books list page : "http://localhost:3000/books"

@martinhbramwell
martinhbramwell / BuildAndRun.log
Last active January 15, 2017 18:56
GitHunt-API crash
you@hab4metdev:~/projects/githunt$
you@hab4metdev:~/projects/githunt$ git clone git@github.com:your0rg/GitHunt-API.git
Cloning into 'GitHunt-API'...
remote: Counting objects: 1558, done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 1558 (delta 76), reused 0 (delta 0), pack-reused 1465
Receiving objects: 100% (1558/1558), 3.29 MiB | 4.36 MiB/s, done.
Resolving deltas: 100% (957/957), done.
Checking connectivity... done.
you@hab4metdev:~/projects/githunt$
@martinhbramwell
martinhbramwell / aptFix.sh
Last active December 18, 2016 11:25
The usual apt commands
sudo apt-get install tlsdate
sudo tlsdate -H mail.google.com
# sudo ntpdate -sb time.nist.gov
sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y clean && sudo apt-get -y autoremove;
# # Update to head of list
@martinhbramwell
martinhbramwell / your0rg_todos.toml
Last active October 6, 2016 21:42
Script to launch a Habitat package in the Director
# Launch billmeyer.mongodb with --group todos and --org your0rg
# Additionally, pass in --permanent-peer to the start command
[cfg.services.billmeyer.mongodb.todos.your0rg]
start = "--permanent-peer --strategy at-once"
# Launch the todos into the same group and org. No config required
[cfg.services.your0rg.todos.todos.your0rg]
@martinhbramwell
martinhbramwell / traceback.txt
Created June 19, 2014 09:25
QWebException: foreach enumerator 'languages' is not defined while rendering template 'website.layout'
2014-06-19 09:05:37,844 1082 ERROR site_erp8_db werkzeug: Error on request:
Traceback (most recent call last):
File "/srv/site_erp8/openerp/server/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/srv/site_erp8/openerp/server/venv/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/srv/site_erp8/openerp/server/openerp/service/server.py", line 273, in app
return self.app(e, s)
File "/srv/site_erp8/openerp/server/openerp/service/wsgi_server.py", line 215, in application
return application_unproxied(environ, start_response)
chimp .e2e_tests/chimp-config.js --browser=phantomjs --ddp=http://localhost:3000 --debug --path=.e2e_tests
[chimp] loaded /home/ubuntu/meteor-mantra-kickstarter/.e2e_tests/chimp-config.js
[chimp] Chimp options are { watch: false,
watchTags: '@focus,@dev,@watch',
watchWithPolling: false,
criticalSteps: null,
criticalTag: '@critical',
server: false,
serverPort: 8060,
serverHost: 'localhost',
@martinhbramwell
martinhbramwell / mix-ide.log
Last active May 2, 2016 17:50
Messy startup log file of Ethereum Mix IDE. Mix 1.0.3. Solidity 0.3.2. Qt 5.5.1
you@xubxenmix:~$ ls -l /etc/apt/sources.list.d
total 12
-rw-r--r-- 1 root root 144 May 2 13:27 ethereum-ubuntu-ethereum-qt-xenial.list
-rw-r--r-- 1 root root 138 May 2 13:27 ethereum-ubuntu-ethereum-xenial.list
you@xubxenmix:~$ cat /etc/apt/sources.list.d/ethereum-ubuntu-ethereum-qt-xenial.list
deb http://ppa.launchpad.net/ethereum/ethereum-qt/ubuntu xenial main
you@xubxenmix:~$ cat /etc/apt/sources.list.d/ethereum-ubuntu-ethereum-xenial.list
deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu xenial main
@martinhbramwell
martinhbramwell / collectInitializationPackage.sh
Last active April 24, 2016 17:57
Bundle the initialization files of an Ethereum root node
#!/bin/bash
#
source .userVars.sh
declare WORK_DIR=${HOME}/${PROJECT_DIR};
declare GETH_PATH=${WORK_DIR}/geth;
declare IPC_ENDPOINT=${GETH_PATH}/geth.ipc;
declare INITIAL_FILES_ARCHIVE="/tmp/initialFiles.tar.gz";