Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
#!/bin/sh | |
(( ${#} > 0 )) || { | |
echo 'DISCLAIMER: USE THIS SCRIPT AT YOUR OWN RISK!' | |
echo 'THE AUTHOR TAKES NO RESPONSIBILITY FOR THE RESULTS OF THIS SCRIPT.' | |
echo "Disclaimer aside, this worked for the author, for what that's worth." | |
echo 'Press Control-C to quit now.' | |
read | |
echo 'Re-running the script with sudo.' | |
echo 'You may be prompted for a password.' | |
sudo ${0} sudo |
var ncr = require('nodecr') | |
, request = require('request') | |
, fs = require('fs') | |
, test_img = 'https://www.google.com/images/srpr/logo3w.png' // Change this to your image | |
// Create image name from end of URL. | |
// Note this will fail in loads of cases. | |
var imgName = test_img.split('/').pop() | |
// Process the image and read the text from it using Tesseract |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://npmjs.org/install.sh | sh |
# The install script | |
# Adapted from https://gist.github.com/579814 | |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
echo 'export NODE_PATH=$HOME/local/lib/node_modules' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/Downloads/node-latest-install |
// Facebook SDK | |
angular.module('facebook', []). | |
directive('fb', ['$FB', function($FB) { | |
return { | |
restrict: "E", | |
replace: true, | |
template: "<div id='fb-root'></div>", | |
compile: function(tElem, tAttrs) { | |
return { | |
post: function(scope, iElem, iAttrs, controller) { |
// | |
// Playlist.h | |
// | |
// Created by James Thompson on 5/31/12. | |
// Copyright (c) 2012 Ligonier Ministries, Inc. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <AVFoundation/AVFoundation.h> |
#Here's what I did to get to the point where I'm at: | |
#-Install Ubuntu 11.10 | |
#-Get all available updates | |
#-Add the VirtualBox add-ons and video driver | |
#-Set up SSH (for the SCP at the end) | |
# | |
# I have done nothing else to this virtual machine. | |
# On my iPhone, I set the DNS server to 192.168.2.131 (the IP of the virtual machine) |
Some things to note: | |
I'm running SiriProxy on port 2000 using a non-privileged user. I'm then redirecting internal network traffic | |
using iptables from port 443 to port 2000. This is more secure than running SiriProxy as root. I also have it | |
set up to respawn SiriProxy when it dies (which happens pretty regularly). Finally, I'm dumping all the output | |
to /tmp/siriproxy (in theory), but I don't seem to get output to that log. Which is unfortunate. Maybe someone | |
can explain what's wrong there. I'm really not an expert in Upstart either. :-) | |
As usual, simply copying/pasting this stuff anywhere will get you pretty much nowhere. You need to have some idea | |
what you're doing to make this work. Good luck! |
<?php | |
ini_set('may_execution_time', 600); | |
if (!ini_get('date.timezone') && function_exists('date_default_timezone_set')) { | |
date_default_timezone_set('UTC'); // You may change this (eg 'Europe/Berlin'). | |
} | |
/** | |
* Android 4.4 Kitkat / Nexus 5 email alert cronjob script. | |
* | |
* 1. Download this script. |