Loosely ordered with the commands used most towards the top. Sublime also offer full documentation.
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
Ctrl+⇧+↩ | insert line before |
Ctrl+⇧+↑ | move line (or selection) up |
Loosely ordered with the commands used most towards the top. Sublime also offer full documentation.
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
Ctrl+⇧+↩ | insert line before |
Ctrl+⇧+↑ | move line (or selection) up |
# http://computercamp.cdwilson.us/git-gitolite-git-daemon-gitweb-setup-on-ubunt | |
<VirtualHost *:80> | |
ServerName git.server | |
ServerAdmin [email protected] | |
DocumentRoot /usr/share/gitweb | |
<Directory /usr/share/gitweb> | |
Options FollowSymLinks ExecCGI | |
AddHandler cgi-script cgi | |
RewriteEngine On |
#!/bin/sh | |
# This script will migrate schema and data from a SQLite3 database to PostgreSQL. | |
# Schema translation based on http://stackoverflow.com/a/4581921/1303625. | |
# Some column types are not handled (e.g blobs). | |
SQLITE_DB_PATH=$1 | |
PG_DB_NAME=$2 | |
PG_USER_NAME=$3 |
#!/bin/bash | |
echo "127.0.0.1 rstudio.cloud-mes.com" >> /etc/hosts | |
wget -q -O - http://smarthosts.googlecode.com/svn/trunk/hosts >> /etc/hosts |
eric@cvprcsip01:~$ gem list ruby-prof | |
*** LOCAL GEMS *** | |
ruby-prof (0.12.1) | |
eric@cvprcsip01:~$ cat hello.rb | |
puts "hello ruby-prof!" | |
eric@cvprcsip01:~$ ruby --version | |
ruby 1.9.3p374 (2013-01-15 revision 38858) [i686-linux] |
diff --git a/ext/bluecloth.h b/ext/bluecloth.h | |
index 230618b..97053b5 100644 | |
--- a/ext/bluecloth.h | |
+++ b/ext/bluecloth.h | |
@@ -7,20 +7,21 @@ | |
#ifndef BLUECLOTH_H | |
#define BLUECLOTH_H | |
+#include "ruby.h" | |
+ |
// Load the TCP Library | |
net = require('net'); | |
// Keep track of the chat clients | |
var clients = []; | |
// Start a TCP Server | |
net.createServer(function (socket) { | |
// Identify this client |
Relevant Rails PRs
h/t to http://juanitofatas.com/2015/01/31/rails-5-active-record-or/ for some more useful links
#!/bin/sh | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx | |
# For Debian, run: update-rc.d -f nginx defaults | |
# For CentOS, run: chkconfig --add nginx | |
# | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all |