Skip to content

Instantly share code, notes, and snippets.

Avatar

Jared Beck jaredbeck

View GitHub Profile
View com.gocongress.backup.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>
View refactor_font_sizes.css
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 Mar 20, 2012
brew ls --unbrewed
View gist:2130728
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
View gist:2409007
-a:link {
- color: #36C;
-}
-a:visited {
- color: #36C;
-}
+a {
+ &:link, &:visited {
+ color: #36C; } }
@jaredbeck
jaredbeck / gist:2409011
Created Apr 17, 2012
sass-convert fail
View gist:2409011
-thead, thead th {
- vertical-align: bottom; /* derp */
-}
+thead {
+ vertical-align: bottom;
+ /* derp */
+ th {
+ vertical-align: bottom;
+ /* derp */ } }
@jaredbeck
jaredbeck / gist:2991733
Created Jun 25, 2012
Someone turned off autovacuum
View gist:2991733
[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 Jul 20, 2012
Disable rspec verbosity
View gist:3148368
# 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 Sep 6, 2012
Upgrading ruby on ggchapters.org
View gist:3649592

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 Oct 2, 2012
Keeping server software up to date
View keeping_server_sw_up_to_date.md

Keeping Server Software Up To Date

The Stack

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

I heard you like Mountain Lions

Incompatibles