Skip to content

Instantly share code, notes, and snippets.

View meowsus's full-sized avatar
⚰️
Feelin' Fine

Curt Howard meowsus

⚰️
Feelin' Fine
View GitHub Profile
# FIRST ATTEMPT
#!/bin/bash
AMPPS_DIR='/Applications/AMPPS/www'
sudo rm -f $AMPPS_DIR
sudo ln -s $1 $AMPPS_DIR
# SECOND ATTEMPT
#!/bin/bash
@meowsus
meowsus / gist:7651809
Created November 26, 2013 01:09
Refactor me plz
eventListener = function (widget) {
widget.$postalCode.one('focus', function () {
applyValidationRules(widget);
});
widget.$country.on('change', function () {
applyValidationRules(widget);
});
widget.$parentForm.on('submit', function () {
## sdtv_mode
## defines the TV standard for composite output
##
## Value Description
## -------------------------------------------------------------------------
## 0 Normal NTSC (Default)
## 1 Japanese version of NTSC - no pedestal
## 2 Normal PAL
## 3 Brazilian version of PAL - 525/60 rather than 625/50, different
## subcarrier
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.bundle.identifier"
versionCode="1"
version = "1.0">
<name>ProjectName</name>
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ bash --login
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ which bash
/bin/bash
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ bundle update
ERROR: Gem bundler is not installed, run `gem install bundler` first.
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ gem install bundler
Successfully installed bundler-1.3.5
1 gem installed
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ bundle update
ERROR: Gem bundler is not installed, run `gem install bundler` first.
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.