Skip to content

Instantly share code, notes, and snippets.

#! /bin/sh
# Description: Startup script for nginx webserver on Debian. Place in /etc/init.d and
# run 'sudo update-rc.d nginx defaults', or use the appropriate command on your
# distro.
#
# Author: Ryan Norbauer <[email protected]>
# Modified: Geoffrey Grosenbach http://topfunky.com
# Modified: zelnox
@Zelnox
Zelnox / epic snow leopard upgrade guide.txt
Created September 4, 2009 03:07 — forked from edward/epic snow leopard upgrade guide.txt
=== Epic Snow Leopard Upgrayyyyd Guide ===
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
@Zelnox
Zelnox / homebrew-install.rb
Created October 14, 2009 21:14
Script to install homebrew without git
#!/usr/bin/env ruby
require 'fileutils'
def fail!(msg = "Failure!")
puts(msg)
exit(1)
end
REPOSITORY_URL = 'git://github.com/mxcl/homebrew.git'
PACKAGE_URL = 'http://github.com/mxcl/homebrew/tarball/master'
/*
Jquery and Rails powered default application.js
Easy Ajax replacement for remote_functions and ajax_form based on class name
All actions will reply to the .js format
Unostrusive, will only works if Javascript enabled, if not, respond to an HTML as a normal link
respond_to do |format|
format.html
format.js {render :layout => false}
end
*/
/*
Jquery and Rails powered default application.js
Easy Ajax replacement for remote_functions and ajax_form based on class name
All actions will reply to the .js format
Unostrusive, will only works if Javascript enabled, if not, respond to an HTML as a normal link
respond_to do |format|
format.html
format.js {render :layout => false}
end
*/
The Bash shell prompt in your Terminal is very highly customizable and can display a wide variety of useful information. This is what my prompt looks like and how to create it.
[09:10:11] user@host ~/Desktop +
Explanation:
The following information is presented at the prompt:
[09:10:11] : the current time
user@host : the name of the logged in user and the host machine
server {
listen 3000 ;
server_name localhost ;
root /home/camilo/Documents/webapps ;
passenger_enabled on ;
passenger_base_uri /original ;
passenger_base_uri /second ;
}
Somewhere in your layouts/application.html.erb
<%= content_for?(:content) ? yield(:content) : yield %>
syntax on
colorscheme xoria256
if &term =~ "xterm-256color"
set t_Co=256
colorscheme xoria256
endif
if has("gui_macvim")
set fuopt=maxvert,maxhorz " full screen takes entire screen
end
if &term =~ "xterm-256color"
set t_Co=256
colorscheme xoria256
endif
if has("gui_macvim")
set fuopt=maxvert,maxhorz " full screen takes entire screen
set guifont=Inconsolata:h14
"set guifont=MyFont\ for\ Powerline\ 14
end