Skip to content

Instantly share code, notes, and snippets.

@jaredbeck
jaredbeck / com.gocongress.backup.plist
Created May 1, 2011 22:07
Example of launchd plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" \
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Contains a unique string that identifies your daemon to launchd.
This key is required. -->
<key>Label</key>
<string>com.gocongress.backup</string>
@jaredbeck
jaredbeck / refactor_font_sizes.css
Created June 16, 2011 21:10
Refactoring font sizes
body { font-size: 63.125%; } /* translate 1.0em to 10px, 1.5em to 15px, etc. */
h1 { font-size: 20px; }
a, input, textarea { font-size: 12px; }
p { font-size: 1.2em; }
#centerColumn h2, #allAnnouncements h2, .announcementManagement h2 { font-size: 19px; }
#leftColumn h2, #rightColumn h2 { font-size: 12px; }
h2.box a#addProjBox { font-size: 11px; }
ul { font-size: 1.1em; }
h1 span#beta { font-size: 10px; }
#adminReports h3 { font-size: 1.1em; }
@jaredbeck
jaredbeck / gist:2130728
Created March 20, 2012 03:16
brew ls --unbrewed
apache2/bin/ab
apache2/bin/apachectl
apache2/bin/apr-1-config
apache2/bin/apu-1-config
apache2/bin/apxs
apache2/bin/checkgid
apache2/bin/dbmmanage
apache2/bin/envvars
apache2/bin/envvars-std
apache2/bin/htcacheclean
@jaredbeck
jaredbeck / gist:2409007
Created April 17, 2012 20:57
sass-convert win
-a:link {
- color: #36C;
-}
-a:visited {
- color: #36C;
-}
+a {
+ &:link, &:visited {
+ color: #36C; } }
@jaredbeck
jaredbeck / gist:2409011
Created April 17, 2012 20:58
sass-convert fail
-thead, thead th {
- vertical-align: bottom; /* derp */
-}
+thead {
+ vertical-align: bottom;
+ /* derp */
+ th {
+ vertical-align: bottom;
+ /* derp */ } }
@jaredbeck
jaredbeck / gist:2991733
Created June 25, 2012 22:19
Someone turned off autovacuum
[postgres@db1 data]$ diff postgresql.conf /usr/local/src/pf/config/postgres/db1/postgresql.conf
367c367
< #track_counts = on
---
> track_counts = on
386c386
< #autovacuum = on # Enable autovacuum subprocess? 'on'
---
> autovacuum = on # Enable autovacuum subprocess? 'on'
@jaredbeck
jaredbeck / gist:3148368
Created July 20, 2012 02:51
Disable rspec verbosity
# Turn off rspec verbosity, so that the
# resultant rspec command, and all the
# spec names, are not echoed to stdout.
# See http://bit.ly/MoOoB3 -Jared 2012-07-19
if defined? RSpec
task(:spec).clear
RSpec::Core::RakeTask.new(:spec) do |t|
t.verbose = false
end
end
@jaredbeck
jaredbeck / gist:3649592
Created September 6, 2012 01:23
Upgrading ruby on ggchapters.org

Trying to update ruby on ggchapters.org from 1.8.6 to 1.8.7

Jared Beck, 2012-09-05

  1. Couldn't deploy because bundler says: gem says: sass "requires ruby >= 1.8.7"

  2. Confirmed that production host was running 1.8.6

     $ dpkg --get-selections | grep ruby
    

ruby1.8 install

@jaredbeck
jaredbeck / keeping_server_sw_up_to_date.md
Created October 2, 2012 19:59
Keeping server software up to date

Keeping Server Software Up To Date

The Stack

  1. OS
  2. Managed Packages
  3. Unmanaged Packages
  4. Application Frameworks
@jaredbeck
jaredbeck / gist:3962196
Created October 26, 2012 23:34
I heard you like Mountain Lions

I heard you like Mountain Lions

Incompatibles