Skip to content

Instantly share code, notes, and snippets.

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 June 14, 2014 09:22
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 August 29, 2015 14:02
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 February 14, 2012 22:07
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 January 31, 2012 12:52
Optional Parameters in View Partials
View call_partial_1.rb
render 'shared/events_table', events: @events, title: 'Your Events'