Skip to content

Instantly share code, notes, and snippets.

View Nsttt's full-sized avatar
🪐

Néstor Nsttt

🪐
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

@Nsttt
Nsttt / strictSchema.ts
Last active August 17, 2022 18:10
Zod strict schema custom type
import { ZodSchema, ZodTypeDef } from "zod";
export type Exact<T, U> = [T, U] extends [U, T] ? true : false;
const StrictSchema: <I, O = I>() => <UO, UI = UO>(
u: Exact<
ZodSchema<O, ZodTypeDef, I>,
ZodSchema<UO, ZodTypeDef, UI>
> extends true
? Exact<Required<O>, Required<UO>> extends true
@Nsttt
Nsttt / vpn.md
Created February 6, 2021 11:44 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@Nsttt
Nsttt / api_to_file.js
Created August 20, 2020 10:51
Node Json API Call and save to local file.
const https = require("https");
const fs = require("fs");
let URL = "https://www.reddit.com/r/about.json";
https
.get(URL, (res) => {
let body = "";
res.on("data", (chunk) => {