Skip to content

Instantly share code, notes, and snippets.

View WA9ACE's full-sized avatar
🏍️
🛣🚐 💨 Exploring

Caleb Albritton WA9ACE

🏍️
🛣🚐 💨 Exploring
View GitHub Profile
@pinge
pinge / ubuntu_14.04_macbook_pro_retina_15_inch_mid_2014.md
Last active March 10, 2021 03:05
How to install Ubuntu 14.04.1 LTS on a MacBook Pro Retina 15" Mid 2014 (11,3)
function just(x){ return {just: x}; }
var nothing = {nothing: null};
function maybe(d, f, m){
if('nothing' in m){
return d;
}
else if('just' in m){
return f(m.just);
}
else{
@schickling
schickling / Rakefile
Last active December 3, 2024 22:57
Activerecord without Rails
require "active_record"
namespace :db do
db_config = YAML::load(File.open('config/database.yml'))
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'})
desc "Create the database"
task :create do
ActiveRecord::Base.establish_connection(db_config_admin)
@robinsound
robinsound / SimpleGemInstaller.nsi
Last active November 3, 2021 01:00
NSIS script for Ruby, Git and DevKit installers. Then install a gem
!include LogicLib.nsh ;IF ELSE
!include "StrContains.nsh"
AutoCloseWindow true
OutFile "SimpleGemInstaller.exe"
;here you can reference to any other ruby version and set you prefer path
;you can use !define for compile time substitution
@JoshuaEstes
JoshuaEstes / 000-Cheat-Sheets.md
Last active April 3, 2025 19:12
Developer Cheat Sheets for bash, git, gpg, irssi, mutt, tmux, and vim. See my dotfiles repository for extra info.
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')