I hereby claim:
- I am joelbowen on github.
- I am joelbowen (https://keybase.io/joelbowen) on keybase.
- I have a public key ASCjsyeWtoOjnvyaWIFEa2kaR7uVwVgtNC6_HnLkrq0LVgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Change your app.json to base-app.json and untrack the original file in your .gitignore
Then add something like
"generateConfig": "rimraf app.json && node generateConfig" to your package.json scripts, and yarn generateConfig && react-native-scripts start to scripts like "start" or any others that may need app.json generated.
| /* | |
| Implement a function that given two arbitrary dates ‘dateFrom’ and ‘dateTo’, will display a sorted list of the stocks based on their performance over those dates. For example: | |
| */ | |
| const stocks = { | |
| AAPL: [ | |
| { | |
| 'date': '2016-03-02', | |
| 'price': 98.32, | |
| 'dayChange': -1.5 | |
| }, |
| [ | |
| { | |
| "name": "Alabama", | |
| "abbreviation": "AL" | |
| }, | |
| { | |
| "name": "Alaska", | |
| "abbreviation": "AK" | |
| }, | |
| { |
| # Dockerfile | |
| FROM quay.io/aptible/autobuild | |
| ENV PHANTOMJS_VERSION 1.9.8 | |
| RUN \ | |
| apt-get update && \ | |
| apt-get upgrade -y && \ | |
| apt-get install -y vim git wget libfreetype6 libfontconfig bzip2 && \ | |
| mkdir -p /srv/var && \ | |
| wget -q --no-check-certificate -O /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 && \ | |
| tar -xjf /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C /tmp && \ |
| List of packages I had to download and install | |
| 64 Bit | |
| openssl: http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.1-4ubuntu5.12_amd64.deb | |
| libssl1.0.0: http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.1-4ubuntu5.12_amd64.deb | |
| libssl-dev: http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.1-4ubuntu5.12_amd64.deb | |
| 32 Bit | |
| http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.1-4ubuntu5.12_i386.deb | |
| http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.1c-3ubuntu2.7_i386.deb |
| $ ssh -i KEYNAME.pem ec2-user@IPADDRESS | |
| $ sudo service mysqld status | |
| $ sudo service httpd status | |
| "mysqld dead but subsys locked" | |
| $ sudo service mysqld restart | |
| Stopping mysqld: [ OK ] |
| $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
| $ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
| $ sudo apt-get update | |
| $ sudo apt-get install mongodb-10gen |