Skip to content

Instantly share code, notes, and snippets.

Stephen Puiszis stephen-puiszis

Block or report user

Report or block stephen-puiszis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

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 real

View money_rails_5_issue.rb
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
gemfile(true) do
source ''
gem 'activerecord', ''
View capture3_with_timeout.rb
# encoding: utf-8
require "timeout"
# Capture the standard output and the standard error of a command.
# Almost same as Open3.capture3 method except for timeout handling and return value.
# See Open3.capture3.
# result = capture3_with_timeout([env,] cmd... [, opts])

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$" "$extension_id%26uc" 
unzip -d "$extension_id-source" "$"

Thx to crxviewer for the magic download URL.

layout title permalink
The Side Project Marketing Checklist


Market Research

stephen-puiszis / install-comodo-ssl-cert-for-nginx.rst
Created Dec 7, 2016 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

stephen-puiszis / gist:793a62b3ed2cc014bace4e4cd67fc3b4
Last active Oct 12, 2016
install gzipped tars on a remote linux server
View gist:793a62b3ed2cc014bace4e4cd67fc3b4
wget http:/url-to-tar/jpegotpim-1.4.4.tar.gz
zcat jpegoptim-1.4.4.tar.gz | tar xf -
cd jpegoptim-1.4.4
make strip
make install
stephen-puiszis / rails_helper.rb
Last active Jun 2, 2016
Automatically take full page screenshots of failed Capybara test failures in RSpec 3
View rails_helper.rb
# rails_helper.rb
RSpec.configure do |config|
# other config
config.after(:each, js: true) do |example|
if example.exception
meta = example.metadata
name = "test-failure-#{File.basename(meta[:file_path])}-#{meta[:line_number]}.png"
stephen-puiszis /
Created May 11, 2016 — forked from ChuckJHardy/
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

Create a Droplet

SSH into Root

$ ssh root@

Change Root Password

stephen-puiszis / git-cleanup
Created Feb 25, 2016
Delete Local Git Branches that have been merged into develop
View git-cleanup
git branch --merged develop | grep -v '\* develop' | xargs -n 1 git branch -d
You can’t perform that action at this time.