Skip to content

Instantly share code, notes, and snippets.

Avatar

Jared Beck jaredbeck

View GitHub Profile
View gist:dd701be841309e11a54a
PID/THRD SYSCALL(args) = return
18235/0x163c3b: execve("/Users/jared/bin/bash\0", 0x7FFF5310DBA8, 0x7FFF5310DBC8) = -1 Err#2
18235/0x163c3b: execve("/usr/local/bin/bash\0", 0x7FFF5310DBA8, 0x7FFF5310DBC8) = -1 Err#2
18235/0x163c3b: execve("/Users/jared/.rbenv/shims/bash\0", 0x7FFF5310DBA8, 0x7FFF5310DBC8) = -1 Err#2
18235/0x163c3b: execve("/Users/jared/.rbenv/bin/bash\0", 0x7FFF5310DBA8, 0x7FFF5310DBC8) = -1 Err#2
18235/0x163c3b: execve("/usr/local/heroku/bin/bash\0", 0x7FFF5310DBA8, 0x7FFF5310DBC8) = -1 Err#2
18235/0x163c3b: execve("/usr/bin/bash\0", 0x7FFF5310DBA8, 0x7FFF5310DBC8) = -1 Err#2
18235/0x163c3b: thread_selfid(0x0, 0x1DC0, 0x7FFF671FD550) = 1457211 0
18235/0x163c3b: csops(0x0, 0x0, 0x7FFF5310D294) = 0 0
18235/0x163c3b: issetugid(0x0, 0x0, 0x0) = 0 0
View gist:58420c1daaa870869619
Loading development environment (Rails 4.2.3)
irb(main):001:0> s = Subgroup.create!(name: "sub")
(0.1ms) begin transaction
SQL (0.3ms) INSERT INTO "subgroups" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "sub"], ["created_at", "2015-07-27 20:23:35.477973"], ["updated_at", "2015-07-27 20:23:35.477973"]]
SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2015-07-27 20:23:35.477973"], ["item_id", 1], ["item_type", "Subgroup"]]
SQL (0.3ms) UPDATE "versions" SET "transaction_id" = ? WHERE "versions"."id" = ? [["transaction_id", 1], ["id", 1]]
(2.3ms) commit transaction
=> #<Subgroup id: 1, name: "sub", created_at: "2015-07-27 20:23:35", updated_at: "2015-07-27 20:23:35">
irb(main):002:0> f = Faq.create!(name: "faq", subgroups: [s])
(0.1ms) begin transaction
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
@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 */ } }
View gist:2409007
-a:link {
- color: #36C;
-}
-a:visited {
- color: #36C;
-}
+a {
+ &:link, &:visited {
+ color: #36C; } }
@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: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