Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/local/bin/zsh | |
| echo "Updating Homebrew" | |
| brew update | |
| brew upgrade | |
| brew cask upgrade | |
| brew cleanup -s | |
| brew doctor | |
| brew missing | |
| echo "Updating App Store Items" | |
| mas outdated |
| // In a Firestore standard example, we quickly create a 'xmas tree' of nested stuff | |
| // We use Promises directly: get().then(callback) and use snapshot.forEach() to iterate | |
| let campaignsRef = db.collection('campaigns'); | |
| let activeCampaigns = campaignsRef.where('active', '==', true).select().get() | |
| .then(snapshot => { | |
| snapshot.forEach(campaign => { | |
| console.log(campaign.id); | |
| let allTasks = campaignsRef.doc(campaign.id).collection('tasks').get().then( | |
| snapshot => { | |
| snapshot.forEach(task => { |
| curl -X POST \ | |
| -H "Authorization: key= YOUR-API-KEY" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "registration_ids": [ | |
| "YOUR-GCM-REGISTRATION-ID" | |
| ], | |
| "data": { | |
| "message": "Hello Message" | |
| }, |
| Delete this file | |
| /Users/YOUR_USER/Library/Developer/CoreSimulator/Devices/SIM_UDID/data/Library/Preferences/APP_ID.plist |
| find-up() { | |
| local path=$(pwd) | |
| while [[ "$path" != "" && ! -e "$path/$1" ]]; do | |
| path=${path%/*} | |
| done | |
| if [ "$path" != "" ] | |
| then | |
| echo "$path" | |
| fi | |
| } |
| task("pre:compile", function(event,logger) { | |
| var wrench = require("wrench"), | |
| fs = require("fs"), | |
| path = require("path"); | |
| var code = [ | |
| fs.readFileSync("/usr/local/lib/node_modules/alloy/bin/tsc.js"), // <- path to tsc.js in your environment | |
| "module.exports = TypeScript;" | |
| ].join(""); | |
| fs.writeFileSync(process.env.TMPDIR + "tsc.js", code); |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Execute "tishadow run" in your Titanium app directory whenever a JavaScript file changes. Edit your JS files in a text editor, save, then switch to the test device or simulator. Profit.
[sudo] npm install -g supervisor