Skip to content

Instantly share code, notes, and snippets.

View davidraleigh's full-sized avatar

David Raleigh davidraleigh

View GitHub Profile
|| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
|| CALL YOUR |
(\__/) || MOM |
(•ㅅ•) ||__________|
/   づ ||

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

@davidraleigh
davidraleigh / teamcity-agent.service
Created December 6, 2018 16:23 — forked from elmariofredo/teamcity-agent.service
systemd service files for running TeamCity (create in /usr/lib/systemd/system)
[Unit]
Description=TeamCity Build Agent
After=network.target
[Service]
Type=forking
RemainAfterExit=yes
PIDFile=/opt/tc01/logs/buildAgent.pid
Environment="JAVA_HOME=/usr/java/latest"
ExecStart=/opt/tc01/bin/agent.sh start
@davidraleigh
davidraleigh / gdal_ecw.sh
Created November 19, 2018 13:31 — forked from 1papaya/gdal_ecw.sh
Install GDAL 2.3 with ECW support on Ubuntu 18.04
#!/bin/bash
##
## Tested on: Ubuntu 18.04 & ECW 5.4 & GDAL 2.3.1
##
## Download the ERDAS ECW JP2 SDK v5.4 Linux
## https://download.hexagongeospatial.com/downloads/ecw/erdas-ecw-jp2-sdk-v5-4-linux
## Download GDAL v2.3 Source (ex. 2.3.1)
@davidraleigh
davidraleigh / merge_junit_results.py
Created August 18, 2018 17:39 — forked from cgoldberg/merge_junit_results.py
Merge multiple JUnit XML results files into a single results file.
#!/usr/bin/env python
#
# Corey Goldberg, Dec 2012
#
import os
import sys
import xml.etree.ElementTree as ET
@davidraleigh
davidraleigh / JavaGRPCssl.md
Created February 19, 2018 23:53
how to run java grpc with ssl and not have failures

And just for proof that the certificates aren't the problem here's an example of the same exact certificate working with Java:

FROM openjdk:8-jdk

WORKDIR /opt

RUN git clone https://github.com/EchoParkLabs/grpc-java.git --branch lets-e --depth 1

WORKDIR /opt/grpc-java/examples
@davidraleigh
davidraleigh / Dockerfile
Created February 17, 2018 01:09
test for grpc WRONG_VERSION_NUMBER error
FROM python:2.7
RUN pip install grpcio
RUN pip install grpcio-tools
WORKDIR /opt
RUN git clone https://github.com/EchoParkLabs/grpc.git --branch wrong-version-number --depth 1
WORKDIR /opt/grpc/examples/python/route_guide
@davidraleigh
davidraleigh / Dockerfile
Last active June 29, 2017 17:38
Debug Docker Container remotely
FROM test-image
# install supervisor just in case it isn't already installed
RUN apt-get update && apt-get install -y openssh-server supervisor
ADD *.conf /etc/supervisor/conf.d/
RUN mkdir -p /var/run/sshd /var/log/supervisor
ADD ./google_compute_engine.pub ./
@davidraleigh
davidraleigh / DarkThemeVS2012.dvtcolortheme
Created January 31, 2015 20:54
Font and Color themes for xcode. Theme impersonates visual studio's dark theme.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.052 0.489 0.482 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.432 0.325 0.276 1</string>