This file contains hidden or 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
~/.ssh/config: | |
Host myrepo | |
User git | |
Port <port number> | |
Hostname <hostname.com> |
This file contains hidden or 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
#step 1 | |
yum -y install python-setuptools | |
#step 2 | |
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
# or | |
# rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm | |
#step 3 | |
# if you using centOS 6.2 enable rpmforge-extras (enabled =1) |
This file contains hidden or 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
sudo apt-get install libfuse-dev libreadline-dev libgcrypt-dev libgmp3-dev | |
cd ~ | |
wget http://citylan.dl.sourceforge.net/project/afpfs-ng/afpfs-ng/0.8.1/afpfs-ng-0.8.1.tar.bz2 | |
# or http://sourceforge.net/projects/afpfs-ng/ | |
tar -xf afpfs-ng-0.8.1.tar.bz2 && cd afpfs-ng-0.8.1 | |
./configure | |
make | |
sudo make install | |
sudo ldconfig |
This file contains hidden or 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
# ElasticSearch Service | |
description "ElasticSearch" | |
start on (net-device-up | |
and local-filesystems | |
and runlevel [2345]) | |
stop on runlevel [016] |
This file contains hidden or 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
upstream example_backend { | |
server unix:/var/www/example.com/shared/unicorn.sock; | |
} | |
server { | |
listen 80; | |
server_name example.com www.example.com; | |
access_log off; | |
error_log off; | |
client_max_body_size 20M; |
This file contains hidden or 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
module CarrierWave | |
module FFMPEG | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def faststart | |
process :faststart => true | |
end | |
def transcode options |
This file contains hidden or 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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains hidden or 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
# load libraries | |
require 'rubygems' | |
require 'wirble' | |
require 'ostruct' | |
require 'open-uri' | |
require 'color' | |
require 'etc' | |
#require 'extensions' | |
require 'hpricot' | |
require 'irb/completion' |
This file contains hidden or 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
sudo apt-get -y install build-essential git-core curl libssl-dev libreadline6-dev zlib1g-dev libmysqlclient-dev libcurl4-openssl-dev libxslt-dev libxml2-dev imagemagick imagemagickcore-dev imagemagickwand-dev | |
curl -L get.rvm.io | bash -s stable && source ~/.bash_profile && rvm requirements && rvm install 1.9.3 |
This file contains hidden or 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
$.xhrPool = []; | |
$.xhrPool.abortAll = function() { | |
_.each(this, function(jqXHR) { | |
jqXHR.abort(); | |
}); | |
}; | |
$.ajaxSetup({ | |
beforeSend: function(jqXHR) { | |
$.xhrPool.push(jqXHR); |