Skip to content

Instantly share code, notes, and snippets.

@netineti0
netineti0 / list.md
Created January 12, 2023 15:01 — forked from ih2502mk/list.md
Quantopian Lectures Saved

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

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
public class Circle extends View {
@netineti0
netineti0 / java-appengine.sh
Created February 18, 2020 13:53
java App engine setup
# Install gcloud
https://cloud.google.com/sdk/docs/downloads-apt-get
# install java app engine SDK
gcloud components install app-engine-java
# generate skelton app engine java project
mvn archetype:generate -Dappengine-version=1.9.78 -Djava8=true -DCloudSDK_Tooling=false -Dapplication-id=your-app-id -Dfilter=com.google.appengine.archetypes:
su
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /mnt/sdcard/Download/ubuntu-13.10.LARGE.ext4.img
@netineti0
netineti0 / Strict-Transport-Security header
Created August 22, 2019 14:25
Strict-Transport-Security header
https://jvns.ca/blog/2017/04/30/using-strict-transport-security/
@netineti0
netineti0 / dropwizard redirect http to https
Last active August 22, 2019 13:45
dropwizard redirect http to https
package com.github.bernd.dropreact;
import com.github.bernd.dropreact.resources.SystemInfo;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@netineti0
netineti0 / SSL
Last active September 9, 2019 09:21
SSL dropwizard setup
https://nbsoftsolutions.com/blog/dropwizard-1-1-and-lets-encrypt-with-no-downtime
#!/bin/bash
HOSTNAME=www.example.com
HOST_ALIAS=`echo ${HOSTNAME} | sed "s/\./_/g"`
CERT_DIR=/etc/letsencrypt/live/${HOSTNAME}
P12_PASSWORD=my-p12-password
KEYSTORE_PASSWORD=my-keystore-password
KEYSTORE_FILE=my-keystore
@netineti0
netineti0 / xml
Created August 21, 2019 10:27
dropwizard + react config
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<prerequisites>
<maven>3.0.0</maven>
</prerequisites>