This file contains 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
#!/usr/bin/env RBENV_VERSION=1.9.3-preview1 ruby | |
require "digest" | |
require "sequel" | |
module ExpressionEngine | |
module Authentication | |
ALGORITHMS = { | |
32 => Digest::MD5, | |
40 => Digest::SHA1, |
This file contains 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
// * Normalize.styl | |
// * USE: After reset, attempts to normalize certain style elements | |
// **************************************************************** | |
// **************************************************************** | |
// * Consistency Fixes - Adapted from normalize.css | |
// ******************************** | |
html | |
height 100% |
This file contains 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
## jekyll plugin: slim converter | |
## _plugins/slim-convert.rb | |
module Jekyll | |
require 'slim' | |
class SlimConverter < Converter | |
safe true | |
priority :low | |
def matches(ext) |
This file contains 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
user nginx nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error_log info; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} |
This file contains 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
/* | |
* jquery.autogrow.js | |
* | |
* A plugin written for UserVoice that makes it easy to create textareas | |
* that automatically resize to fit their contents. | |
* | |
* Based on Scott Moonen's original code for Prototype.js: | |
* | |
* <http://scottmoonen.com/2008/07/08/unobtrusive-javascript-expandable-textareas/> | |
* |
This file contains 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
# config.ru for running legacy apps through pow! | |
# credit: http://stuff-things.net/2011/05/16/legacy-development-with-pow/ & .rvm mod @ https://github.com/DoppioJP/php-on-.pow/blob/master/config.ru | |
# notes: just saving as a gist because in all honestly i'd probably lose it otherwise | |
$:.push("/Users/#{`whoami`}/.rvm/gems/[email protected]/gems/rack-1.3.0/lib/") | |
$:.push("/Users/#{`whoami`}/.rvm/gems/[email protected]/gems/rack-legacy-0.2.0/lib/") | |
$:.push("/Users/#{`whoami`}/.rvm/gems/[email protected]/gems/rack-rewrite-1.0.2/lib/") | |
require "rack" | |
require "rack-legacy" |
This file contains 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
require 'formula' | |
def mysql_installed? | |
`which mysql_config`.length > 0 | |
end | |
class Php <Formula | |
url 'http://www.php.net/get/php-5.4.0.tar.gz/from/this/mirror' | |
homepage 'http://php.net/' | |
md5 'f4ce40d5d156ca66a996dbb8a0e7666a' |
This file contains 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
// media query module | |
// use: responsive style blocks output to @content | |
=tablet-portrait | |
@media screen and (min-width: 30em) | |
@content | |
=retina | |
@media screen and (-webkit-min-device-pixel-ratio: 2) | |
@content | |
// selector |
This file contains 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
cd ~ | |
sudo apt-get update | |
sudo apt-get install unzip curl python-software-properties openjdk-7-jre -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.2.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
sudo mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
OlderNewer