Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/ | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| * { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| ul, | |
| ol { | |
| list-style: none; | |
| } |
| # Enable upload_progress module for easy cross browser progress bar support | |
| # using only javascript client side | |
| upload_progress foobar_uploads 1m; | |
| server { | |
| # We only need one server block to deal with HTTP and HTTPS | |
| # avoids duplication | |
| listen 80; | |
| listen 443 default ssl; | |
| $ cd /usr/src | |
| $ wget http://nginx.org/download/nginx-0.8.52.tar.gz | |
| $ tar xzvf ./nginx-0.8.52.tar.gz | |
| $ rm ./nginx-0.8.52.tar.gz | |
| $ gem install s3sync capistrano capistrano-ext passenger --no-ri --no-rdoc | |
| $ passenger-install-nginx-module | |
| # Automatically download and install Nginx? 2. No: I want to customize my Nginx installation | |
| # Where is your Nginx source code located?: /usr/src/nginx-0.8.52 | |
| # Where do you want to install Nginx to?: /opt/nginx |
| Capistrano::Configuration.instance(:must_exist).load do | |
| namespace :git do | |
| task :warn_unpushed_changes do | |
| master_rev = `git rev-parse master`.strip | |
| origin_master_rev = `git rev-parse origin/master`.strip | |
| if master_rev != origin_master_rev | |
| puts "*" * 80 | |
| answer = Capistrano::CLI.ui.ask(" You have local commits that have yet to be pushed to origin. Continue? (y/N)") | |
| exit(1) unless answer.downcase == 'y' |
| #!/bin/sh | |
| # | |
| # server.sh | |
| # Author: Marius Voila | |
| # Created: 06/25/2010 | |
| # Updated: 07/19/2010 | |
| # | |
| # See my blog post on this script: http://mariusv.com/rackspace-cloud-new-server-script | |
| # | |
| # This script installs everything needed to run a Ruby on Rails application on |
| set :application, "myapplication" | |
| set :repository, "user@example.com:git/#{application}.git" | |
| set :server_name, "www.example.com" | |
| set :scm, "git" | |
| set :checkout, "export" | |
| set :deploy_via, :remote_cache | |
| set :branch, "master" | |
| set :base_path, "/path/to/www" | |
| set :deploy_to, "/path/to/www/#{application}" | |
| set :apache_site_folder, "/etc/apache2/sites-enabled" |
| # Capistrano Deploy Recipe for Git and Phusion Passenger | |
| # | |
| # After issuing cap deploy:setup. Place server specific config files in | |
| # /home/#{user}/site/[staging|production]/shared | |
| # Set :config_files variable to specify config files that should be | |
| # copied to config/ directory (i.e. database.yml) | |
| # | |
| # To deploy to staging server: | |
| # => cap deploy | |
| # => Deploys application to /home/#{user}/site/staging from master branch |