- open shorcuts.app
- New shortcut
- Set type to
run shell script(search from the box at the right) - (Note: need to manually enable shell actions through preferences... click the button, click advanced, and tick the first checkbox then closee that little pop up then you should be good)
- Copy/paste the script
- Make sure shell is set to
bash, and check run as administrator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| // How to connect 5 publishers with 5 subscribers | |
| // over TCP using ZeroMQ's XPUB/XSUB proxy. | |
| // sub (connect) | |
| // <-8701-> | |
| // (bind) xpub <---> xsub (bind) | |
| // <-8700-> | |
| // (connect) pub | |
| var zmq = require('zmq'); |
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
| // MultiExporter.jsx | |
| // Version 0.1 | |
| // Version 0.2 Adds PNG and EPS exports | |
| // Version 0.3 Adds support for exporting at different resolutions | |
| // Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
| // Version 0.5 Fixed cropping issues | |
| // Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
| // | |
| // Copyright 2013 Tom Byrne | |
| // |
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
| var Twit = require("twit"); | |
| var config = require('./oauthconfig'); | |
| console.log("config:"); | |
| console.log(config); | |
| var T = new Twit({ | |
| consumer_key: config.consumer_key, | |
| consumer_secret: config.consumer_secret, | |
| access_token: config.access_token, |
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
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
| #Quick cp from http://sekati.com/etc/install-nodejs-on-debian-squeeze | |
| # | |
| #Needed to install TileMill from MapBox | |
| # | |
| #Installs node.js which has npm bundled | |
| # | |
| #Build Dependencies | |
| sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev |
NewerOlder