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
| # converts Parse.com json object presentation to CSV with simple filtering | |
| # dependency - jq command line tool | |
| # NOTE: Parse.com API does not allow to get more than 1000 records per request, so you need to vary skip and limit params | |
| # https://www.parse.com/docs/rest#general-quick | |
| # NOTE: Also you can download exported Parse.com backup (Parse.com\Settings\Export) and read via "cat filename | jq '.'". | |
| echo `curl -H 'X-Parse-Application-Id: <PASTE_YOUR_APP_ID_HERE>' -H 'X-Parse-REST-API-Key: <PASTE_YOUR_REST_API_KEY_HERE>' -H 'Content-Type: application/json' -L https://api.parse.com/1/classes/Email\?skip=0\&limit=1000 -s` | jq '.results[] | .email +","+.type +","+ .createdAt' |
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
| ln -s "/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl | |
| git config --global mergetool.sublime.cmd "sublime -w \$MERGED" | |
| git config --global mergetool.sublime.trustExitCode false | |
| git config --global merge.tool sublime |
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
| ## Customize the test machine | |
| machine: | |
| environment: | |
| SAUCEUSER: [USERNAME HERE] | |
| SAUCEKEY: [KEY HERE] | |
| dependencies: | |
| post: | |
| - wget https://d2nkw87yt5k0to.cloudfront.net/downloads/sc-latest-linux.tar.gz && tar -xvf sc-latest-linux.tar.gz |
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
| iVBORw0KGgoAAAANSUhEUgAAAjEAAAH8CAIAAACvk2lUAAAVvUlEQVR42u3dv28UVwLA8ftDruOq | |
| UJHOHVVShQoqUh0VriwaRIFEgUSBKJAokFJEoqBAoojSIBrLDaJBNIgmSmVXls5kjb1e7Nh3L1n8 | |
| mFsv9v6Y2Xnvzecj63S6HwTPvnnfmdmZN//4LwCk4R82AQCaBACaBIAmAYAmAaBJAKBJAGgSAGgS | |
| AJoEAJoEgCYBgCYBoEkAoEkAaBIAaBIAmgQAmgQAmgSAJgGAJgGgSQCgSQBoEgBoEgCaBACaBIAm | |
| AYAmAaBJAKBJAGgSAGgSAJoEAJoEgCYBgCYBgCYBoEkAoEkAaBIAaBIAmgQAmgSAJgGAJgGgSQCg | |
| SQBoEgBoEgCaBACaBIAmAYAmAaBJAKBJAKBJAGgSAGgSAJoEAJoEgCYBgCYBoEkAoEkAaBIAaBIA | |
| mgQAmgSAJgGAJgGgSR23v7r2Yenif/75r/Cvg2fPbRAATWrNhwtLIUjDn61z520QAE1qTQxS+Nm9 | |
| ddsGAdCk9ptkUwBoUpv2X70eBunD0kVbA0CT2rR76/awSf17920NAE1qU7zB4eDNW1sDQJPa5Msk | |
| AE3SJAA0SZMANClBh5ubmgSgSUnYvXN3GKTe9z/YGgCa1KZ4092nFy9tDQBNapMLdwCapEkAaJIm | |
| AWiSJgGgSZoEoEmaBIAmaRKAJmkSAJqkSUDd9lfXtq9cHTx7blNokiYBLRuu87J17rxNoUmaBJgf |
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
| // This script will boot app.js with the number of workers | |
| // specified in WORKER_COUNT. | |
| // | |
| // The master will respond to SIGHUP, which will trigger | |
| // restarting all the workers and reloading the app. | |
| var cluster = require('cluster'); | |
| var workerCount = process.env.WORKER_COUNT || 2; | |
| // Defines what each worker needs to run |
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 skills = data.skills, | |
| activities = data.activities, | |
| works = data.works, | |
| schools = data.schools; | |
| delete data.schools; | |
| delete data.works; | |
| delete data.activities; | |
| delete data.skills; |
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
| dependencies: | |
| cache_directories: | |
| - mongodb-linux-x86_64-2.6.4 | |
| pre: | |
| - if [[ ! -d mongodb-linux-x86_64-2.6.4 ]]; then wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz && tar xvzf mongodb-linux-x86_64-2.6.4.tgz; fi | |
| - sudo /etc/init.d/mongodb stop | |
| - sudo cp mongodb-linux-x86_64-2.6.4/bin/* /usr/bin | |
| - sudo /etc/init.d/mongodb start |
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
| --Originally posted by "kiodane" at http://forums.macrumors.com/showthread.php?t=383969 | |
| tell application "System Preferences" | |
| set current pane to pane "com.apple.preference.keyboard" | |
| end tell | |
| tell application "System Events" | |
| if UI elements enabled then | |
| tell tab group 1 of window "Keyboard" of process "System Preferences" | |
| click checkbox "Use all F1, F2, etc. keys as standard function keys" | |
| if (do shell script "defaults read -g com.apple.keyboard.fnState") = "1" then |
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
| sudo apt-get update | |
| sudo apt-get install build-essential checkinstall libx11-dev libxext-dev zlib1g-dev libpng12-dev libjpeg-dev libfreetype6-dev libxml2-dev | |
| sudo apt-get install imagemagick | |
| wget http://www.imagemagick.org/download/ImageMagick.tar.gz | |
| tar -xzvf ImageMagick.tar.gz | |
| cd ImageMagick-6.8.9-9 | |
| ./configure | |
| make | |
| sudo make install |
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
| RUN \ | |
| curl -sfLO http://www.imagemagick.org/download/ImageMagick-6.9.0-4.tar.gz && \ | |
| echo 'cf51a1c6ebf627c627a8e6ac20aecce5f1425907c2cdb98c5a60f329c5c6caf2 ImageMagick-6.9.0-4.tar.gz' | sha256sum -c - && \ | |
| tar -xzf ImageMagick-6.9.0-4.tar.gz && \ | |
| cd ImageMagick-6.9.0-4 && \ | |
| ./configure --prefix /usr/local && \ | |
| make install && \ | |
| cd .. && \ | |
| rm -rf ImageMagick* |