Skip to content

Instantly share code, notes, and snippets.

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
@jaredbeck
jaredbeck / gist:58420c1daaa870869619
Created July 27, 2015 20:33
paper_trail issue 572
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
@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: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: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: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: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