Skip to content

Instantly share code, notes, and snippets.

Avatar

Colin Nederkoorn sud0n1m

View GitHub Profile
View Customer.io Logo Ascii HTML.html
<pre style="font: 10px/5px monospace;">
'+++++++++++++++++++++++++++++++++++++++++''''''''''''''''''''''''''''''
View Customer.io Ascii Art
`...
,+++++++++++++++++++++++++++++++++++
` +++ .;+++++:++
., ;++` ,;+++++++'` ++` '
.,,` +++ :+++++++++++; .++ ;''
.,,,, '++++++++++++, ++, ''''
View identify.php
<?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] ?>,
View Discourse Instructions
# 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 Dec 13, 2015
A preliminary capistrano deploy script for discourse. To be used together with https://github.com/sud0n1m/discourse-chef
View Capfile
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
load 'deploy/assets'
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
View bootstrap.sh
#!/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
View chef_solo_bootstrap.sh
#!/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
View s3-maxcdn-deploy.py
#!/usr/bin/env python
#install the follow first:
#sudo easy_install pip
#sudo pip install -U boto
#sudo pip install configparser
View Logs
➜ 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'
View config.yml
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