This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ES7 Observables + WHATWG Streams | |
| // | |
| // https://github.com/jhusain/asyncgenerator | |
| // https://github.com/whatwg/streams | |
| // | |
| // Continuation from file: | |
| // https://github.com/jhusain/asyncgenerator/blob/master/src/observable.js | |
| Observable.fromStream = function(readable) { | |
| return new Observable(function(generator) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lives in ~/.ngrok2/ngrok.yml | |
| authtoken: (authtokenhere) | |
| tunnels: | |
| trove-assistant-zcollins: | |
| addr: api-assistant.lift.dev:80 | |
| proto: http | |
| host_header: rewrite | |
| bind_tls: true | |
| subdomain: trove-assistant-zcollins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep -i "whatever" ./* | |
| searches for thing in current directory | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Update clock synch | |
| sudo ntpdate pool.ntp.org | |
| Install ntp daemon | |
| sudo apt-get install ntp | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create websites.txt, place in same directory as script. Fill with list of splitlines | |
| # create empty file results.txt | |
| # run python ping.py | |
| import urllib2 | |
| import subprocess | |
| def readFile(): | |
| array = [] | |
| with open('./websites.txt') as file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install dependencies | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential | |
| sudo apt-get install -y cmake | |
| sudo apt-get install -y libgtk2.0-dev | |
| sudo apt-get install -y pkg-config | |
| sudo apt-get install -y python-numpy python-dev | |
| sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev | |
| sudo apt-get install -y libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fswatch [opts] -0 <file/dir here> ... | xargs -0 -n1 -I{} echo hi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| phrases = ['clean message', 'what is new']; | |
| function test_phrase(phrase) { | |
| var input = document.getElementById('edw-test-utteranceTextField'); | |
| input.value = phrase; | |
| } | |
| test_phrase(phrases[1]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * Sets up specific DI container configuration | |
| * | |
| * @param AuthSession $auth_session | |
| */ | |
| protected function setup_container(AuthSession $auth_session) | |
| { | |
| $this->container->set('provider', Inflector::camelize($auth_session->get_provider()->get_name())); | |
| $this->container->set('provider.attributes', Inflector::camelize($auth_session->get_implementation()->get_name())); | |
| foreach ($this->config->get_container() as $class => $definition) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| A warning occurred (42 apples) | |
| An error occurred |