Skip to content

Instantly share code, notes, and snippets.

View lincank's full-sized avatar
🎯
Focusing

lincank

🎯
Focusing
View GitHub Profile
@lincank
lincank / ghost1
Created August 16, 2016 08:28 — forked from vbtechsupport/ghost1
ghost.centminmod.com CentOS 6.4 init.d startup script configured for per Ghost install instance + clearing Nginx proxy_cache on restart. http://ghost.centminmod.com/ghost-blog-node-js-init-startup-script/
#!/bin/bash
###########################################
# chkconfig: 2345 98 02
#
# description: PM2 next gen process manager for Node.js
# processname: ghost1
#
### BEGIN INIT INFO
# Provides: ghost1
# Required-Start:
@lincank
lincank / 0_reuse_code.js
Created March 2, 2016 09:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@lincank
lincank / gist:a2be8bd8e23acd646fce
Created November 14, 2015 14:25 — forked from ynaoto/gist:5228280
Install 'mosh' to CentOS 6
rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install mosh –enablerepo=epel
@lincank
lincank / gist:5012243
Last active December 14, 2015 02:18 — forked from jrochkind/gist:2161449
A Capistrano Rails Guide

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

#Steps to install RVM + Ruby 1.9.3 + Rails + nginx + Passenger on CentOS (tested on v5.5)
# Todo get up to date repo's
# Install git and curl, if not already installed
sudo yum install git
sudo yum install curl-devel
# Create the rvm group and add any users who will be using rvm to the group
sudo su -
@lincank
lincank / self_signed_cert.rb
Created October 9, 2012 07:30 — forked from nickyp/self_signed_cert.rb
create a self-signed certificate using ruby-openssl
require 'rubygems'
require 'openssl'
key = OpenSSL::PKey::RSA.new(1024)
public_key = key.public_key
# uncomment the following line if you when to save key to somewhere
# open '/tmp/key.pem', 'w' do |io| io.write key.to_pem end
# puts 'save to /tmp/key.pem'
@lincank
lincank / mountain-lion-brew-setup.markdown
Created July 27, 2012 05:59 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.