Skip to content

Instantly share code, notes, and snippets.

View 20111011_SteveYeggeGooglePlatformRant.md

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 gist:516ba353c1933afaeef6874a7efef02e
#!/bin/bash
ps aux|grep chromium-browser|grep -v grep
is_chromium_not_running=$?
if [ ${is_chromium_not_running} -eq 1 ]
then
chromium-browser --start-fullscreen "https://grabpay.atlassian.net/plugins/servlet/Wallboard/?dashboardId=10113" &>/dev/null &
fi
View gist:70024717bb40019ec0f3d58582d70599
With /etc/hosts pointing to 18.205.93.0 , 18.205.93.1 and 18.205.93.2 in that order
mouthwash :~/tmp\>echo | openssl s_client -showcerts -servername gnupg.org -connect bitbucket.org:443 2>/dev/null | openssl x509 -inform pem -noout -text
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
0a:7e:ec:9b:39:52:f1:7e:2f:67:16:55:7a:6f:52:7d
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert SHA2 Extended Validation Server CA
View gist:fb5a274611e63cf484346466acfa97cb
git pull -vvv
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:wezjvpBxKKg7bKiQ3YStGkNRWONvYAxPHv5zAvNqnLs.
Please contact your system administrator.
@anshprat
anshprat / gist:517d1420198c67001738ffa02f86ec01
Created Jun 6, 2018
unbale to connect to 1.1.1.1 w/ either libressl or openssl
View gist:517d1420198c67001738ffa02f86ec01
mouthwash :~/tmp\>curl -vvv https://1.1.1.1
* Rebuilt URL to: https://1.1.1.1/
* Trying 1.1.1.1...
* TCP_NODELAY set
* Connected to 1.1.1.1 (1.1.1.1) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /usr/local/etc/openssl/cert.pem
CApath: /usr/local/etc/openssl/certs
View keybase.md

Keybase proof

I hereby claim:

  • I am anshprat on github.
  • I am anshu (https://keybase.io/anshu) on keybase.
  • I have a public key ASBMZklZ_Ng8tXwENWNUfAuUSWOsVonZP4EwFjguSKMzZQo

To claim this, I am signing this object:

View gist:20a5e7a29b3433415a3f24f5f6ba80a0
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
@anshprat
anshprat / known_hosts_autocomplete.sh
Created Jul 11, 2016 — forked from peelman/known_hosts_autocomplete.sh
Bash AutoComplete from known_hosts
View known_hosts_autocomplete.sh
# add to ~/.bash_profile, and close/reopen a shell. Will autocomplete any hosts found in known_hosts.
complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
View gist:4e6bc71bb7c567a5ef42dfe96f91f9cc
<?php
require_once('./vendor/autoload.php');
session_start();
$provider = new \ChrisHemmings\OAuth2\Client\Provider\Drupal([
'clientId' => 'clientid',
'clientSecret' => 'clientsecret',
'redirectUri' => 'https://local.sportscafe.in/m/index.php',
'baseUrl' => 'https://login01.sportscafe.in',
View gist:861426a00c3ca669014b723b6f2e986d
https://github.com/webpack/react-starter/blob/master/lib/server.js
Unable to communicate securely with peer: requested domain name does not match the server's certificate.
HTTP Strict Transport Security: true
HTTP Public Key Pinning: false
Certificate chain:
-----BEGIN CERTIFICATE-----