Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View stephen-puiszis's full-sized avatar

Stephen Puiszis stephen-puiszis

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

begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'activerecord', '5.0.0.1'
@stephen-puiszis
stephen-puiszis / capture3_with_timeout.rb
Created January 24, 2018 03:39 — forked from pasela/capture3_with_timeout.rb
[ruby] capture3_with_timeout
# 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.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

layout title permalink
checklist\_page
The Side Project Marketing Checklist
/marketing-checklist/

Pre-Launch

Market Research

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

Setting up a SSL Cert from Comodo

I use Namecheap.com 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
stephen-puiszis / gist:793a62b3ed2cc014bace4e4cd67fc3b4
Last active October 12, 2016 00:49
install gzipped tars on a remote linux server
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
./configure
make
make strip
make install
@stephen-puiszis
stephen-puiszis / rails_helper.rb
Last active June 2, 2016 22:34
Automatically take full page screenshots of failed Capybara test failures in RSpec 3
# 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
stephen-puiszis / digital_ocean_setup.md
Created May 11, 2016 02:00 — forked from ChuckJHardy/digital_ocean_setup.md
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

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

@stephen-puiszis
stephen-puiszis / git-cleanup
Created February 25, 2016 17:28
Delete Local Git Branches that have been merged into develop
git branch --merged develop | grep -v '\* develop' | xargs -n 1 git branch -d