Skip to content

Instantly share code, notes, and snippets.

John Plummer JohnPlummer

Block or report user

Report or block JohnPlummer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FilezillaDefaults.xml
<Setting name="Config Location">/Users/[Username]/Dropbox/Config/Preferences/filezilla/</Setting>
<Setting name="Kiosk mode">0</Setting>
<Setting name="Disable update check">0</Setting>
View email.html
<script type="text/javascript">
// <![CDATA[
"<n uers="znvygb:anzr@qbznva.pbz">".replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));
// ]]>
<span style="unicode-bidi:bidi-override; direction: rtl">moc.niamod@eman</span>
View mute_startup_chime.txt
# mute startup chime
sudo nvram SystemAudioVolume=%80
# reenable startup chime.
sudo nvram -d SystemAudioVolume
JohnPlummer / reboot.txt
Created Jun 14, 2014
Cron job to reboot the system at 3:35am
View reboot.txt
sudo crontab -e
30 3 * * * /sbin/shutdown -r +5 "About to reboot!"
JohnPlummer / lock_osx.txt
Last active Aug 29, 2015
Lock OSX (but keep the account logged in.)
View lock_osx.txt
/System/Library/CoreServices/Menu\ Extras/ -suspend
View Hello-2.scala
class HelloSbt {
def sayHello() = ""
View Heroku user_env_compile
heroku plugins:install
heroku labs:enable user_env_compile -a myapp
JohnPlummer / error
Created Feb 14, 2012
Heroku and gemfile conditions
View error
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
You have deleted from the Gemfile:
* rb-fsevent
! Failed to install gems via Bundler.
! Heroku push rejected, failed to compile Ruby/rails app
JohnPlummer / call_partial_1.rb
Created Jan 31, 2012
Optional Parameters in View Partials
View call_partial_1.rb
render 'shared/events_table', events: @events, title: 'Your Events'
JohnPlummer / .Gemfile
Created Dec 13, 2011
Rails 3.1 on Heroku, TLDR Version
View .Gemfile
source ''
gem 'rails', '3.1.1'
gem 'thin'
gem 'pg'
# Gems used only for assets and not required
# in production environments by default.
You can’t perform that action at this time.