(based off of 'Get Mountain Lion and Homebrew to Be Happy')
Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
/* | |
* twitter-entities.js | |
* This function converts a tweet with "entity" metadata | |
* from plain text to linkified HTML. | |
* | |
* See the documentation here: http://dev.twitter.com/pages/tweet_entities | |
* Basically, add ?include_entities=true to your timeline call | |
* | |
* Based off existing code from Wade Simmons | |
* Licensed under the MIT license |
/* | |
Copy the single line of code below, then add it as a new bookmark to your web browser of choice: | |
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://gist.githubusercontent.com/dcpesses/9652778/raw';})(); | |
Then browse to the thumbnails of the album, click on that bookmark, and...enjoy! | |
*/ | |
document.oncontextmenu=document.body.oncontextmenu = new Function("return true"); |
# With a little help from http://www.raspberrypi.org/forums/viewtopic.php?f=78&t=85041 | |
sudo raspi-config | |
# Expand Filesystem | |
# Advanced Options -> Audio -> Change to 3.5 Headphone | |
# Internationalisation Options | |
sudo reboot | |
# if locale errors show up, | |
sudo dpkg-reconfigure locales | |
# Uncheck en_UK.UT8 | |
# Check en_US.UTF8 |
<?php | |
/** | |
* mysql_splitdump.php | |
* | |
* Splits a LARGE sql dump into individual sql files of each database | |
* | |
* Based off of example code from | |
* http://www.codediesel.com/php/splitting-large-mysql-dump-files/ | |
* |
Please note, this documentation originally appeared at http://laravelbook.com/laravel-introduction/ and has been updated to fix several issues and/or outdated code.
-D
This book is about Laravel, a web application development framework that saves you time and effort and makes web development a joy. Laravel has shaken up the PHP community in a big way - especially when you consider that version 1.0 of Laravel was only a couple of years ago. It has been generating a lot of buzz with the promise of making web applications fast and simple to create. Using Laravel, you can build and maintain high-quality web applications with minimal fuss.
#! /bin/bash | |
# Batch Convert Script by StevenTrux | |
# | |
# Modified by Danny Pesses to handle filenames with spaces and display color highlighting | |
# | |
# The Purpose of this Script is to batch convert any video file to mp4 or mkv format for chromecast compatibility | |
# this script only convert necessary tracks if the video is already | |
# in H.264 format it won't convert it saving your time! |
The following will guide you through the process of enabling SSL on a Apache webserver
Create a directory within /etc/apache2/
using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys:
// via http://stackoverflow.com/questions/8165570/https-proxy-server-in-node-js | |
// Install npm dependencies first | |
// npm init | |
// npm install --save [email protected] | |
// npm install --save [email protected] | |
// node ./index.js | |
var httpProxy = require("http-proxy"); | |
var http = require("http"); | |
var url = require("url"); | |
var net = require('net'); |
#!/bin/bash | |
brew_command=/usr/local/bin/brew | |
brew_cask_command="$brew_command cask" | |
echo '#!/bin/bash' | |
echo '' | |
echo 'trap ctrl_c INT' | |
echo 'function ctrl_c() {' | |
echo 'echo "** Trapped CTRL-C"' |