Skip to content

Instantly share code, notes, and snippets.

View timup's full-sized avatar
🏴
Awesome. Awesome to the max.

Tim Upchurch timup

🏴
Awesome. Awesome to the max.
View GitHub Profile
@timup
timup / xscreensaver-suspend
Created March 6, 2023 16:29 — forked from mozbugbox/xscreensaver-suspend
Auto suspend Linux box with xscreensaver
#!/bin/bash
# suspend/sleep linux system on xscreensaver activation
#
# run the bash script in your .xsession,
# or something like .config/lxsession/LXDE/autostart for lxde
timeout=60 # After xscreensaver activated, wait timeout to suspend
read_timeout=5 # timeout for read from `xscreensaver-command -watch`
SUSPEND_BIN=/usr/sbin/pm-suspend
@timup
timup / _form.html.erb
Created June 20, 2018 14:47 — forked from kouheiszk/_form.html.erb
simple_form.rb for semantic ui
<%= f.input :email,
wrapper: :semantic_icon_input,
label: false,
required: true,
placeholder: t('users.form.placeholder.email'),
left_icon: 'user' %>
@timup
timup / about_hmt_relationship.md
Last active May 3, 2016 20:13 — forked from arelenglish/about.md
A simple Gist showing how to add students to courses through an enrollments table with a collection select.

To generate this project, do the following on the command line:

rails generate scaffold student name:string

rails generate scaffold course name:string

rails generate model enrollment student_id:integer course_id:integer

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't really have SREs and they make en