Skip to content

Instantly share code, notes, and snippets.

@xdite
xdite / gist:3130468
Created July 17, 2012 16:31
7 月書單

電子書

<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
<%= stylesheet_link_tag "application" %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
* update_all
* find_in_batch
* transaction
## 10 Gems you should know
* cancan
* settinglogic
* capistrano
* cells
* whenever
* backup
* workflow
* devise
* omniauth
@raecoo
raecoo / monit-example.txt
Last active October 26, 2022 06:24
Monit (http://mmonit.com/monit/) script example
set daemon 20
set logfile syslog facility log_daemon
set mailserver smtp.gmail.com port 587
username "ERROR-EMAIL-ADDRESS" password "PASSWORD"
using tlsv1
with timeout 30 seconds
set alert ERROR-EMAIL-ADDRESS
set httpd port 2812 and

開 Project 流程

使用 Bootstrappers 產生 project

bootstrappers demo
cd demo
git init
git add .
git commit -m "init project" 

開 Project 流程

使用 Bootstrappers 產生 project

bootstrappers demo
cd demo
git init
git add .
git commit -m "init project" 
@deepak
deepak / Dockerfile
Last active December 8, 2024 08:48
Dockerfile for installing ruby using rbenv
# DOCKER-VERSION 0.4.8
# am facing issue
# https://github.com/dotcloud/docker/issues/1123
FROM ubuntu:12.04
MAINTAINER Deepak Kannan "[email protected]"
RUN apt-get -y install python-software-properties
@biscuitvile
biscuitvile / up_an_running.md
Last active July 8, 2020 07:15
Up and Running with iTerm, Tmux, Vim, and vim-rails

Up and Running with iTerm, Tmux, Vim, and vim-rails

Make it a point to be able to use the keyboard as much as you can. In OS X the spotlight is great for this. By default the spotlight hotkey is Cmd+Space. Make it a point to try and always use iTerm in fullscreen. Remember that your tmux prefix is set to Ctrl+z

  • Open iTerm with spotlight with Cmd+Space search iTerm and open with Enter
  • Fullscreen iTerm with Cmd+Enter
  • Pop out of iTerm with the hotkey you added Ctrl+Enter
  • Pop back into iTerm with Ctrl+Enter again
  • Nagivate to your intended project directory
  • Check for running tmux sessions with tmux ls (Failed to connect to server just means no tmux sessions yet)