gem install rails --pre
rails new my_app -T
include_recipe "aws" | |
include_recipe "lvm" | |
include_recipe "xfs" | |
esvg = node.elasticsearch.ebs.lvm.volume_group | |
eslv = node.elasticsearch.ebs.lvm.logical_volume | |
Chef::Log.info "ElasticSearch: setting up 8 100G EBS volumes" | |
aws = data_bag_item("aws", node.app_environment) | |
8.times do |d| | |
disk = (d == 0 ? "/dev/sdi" : "/dev/sdi#{d}") |
var soundex = function (s) { | |
var a = s.toLowerCase().split(''), | |
f = a.shift(), | |
r = '', | |
codes = { | |
a: '', e: '', i: '', o: '', u: '', | |
b: 1, f: 1, p: 1, v: 1, | |
c: 2, g: 2, j: 2, k: 2, q: 2, s: 2, x: 2, z: 2, | |
d: 3, t: 3, | |
l: 4, |
iPad | |
1024 × 690 In landscape on iOS 4.3 | |
1024 × 672 In landscape on iOS 5 | |
768 × 946 In portrait on iOS 4.3 | |
768 × 928 In portrait on iOS 5 | |
1024 × 660 Always showing bookmarks bar in landscape on iOS 4.3 | |
1024 × 644 Always showing bookmarks bar in landscape on iOS 5 | |
768 × 916 Always showing bookmarks bar in portrait on iOS 4.3 |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>App Redirection</title> | |
</head> | |
<body> | |
<!-- | |
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom | |
protocol handlers. |
# AMI: ami-3275ee5b | |
# Login: ec2-user | |
# Apply updates | |
sudo yum update | |
# Enable Epel Repo | |
sudo vim /etc/yum.repos.d/epel.repo. | |
# Under the section marked [epel], change enabled=0 to enabled=1. |
#!/bin/bash | |
PATH=/bin:/usr/bin:/usr/local/bin | |
check-nfs () { | |
local TMPFILE=/tmp/checknfs.$$ RET=0 ORPHAN SUBSHELLPID | |
if [ "$#" -eq 0 ]; then | |
cat<<EOF | |
usage: check-nfs NFS-DIRECTORY... |
To test a glob
pattern go over to globtester and play around with creating your own file structure online, it's super easy to get started that way.
If you want to test out a glob
pattern in the terminal use echo
followed by the pattern, for instance.
echo **/*.js
set traffic-control advanced-queue root queue 1 bandwidth 50mbit | |
set traffic-control advanced-queue root queue 1 attach-to global | |
set traffic-control advanced-queue queue-type sfq SFQ_DOWN | |
set traffic-control advanced-queue queue-type fq-codel FQCODEL_UP ecn disable | |
set traffic-control advanced-queue queue-type fq-codel FQCODEL_DOWN target 5ms | |
set traffic-control advanced-queue queue-type fq-codel FQCODEL_DOWN quantum 1514 | |
set traffic-control advanced-queue queue-type fq-codel FQCODEL_DOWN limit 1001 | |
set traffic-control advanced-queue queue-type fq-codel FQCODEL_DOWN interval 50ms | |
set traffic-control advanced-queue queue-type fq-codel FQCODEL_DOWN flows 1024 | |
set traffic-control advanced-queue queue-type fq-codel FQCODEL_DOWN ecn enable |