Skip to content

Instantly share code, notes, and snippets.

View hvgirish's full-sized avatar

Girish Hemmige Venkatappa hvgirish

View GitHub Profile
@kislayverma
kislayverma / steve-yegge-google-platform-rant.md
Created December 26, 2019 07:11
A copy (for posterity) of Steve Yegge's internal memo in Google about what platforms are and how Amazon learnt to build them

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 really have SREs and they make engineers pretty much do everything,

#0 yaSSL::SSL::GetError (this=this@entry=0x56295bf4df70)
at /export/home/pb2/build/sb_0-32013917-1545389775.79/release/mysql-5.7.25/extra/yassl/src/yassl_int.cpp:1520
#1 0x00007f48640aa5db in yaSSL::receiveData (ssl=..., data=...,
peek=peek@entry=false)
at /export/home/pb2/build/sb_0-32013917-1545389775.79/release/mysql-5.7.25/extra/yassl/src/handshake.cpp:1047
#2 0x00007f48640901ed in yaSSL::yaSSL_read (ssl=ssl@entry=0x56295bf4df70,
buffer=buffer@entry=0x56295bf500f0, sz=sz@entry=4)
at /export/home/pb2/build/sb_0-32013917-1545389775.79/release/mysql-5.7.25/extra/yassl/src/ssl.cpp:363
#3 0x00007f4864069987 in vio_ssl_read (vio=0x56295bf49590,
buf=0x56295bf500f0 "r", size=<optimized out>)
@benstopford
benstopford / KafkaMostBasicTest
Last active October 20, 2021 19:47
Kafka Testing at its Most Simple
package com.confluent.benstopford;
import kafka.consumer.*;
import kafka.javaapi.consumer.ConsumerConnector;
import kafka.message.MessageAndMetadata;
import kafka.serializer.StringDecoder;
import kafka.server.KafkaConfig;
import kafka.server.KafkaServerStartable;
import org.apache.curator.test.TestingServer;
import org.apache.kafka.clients.producer.KafkaProducer;
riak_core_util:rpc_every_member_ann(application, set_env, [riak_kv, anti_entropy_build_limit, {1, 86400000}], 5000).
riak_core_util:rpc_every_member_ann(application, set_env, [riak_kv, anti_entropy_concurrency, 1], 5000).
riak_core_util:rpc_every_member_ann(application, set_env, [riak_kv, anti_entropy_expire, 2419200000], 5000).
@clemensg
clemensg / etc_sysctl.conf
Created February 5, 2014 16:50
My FreeBSD /etc/sysctl.conf
# /etc/sysctl.conf
# Clemens Gruber, 2014
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
security.bsd.see_other_uids=0
## I/O
@mongolab-org
mongolab-org / watch-flip-flop.py
Last active August 5, 2016 23:05
check out http://mongolab.org/flip-flop/ for a more detailed explanation
#!/usr/bin/env python
# Written with pymongo-3.3
author__ = 'mongolab' \
import pymongo
import sys, datetime, time
import random
@raggi
raggi / validate_local_cache.sh
Last active December 11, 2015 23:39
A script to validate your local gem cache against the public s3 repositories. If you find mismatches that contain both local and remote values, please post them in comments.
#!/usr/bin/env sh
if ! which md5sum > /dev/null; then
echo Install md5sum
exit 1
fi
if ! which curl > /dev/null; then
echo Install curl
exit 1
@KartikTalwar
KartikTalwar / Documentation.md
Last active February 28, 2025 10:57
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@kgriffs
kgriffs / sysctl.conf
Last active March 21, 2025 04:08
Linux Web Server Kernel Tuning
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for
# an explanation about some of these parameters, and instructions for
# a few other tweaks outside this file.
#
# See also: https://gist.github.com/kgriffs/4027835
#
# Assumes a beefy machine with lots of network bandwidth
[65926] 07 Jul 20:59:47.815 * +SLAVE New slave for master mymaster attached: 127.0.0.1:6380
[65926] 07 Jul 20:59:53.994 * +SENTINEL added for master mymaster (127.0.0.1:6379) with runid 9e9854b802195e9fc76e1bfdd77b50c96dcfac14 running at 127.0.0.1:26380
[65926] 07 Jul 21:00:00.305 * +SDOWN master mymaster (127.0.0.1:6379) is subjectively down
[65926] 07 Jul 21:00:00.521 * +ODOWN master mymaster (127.0.0.1:6379) is objectively down (quorum 2/2)
[65926] 07 Jul 21:00:00.521 # +FAILOVER-START of mymaster (127.0.0.1:6379), I'm the elected leader