Skip to content

Instantly share code, notes, and snippets.

@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active June 13, 2024 10:59
A badass list of frontend development resources I collected over time.
@p01
p01 / LICENSE.txt
Last active May 23, 2024 13:46 — forked from 140bytes/LICENSE.txt
Sudoku Solver in 140bytes
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
@Zoramite
Zoramite / sortableCopy.css
Created January 4, 2011 17:58
Testing the ability to ctrl + drag to copy a sortable element
* {
margin: 0;
padding: 0;
}
ul,
ol {
list-style: none;
}
@avsej
avsej / gist:735996
Created December 10, 2010 08:59 — forked from theozaurus/gist:716974
# 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
@brynary
brynary / git.rb
Created December 7, 2010 19:05
git:warn_unpushed_changes cap task
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
@mrichman
mrichman / deploy.rb
Created May 19, 2009 21:48
Capistrano deploy.rb
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