Skip to content

Instantly share code, notes, and snippets.

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

@kamyar
kamyar / requirements.pip
Last active July 15, 2018 19:10
Train Notifier Challenge
aiohttp==3.3.2
# SSL issue with heroku
certifi==2018.4.16
# MacOS notifications
pync==2.0.3

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@kamyar
kamyar / killport.sh
Created August 12, 2016 12:55
kill processes listening on port
# Kill app listening on port given by $1
killport() {
kill $(lsof -t -i:$1)
}
alias killport=killport
inotifywait -m -r pts -e create -e moved_to |
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
# do something with the file
lftp 192.168.0.3 -e "mirror -R -v -P 3 --loop --continue --Remove-source-files pts/ shared/sync_h$
done
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<!-- Name as com.yourcompany.servicename.conf place under /etc/dbus-1/system.d/ -->
<busconfig>
<!-- Only user root can own the foo helper -->
<policy user="root">
<allow own="*"/>
</policy>
@kamyar
kamyar / .Improved Bash Prompt.md
Last active December 22, 2015 22:01
Command Prompt Improvement

something something

@kamyar
kamyar / opencvType.txt
Last active November 10, 2015 10:09
opencv type codes
#
# Retrieved from http://ninghang.blogspot.com.tr/2012/11/list-of-mat-type-in-opencv.html .
#
A Mapping of Type to Numbers in OpenCV
| C1 | C2 | C3 | C4
CV_8U | 0 | 8 | 16 | 24
CV_8S | 1 | 9 | 17 | 25
# Send & recv file:
nc -l -p 1234 > out.file
nc -w 3 [destination] 1234 < out.file
# rsync:
rsync -acvuzrt --remove-source-files <local_dir> <remote_uname>:<remote_pwd>@<remote_ip>:<remote_dir>
# find large files
sudo find / -name '*' -size +100M
@kamyar
kamyar / color.sh
Created October 12, 2015 09:10 — forked from m-seker/color.sh
Shell Output Formatting
RCol='\e[0m' # Text Reset
# Regular Bold Underline High Intensity BoldHigh Intens Background High Intensity Backgrounds
Bla='\e[0;30m'; BBla='\e[1;30m'; UBla='\e[4;30m'; IBla='\e[0;90m'; BIBla='\e[1;90m'; On_Bla='\e[40m'; On_IBla='\e[0;100m';
Red='\e[0;31m'; BRed='\e[1;31m'; URed='\e[4;31m'; IRed='\e[0;91m'; BIRed='\e[1;91m'; On_Red='\e[41m'; On_IRed='\e[0;101m';
Gre='\e[0;32m'; BGre='\e[1;32m'; UGre='\e[4;32m'; IGre='\e[0;92m'; BIGre='\e[1;92m'; On_Gre='\e[42m'; On_IGre='\e[0;102m';
Yel='\e[0;33m'; BYel='\e[1;33m'; UYel='\e[4;33m'; IYel='\e[0;93m'; BIYel='\e[1;93m'; On_Yel='\e[43m'; On_IYel='\e[0;103m';
Blu='\e[0;34m'; BBlu='\e[1;34m'; UBlu='\e[4;34m'; IBlu='\e[0;94m'; BIBlu='\e[1;94m'; On_Blu='\e[44m'; On_IBlu='\e[0;104m';
Pur='\e[0;35m'; BPur='\e[1;35m'; UPur='\e[4;35m'; IPur='\e[0;95m'; BIPur='\e[1;95m'; On_Pur='\e[45m'; On_IPur='\e[0;105m';
C