#uno
npm install parse-server mongodb-runner -g
mongodb-runner start
parse-server --appId asdkjoi4 --masterKey i3ufbiur --databaseURI mongodb://localhost/test
#dos
curl -X POST \
-H "X-Parse-Application-Id: asdkjoi4" \
| #!/bin/bash | |
| curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && | |
| sudo apt-get install -y nodejs && | |
| # Install yarn | |
| sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg && | |
| echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && | |
| sudo apt-get update && sudo apt-get install yarn && |
#uno
npm install parse-server mongodb-runner -g
mongodb-runner start
parse-server --appId asdkjoi4 --masterKey i3ufbiur --databaseURI mongodb://localhost/test
#dos
curl -X POST \
-H "X-Parse-Application-Id: asdkjoi4" \
| 2016-10-31T04:26:05.510377+00:00 app[web.1]: | |
| 2016-10-31T04:26:05.510378+00:00 app[web.1]: Error: connect ECONNREFUSED 127.0.0.1:5432 | |
| 2016-10-31T04:26:05.510378+00:00 app[web.1]: at Object.exports._errnoException (util.js:893:11) | |
| 2016-10-31T04:26:05.510379+00:00 app[web.1]: at exports._exceptionWithHostPort (util.js:916:20) | |
| 2016-10-31T04:26:05.510386+00:00 app[web.1]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1075:14) | |
| 2016-10-31T04:26:05.622413+00:00 heroku[web.1]: Process exited with status 1 | |
| 2016-10-31T04:26:05.645578+00:00 heroku[web.1]: State changed from starting to crashed | |
| 2016-10-31T04:26:06.775687+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gretel-api.herokuapp.com request_id=e8b79a7f-ded4-4e54-872b-5c7de3da5f7e fwd="70.210.129.121" dyno= connect= service= status=503 bytes= | |
| 2016-10-31T04:26:07.363645+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=gretel-api.herokuapp.com request_id=7a1b29a8 |
| import json | |
| import requests | |
| import csv | |
| # Authentication for user filing issue (must have read/write access to | |
| # repository to add issue to) | |
| USERNAME = 'username' | |
| PASSWORD = 'password' | |
| # The repository to add this issue to |
| import json | |
| import requests | |
| import csv | |
| # Authentication for user filing issue (must have read/write access to | |
| # repository to add issue to) | |
| USERNAME = 'username' | |
| PASSWORD = 'password' | |
| # The repository to add this issue to |
| var tinify = require("tinify"); | |
| var walk = require('walk'); | |
| tinify.key = "your key"; | |
| var files = []; | |
| var walker = walk.walk('./images', { followLinks: false }); | |
| walker.on('file', function(root, stat, next) { | |
| files.push(root + '/' + stat.name); |
| from pytz import timezone | |
| from datetime import datetime | |
| # pub_date is a models.DateTimeField | |
| mytime = Question.objects.get(pk=1).pub_date.astimezone(pytz.timezone('US/Pacific')) | |
| fmt = '%Y-%m-%d %H:%M:%S %Z%z' | |
| mytime.strftime(fmt) |
| ffmpeg -i FamilycourseBk1intro.wmv -c:v libx264 -crf 23 -profile:v high -r 30 -c:a libfaac -q:a 100 -ar 48000 FamilycourseBk1intro.mp4 |
| @media all and (max-width: 900px) { | |
| section#content, | |
| section#content section#login { | |
| max-width: 100%; | |
| } | |
| header{ | |
| max-width: 100%; | |
| } | |
| header div.user-tools{ | |
| position:initial; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/css/normalize.min.css" rel="stylesheet" type="text/css" /> | |
| <link href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/css/foundation.min.css" rel="stylesheet" type="text/css" /> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/js/vendor/jquery.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/js/foundation.min.js"></script> | |
| <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> |