Installing Xcode and the command line tools need to be done first because it installs gcc.
https://developer.apple.com/xcode/features/
Or via the terminal:
| http { | |
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
| proxy_temp_path /var/tmp; | |
| include mime.types; | |
| default_type application/octet-stream; | |
| sendfile on; | |
| keepalive_timeout 65; | |
| gzip on; | |
| gzip_comp_level 6; |
| <?php | |
| /** | |
| * Create a web friendly URL slug from a string. | |
| * | |
| * Although supported, transliteration is discouraged because | |
| * 1) most web browsers support UTF-8 characters in URLs | |
| * 2) transliteration causes a loss of information | |
| * | |
| * @author Sean Murphy <sean@iamseanmurphy.com> | |
| * @copyright Copyright 2012 Sean Murphy. All rights reserved. |
Installing Xcode and the command line tools need to be done first because it installs gcc.
https://developer.apple.com/xcode/features/
Or via the terminal:
| # | |
| # A virtual host using mix of IP-, name-, and port-based configuration. | |
| # This is based on using Homebrew for OS X. You can use this in other | |
| # cases though, but you'll likely need to adjust some of the paths below. | |
| # | |
| server { | |
| # Replace this port with the right one for your requirements | |
| # listen 80 [default|default_server]; #could also be 1.2.3.4:80 |
| description "Upstart script to run a nodejs app as a service" | |
| author "Louis Chatriot" | |
| env NODE_BIN=/usr/local/bin/node | |
| env APP_DIR=/path/to/app/dir | |
| env SCRIPT_FILE="scriptfile.js" # Entry point for the nodejs app | |
| env LOG_FILE=/path/to/logfile.log | |
| env RUN_AS="anyuser" # Upstart can only be run nicely as root, need to drop privileges | |
| env SERVER_ENV="anything" # Usual apps can be run in different environments (development, test, production ...) | |
| # I typically use the environment variable NODE_ENV (see below) |
| var fakeReferrer = "http://porzky.com" | |
| var targetUrl = "http://keyworddomains.com" | |
| var casper = require('casper').create(); | |
| casper.start(fakeReferrer, function() { | |
| this.echo(this.getCurrentUrl()); | |
| }); | |
| casper.then(function(){ |
| #!upstart | |
| description "your fancy description that no one will see ;)" | |
| author "Your Name <youremail@fqdn>" | |
| # start on every run level, 2 is the one on Ubuntu | |
| start on runlevel [2345] | |
| # stop on halt, maintenance or reboot | |
| stop on runlevel [016] |
| # Installing graphite dependencies | |
| apt-get install -y python2.6 python-pip python-cairo python-django python-django-tagging | |
| apt-get install -y libapache2-mod-wsgi python-twisted python-memcache python-pysqlite2 python-simplejson | |
| pip install whisper | |
| pip install carbon | |
| pip install graphite-web | |
| # Setup a vhost by grabbing the example the graphite team released on their repo. | |
| # In this file, you'll provide the url used to access to your Graphite dashboard | |
| wget https://raw.github.com/tmm1/graphite/master/examples/example-graphite-vhost.conf -O /etc/apache2/sites-available/graphite |
| # | |
| # UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs | |
| # just run "sudo trimforce enable" to activate the trim support from now on! | |
| # | |
| # Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/) | |
| # Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/ | |
| # | |
| # Looks for "Apple" string in HD kext, changes it to a wildcard match for anything | |
| # | |
| # Alternative to http://www.groths.org/trim-enabler-3-0-released/ |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)