Skip to content

Instantly share code, notes, and snippets.

View superscott's full-sized avatar
👺
щ(ಠ益ಠщ) (✖╭╮✖) ᕦ(ò_óˇ)ᕤ

superscott superscott

👺
щ(ಠ益ಠщ) (✖╭╮✖) ᕦ(ò_óˇ)ᕤ
View GitHub Profile
@superscott
superscott / kafka
Created September 12, 2014 00:27
Simple Kafka Ubuntu init.d Startup Script
DAEMON_PATH=/opt/kafka/bin
DAEMON_NAME=kafka
# Check that networking is up.
#[ ${NETWORKING} = "no" ] && exit 0
PATH=$PATH:$DAEMON_PATH
# See how we were called.
case "$1" in
start)
@superscott
superscott / .zlogin
Last active August 18, 2020 05:37
oh-my-zsh files.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
@superscott
superscott / pi.rb
Last active January 4, 2016 01:59
pi / malloc / ubuntu
#
# ruby pi - how to calculate pi with ruby.
# proving that pi is the limit of this series:
# 4/1 - 4/3 + 4/5 - 4/7 + 4/9 ...
#
num = 4.0
pi = 0
plus = true
den = 1
@superscott
superscott / feeds.xml
Created December 16, 2013 01:45
RSS Notifier Feed List
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<opml version="1.0">
<head>RSS Notifier Subscriptions</head>
<body>
<outline htmlUrl="http://rubyrogues.com" title="Ruby Rogues" xmlUrl="http://rubyrogues.com/feed/" type="rss" text="Ruby Rogues"/>
<outline htmlUrl="http://packetstormsecurity.com/" title="Packet Storm" xmlUrl="http://rss.packetstormsecurity.com/" type="rss" text="Packet Storm"/>
<outline htmlUrl="http://slashdot.org/" title="Slashdot" xmlUrl="http://rss.slashdot.org/Slashdot/slashdot" type="rss" text="Slashdot"/>
<outline htmlUrl="http://www.exploit-db.com" title="Exploit-DB updates" xmlUrl="http://www.exploit-db.com/rss.xml" type="rss" text="Exploit-DB updates"/>
<outline htmlUrl="http://arstechnica.com" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index" type="rss" text="Ars Technica"/>
<outline htmlUrl="http://podcasts.thoughtbot.com/giantrobots.xml" title="Giant Robots Smashing into other Giant Robots Pod
@superscott
superscott / ghost
Created December 15, 2013 23:22
Ghost init.d script
#! /bin/sh
### BEGIN INIT INFO
# Provides: ghost
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Ghost Blogging Platform
# Description: Ghost: Just a blogging platform
### END INIT INFO
@superscott
superscott / config.js
Created December 15, 2013 23:12
Node.js / Ghost: config.js
// # Ghost Configuration
// Setup your Ghost install for various environments
var path = require('path'),
config;
config = {
// ### Development **(default)**
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
@superscott
superscott / default
Created December 15, 2013 23:05
NGINX:: default - nginx.conf
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@superscott
superscott / text
Created November 28, 2013 17:07
Serious! Pony! Mics!
Blue Baby Bottle: Dont let the size fool you.
http://www.guitarcenter.com/Blue-Baby-Bottle-Microphone-101491603-i1127334.gc
Shure Beta 87A: This is used on stage for peeps a lot, like Kelly Clarkson types.
http://www.guitarcenter.com/Shure-Beta-87A-Supercardioid-Condenser-Mic-100091052-i1126526.gc
Audio-Technica AT4040: Solid.
http://www.guitarcenter.com/Audio-Technica-AT4040-Large-Diaphragm-Studio-Condenser-Mic-101875912-i1126600.gc
@superscott
superscott / tags.rb
Created November 18, 2013 22:41
content_tags!!
<div class="form-group">
<label class="col-lg-3 control-label">Business Information</label>
<div class="col-lg-9">
<p class="form-control-static">
<%= finalize_signup_display_complete(false) %>
</p>
</div>
</div>