Skip to content

Instantly share code, notes, and snippets.

View cloudsben's full-sized avatar
🏠
Working from home

Ben cloudsben

🏠
Working from home
View GitHub Profile
@hjue
hjue / my_tmux
Last active December 16, 2015 17:41
my tmux shell
#!/bin/sh
#
cmd=$(which tmux)
session=hjue
if [ -z $cmd ]; then
echo "You need to install tmux."
exit 1
fi
@matsuda
matsuda / 1_install_homebrew.log
Last active December 29, 2015 05:39
log of setup Homebrew and install development tools in Marvericks
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press ENTER to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir /usr/local
WARNING: Improper use of the sudo command could lead to data loss
@thebucknerlife
thebucknerlife / authentication_with_bcrypt_in_rails_4.md
Last active March 12, 2025 18:03
Simple Authentication in Rail 4 Using Bcrypt

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

@Jasonbit
Jasonbit / gist:73f9b82d8e129b94146f
Last active August 29, 2015 14:05
Yosemite freetype and ImageMagick error fixer
There's bummer errors on installing ImageMagick on Yosemite (as I write this, I'm on DP5). Here's the errors and fixes at the terminal.
Homer: jason$ brew reinstall --debug freetype
/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/freetype.rb
==> Reinstalling freetype
/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/libpng.rb
Warning: freetype-2.5.3_1 already installed
Homer: jason$ ln -s /usr/local/Cellar/freetype/2.5.2 /usr/local/Cellar/freetype/2.5.3_1
@Juan931
Juan931 / ABC.md
Created May 6, 2021 00:45 — forked from jdnichollsc/ABC.md
The Job Interview Guide

The Job Interview Guide 💼

And English is a Work in Progress ⌛