$ curl get.pow.cx | sh
$ curl -O https://raw.github.com/gist/4129846/7ae1709453a8a19ce9c030bf41d544dd08d96d85/php.rb
$ mv php.rb brew --prefix
/Library/Formula
#!/usr/bin/env bash | |
# repository | |
cd /tmp | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -Uvh epel-release-6-8.noarch.rpm | |
# system update | |
yum -y update | |
yum -y groupinstall "Development Tools" | |
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick |
namespace :assets do | |
ROOT = Pathname.new(File.dirname(__FILE__)) | |
LOGGER = Logger.new(STDOUT) | |
APP_ASSETS_DIR = ROOT.join("app/assets") | |
PUBLIC_ASSETS_DIR = ROOT.join("vendor/assets") | |
OUTPUT_DIR = ROOT.join("public") | |
desc 'Compile assets' | |
task :compile => :compile_js |
guard 'sprockets', :destination => 'public', | |
:asset_paths => ['app/assets/javascripts', 'vendor/assets/javascripts'], | |
:root_file => 'app/assets/javascripts/application.js', :minify => true do | |
watch(%r{^app/assets/javascripts/(.+)\.(js|js\.coffee)}) | |
end |
#import <UIKit/UIKit.h> | |
@interface UIView (Recursion) | |
/** | |
Return YES from the block to recurse into the subview. | |
Set stop to YES to return the subview. | |
*/ | |
- (UIView*)findViewRecursively:(BOOL(^)(UIView* subview, BOOL* stop))recurse; |
#!/bin/bash | |
## Email Variables | |
EMAILDATE=`date --date="today" +%y-%m-%d` | |
EMAIL="[email protected]" | |
SUBJECT="[servername] Backup Script Started! - "$EMAILDATE | |
EMAILMESSAGE="/tmp/emailmessage1.txt" | |
echo "Just to let you know that the backup script has started."> $EMAILMESSAGE | |
/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
Server { | |
SourceRoot = /var/www | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Building a router</title> | |
<script> | |
// Put John's template engine code here... | |
(function () { | |
// A hash to store our routes: |
'use strict'; | |
module.exports = function(grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// configurable paths | |
var paths = { |