Skip to content

Instantly share code, notes, and snippets.

View byennen's full-sized avatar
🚀
to the moon

Lance Ennen byennen

🚀
to the moon
View GitHub Profile
@watson
watson / airplay.md
Last active February 5, 2022 03:41
An overview over my AirPlay related modules
@bzerangue
bzerangue / _verify-repair-permissions-disk.md
Last active April 25, 2024 22:55
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active December 1, 2023 08:21
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@jhgaylor
jhgaylor / codeship_modulus_meteor_deploy.sh
Last active May 27, 2016 10:56
A script for deploying a meteor application to modulus.io using codeship.io for CI. Useful if your meteor app is not at the root of your repo.
#!/bin/sh
# assumes a clean install on a fresh linux box.
# for use w/ codeship.io
set -e
set -u
# a reference to the cloned repository's path
PWD=`pwd`
METEOR_APP_PATH="$PWD/MeteorApp"
@tokenvolt
tokenvolt / simple_form_bootstrap3.rb
Last active November 2, 2023 11:55
Bootstrap 3 simple form initializer
inputs = %w[
CollectionSelectInput
DateTimeInput
FileInput
GroupedCollectionSelectInput
NumericInput
PasswordInput
RangeInput
StringInput
TextInput
@coreyhaines
coreyhaines / Current shopping cart
Last active December 18, 2015 00:08
Damn you MITPress and your 50% off weekend!
Computing
Paul E. Ceruzzi
ISBN: 9780262517676
Modeling Business Processes
Wil van der Aalst and Christian Stahl
ISBN: 9780262015387
The Reasoned Schemer
Daniel P. Friedman, William E. Byrd, and Oleg Kiselyov
@jimweirich
jimweirich / ruby_flight2.rb
Created November 7, 2012 21:36
Flying the Parrot AR Drone via Ruby code
# See a video of this at: http://www.youtube.com/watch?v=jlKt2Ed-Y04&feature=youtu.be
require 'ardrone'
drone = ARDrone::Drone.new
drone.start
drone.take_off
sleep 5
drone.turn_right(1.0)
@justinko
justinko / Plea.markdown
Created May 30, 2012 19:40
Am I doing it wrong?

Dear Rubyists,

I just lost a contract because of my code in a Rails project.

The specific code in question is related to a "posting a comment" feature. Here are the details:

In this project, "posting a comment" does not simply entail inserting a row into the database. It involves a procedure to yes, insert a row, but also detect its language, check for spam, send emails, and "share" it to Twitter and Facebook. I believe this algorithm should be encapsulated. I do not believe it belongs in a controller or a model. I do not believe Active Record callbacks should be used.

The "senior developer", whom is the stake holder's right hand man, said this:

@muhleder
muhleder / basicauth.js
Created May 13, 2012 09:56
Basic auth for Meteor
Meteor.startup(function() {
var require = __meteor_bootstrap__.require
var connect = require('connect')
__meteor_bootstrap__.app.use(connect.basicAuth('username', 'password'))
var basicAuth = __meteor_bootstrap__.app.stack.pop()
__meteor_bootstrap__.app.stack.unshift(basicAuth)
})
@brentertz
brentertz / erb2haml.txt
Created September 16, 2011 14:55
# Convert erb to haml on command line...
gem install hpricot
gem install ruby_parser
# Find and list erb templates to convert, but don't convert
find . -name '*erb' | xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/erb$/,"haml")}"}'
# Find and convert erb to haml, (won't delete your erb)
find . -name '*erb' | xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/erb$/,"haml")}"}' | bash