Skip to content

Instantly share code, notes, and snippets.

View sud0n1m's full-sized avatar

Colin Nederkoorn sud0n1m

View GitHub Profile
<pre style="font: 10px/5px monospace;">
'+++++++++++++++++++++++++++++++++++++++++''''''''''''''''''''''''''''''
`...
,+++++++++++++++++++++++++++++++++++
` +++ .;+++++:++
., ;++` ,;+++++++'` ++` '
.,,` +++ :+++++++++++; .++ ;''
.,,,, '++++++++++++, ++, ''''
<?php if $_SESSION[user] ?>
<script type="text/javascript">
_cio.identify({
// Signed in user attributes
id: <?= $_SESSION[user][id] ?>, // Unique id for the currently signed in user in your application.
email:<?= $_SESSION[user][email] ?>, // Email of the currently signed in user.
created_at:<?= $_SESSION[user][created_at] ?>,
# From the Discourse-Chef directory
SERVER="yourdomain.com"
# Install Instructions
librarian-chef install
# enter your password once and never again
ssh-copy-id root@$SERVER
@sud0n1m
sud0n1m / Capfile
Last active December 13, 2015 18:08
A preliminary capistrano deploy script for discourse. To be used together with https://github.com/sud0n1m/discourse-chef
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
load 'deploy/assets'
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
@sud0n1m
sud0n1m / bootstrap.sh
Last active December 12, 2015 08:59
Bootstrap
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p385.tar.gz
tar -xvzf ruby-1.9.3-p385.tar.gz
cd ruby-1.9.3-p385/
./configure --prefix=/usr/local
make
make install
#!/usr/bin/env bash
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz
tar -xvzf ruby-1.9.3-p327.tar.gz
cd ruby-1.9.3-p327/
./configure --prefix=/usr/local
make
#!/usr/bin/env python
#install the follow first:
#sudo easy_install pip
#sudo pip install -U boto
#sudo pip install configparser
@sud0n1m
sud0n1m / Logs
Created December 26, 2012 03:16
➜ raw git:(Relaunch) ✗ jekyll --auto
Configuration from /Users/sudonim/Projects/home/raw/_config.yml
Auto-regenerating enabled: . -> ../public
[2012-12-25 22:13:08] regeneration: 289 files changed
Asset Pipeline: Processing 'css_asset_tag' manifest 'blog'
Asset Pipeline: Saved 'style.css' to '_site/assets'
Asset Pipeline: Saved 'signup.css' to '_site/assets'
Asset Pipeline: Saved 'blog.css' to '_site/assets'
Asset Pipeline: Saved 'bootstrap-responsive.min' to '_site/assets'
Asset Pipeline: Processing 'javascript_asset_tag' manifest 'global'
source: .
destination: ../public
includes: ./_includes
plugins: ./_plugins
pygments: true
permalink: /blog/:title.html
base_url: http://customer.io
description: Customer.io
root_desc: Customer.io