Skip to content

Instantly share code, notes, and snippets.

View brettchalupa's full-sized avatar

Brett Chalupa brettchalupa

View GitHub Profile
@brettchalupa
brettchalupa / technologies_to_watch.md
Created January 30, 2014 01:32
Interesting technologies to watch.

Better security practices:

  • unique and strong passwords
  • unassociate credit cards with online vendors (Amazon, PayPal, etc.)
  • enable two factor auth wherever possible
  • delete old and unused accounts
@brettchalupa
brettchalupa / curry.md
Created January 30, 2014 17:22
Curry checks that committers in a GitHub Pull Request have signed Chef's CLA in Super Market.

Curry

Curry checks that committers in a GitHub Pull Request have signed Chef's CLA in Super Market.

Intro

The general goal of curry is to verify that committer(s) opening a pull request in a Chef Inc. repo have signed a CLA. If they have signed a CLA, Super Market will leave a comment letting Chef Inc. know that the user has signed a CLA. If they have not, Super Market will leave a comment letting Chef Inc. and the committer(s) know they have not signed a CLA, while instructing the committer(s) to sign a CLA. When the Pull Request is opened, a ticket is opened in the ticket tracking system being used (in Chef's case, JIRA).

Major parts of Curry include:

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
class X
attr_accessor :i
def initialize
@i = 0
end
def work(e)
@i += e
end
@brettchalupa
brettchalupa / golang_notes.md
Created August 6, 2015 02:28
Go(lang) Notes

Notes While Learning Go(lang)

Useful Commands

  • godoc -http=:8000 - serve Go docs locally
@brettchalupa
brettchalupa / favorite_sort.rb
Created September 19, 2012 22:18
Sorting and displaying Submissions and their Favorite count
@submissions = Submission.all.sort_by { |s| s.favorites.count }
File.open("favorites_list.txt", "w") do |file|
@submissions.each do |submission|
file << submission.name + " - Favorites: " + submission.favorites.count.to_s + "\n"
end
end
@brettchalupa
brettchalupa / bdb.haml
Created October 12, 2012 15:36
Pulling in the bday bash game.
%iframe#gameframe{:frameborder => "no", :height => "540", :onload => "this.contentWindow.focus();", :scrolling => "no", :src => "http://azurenimbus.com/aetherarcade/index.html", :style => "padding:0;margin:0;border:1px;", :width => "640"}
@brettchalupa
brettchalupa / output_users.rb
Created October 15, 2012 15:53
Write BMO users to a txt file.
@users = User.all
File.open("user_list.txt", "w") do |file|
@users.each do |user|
file << user.id
file << " "
file << user.name
file << "\n"
end
end
@brettchalupa
brettchalupa / Makefile
Created October 20, 2012 02:04
Makefile for compiling AS3 into SWFs.
MXMLC = ~/../../Library/flex_sdk_4.6.0.23201B/bin/mxmlc
SRC = src/
MAIN = src/Main.as
SWF = bin/file_name.swf
$(SWF) : $(SRC)
$(MXMLC) -o $(SWF) -static-link-runtime-shared-libraries -- $(MAIN)
run : $(SWF)
open $(SWF)