Skip to content

Instantly share code, notes, and snippets.

View FilezillaDefaults.xml
<FileZilla3>
<Settings>
<Setting name="Config Location">/Users/[Username]/Dropbox/Config/Preferences/filezilla/</Setting>
<Setting name="Kiosk mode">0</Setting>
<Setting name="Disable update check">0</Setting>
</Settings>
<Servers>
</Servers>
</FileZilla3>
View email.html
<p>
email:
<script type="text/javascript">
// <![CDATA[
document.write(
"<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);}));
// ]]>
</script>
<span style="unicode-bidi:bidi-override; direction: rtl">moc.niamod@eman</span>
</a>
View mute_startup_chime.txt
# mute startup chime
sudo nvram SystemAudioVolume=%80
# reenable startup chime.
sudo nvram -d SystemAudioVolume
@JohnPlummer
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
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/User.menu/Contents/Resources/CGSession -suspend
View Hello-2.scala
class HelloSbt {
def sayHello() = ""
}
View Heroku user_env_compile
heroku plugins:install https://github.com/heroku/heroku-labs.git
heroku labs:enable user_env_compile -a myapp
@JohnPlummer
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
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
JohnPlummer / .Gemfile
Created Dec 13, 2011
Rails 3.1 on Heroku, TLDR Version
View .Gemfile
source 'http://rubygems.org'
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.