Skip to content

Instantly share code, notes, and snippets.

Working from home

Scott sc0ttman

Working from home
  • Calgary
Block or report user

Report or block sc0ttman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
View letter_me_now.rb
require 'faraday'
class PasswordCracker
ALPHABET = (('a'..'z').to_a + ('0'..'9').to_a).shuffle
SUBJECT = 'password'
def initialize(api)
@api = api
@password = ''
sc0ttman /
Created Jun 8, 2017 — forked from AurelienZMN/
Update your SSL Certificate on Heroku with GoDaddy

#Update SSL certificate on Heroku

##Generate private key To generate your private key you need to have Homebrew and OpenSSL installed on your mac.

First install Homebrew.

ruby -e "$(curl -fsSL"

Then, install OpenSSL.

sc0ttman / slack_delete.rb
Created Feb 10, 2016 — forked from jamescmartinez/slack_delete.rb
This Ruby script will bulk remove all Slack files older than 30 days. Just add your API token from into the token quotes at the top of the file.
View slack_delete.rb
require 'net/http'
require 'json'
require 'uri'
@token = ''
def list_files
ts_to = ( - 30 * 24 * 60 * 60).to_i # 30 days ago
params = {
token: @token,
# A class-based template for jQuery plugins in Coffeescript
# $('.target').myPlugin({ paramA: 'not-foo' });
# $('.target').myPlugin('myMethod', 'Hello, world');
# Check out Alan Hogan's original jQuery plugin template:
(($, window) ->

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
gem list
gem install bundler
sc0ttman / readme
Created Jun 4, 2013
Paste without formatting
View readme
Open 'System Preferences'
Select 'Keyboard'
Select tab 'Keyboard Shortcuts'
Select 'Application Shortcuts' from the left listbox
Click '+' below right listbox
Select 'All Applications' for 'Application' input box
Type 'Paste and Match Style' into the 'Menu Title' input box
sc0ttman /
Last active Dec 17, 2015
Copy iphone simulator to apps
sudo ln -sf /Applications/\ /Applications/iOS\
# As of iOS 7 the location is:
View Ruby Notepad Bookmarklet
Ruby Editor:
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
Autofocus textarea:
data:text/html, <textarea style="font-size: 1em;font-family:'Lucida Console';width: 100%; height: 100%; border: none; outline: none" autofocus />
You can’t perform that action at this time.