Skip to content

Instantly share code, notes, and snippets.

@anubsinha
anubsinha / Grow classes
Created April 2, 2021 23:10 — forked from eiais/Grow classes
list of classes i took at google
ABCs of T-V-Cs: Archived
American Sign Language (ASL)
Angular (2+) TypeScript in google3: 101
C++11 (self study)
Eastside Welcome Wagon Tour
Effective CLI at Google
Elliptic Curves as Mathematical Objects
GSUs and Mobility
GTI: Building a Planet Scale Computer Part I
GTI: Building a Planet Scale Computer Part II
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anubsinha
anubsinha / config.yaml
Created October 31, 2018 10:24
config map ingestor
resource "kubernetes_config_map" "ingestor" {
depends_on = ["kubernetes_config_map.aws_auth"]
metadata {
name = "fqe-ingestor-config"
namespace = "default"
}
data {
config.cfg = <<CONFIG
@anubsinha
anubsinha / config.yaml
Created October 31, 2018 08:24
configmap for api
apiVersion: v1
data:
API_HOST: 0.0.0.0
API_PORT: "5000"
DB_ENGINE: postgresql+psycopg2
DB_HOST: factcheck-index-public-dev
DB_NAME: fmindex
DB_PASS: a000d4d1f8605a57
DB_PORT: "5432"
DB_USER: root
@anubsinha
anubsinha / rmq.txt
Last active October 30, 2018 14:53
factmata RMQ channels, queues, vhosts and user accounts
user accounts
distributor -> will have access to celery, fmindex, pre-score vhosts
fmindex-writer -> will have access to fmindex vhost
ingestor -> will have access to ingestor-in, pre-score vhost
vhosts
celery, fmindex, ingestor-in, pre-score
queues
ingestor-in (vhost: ingestor-in), pre-score (vhost: pre-score), fmindex-writer (vhost: fmindex) and the celery queues
@anubsinha
anubsinha / rqm-logs.txt
Created October 27, 2018 22:51
RMQ DNS issue
2018-10-27 22:04:19.363 [info] <0.33.0> Application lager started on node 'rabbit@rabbit-rabbitmq-ha-0.rabbit-rabbitmq-ha-discovery.default.svc.cluster.local'
2018-10-27 22:04:19.791 [info] <0.33.0> Application crypto started on node 'rabbit@rabbit-rabbitmq-ha-0.rabbit-rabbitmq-ha-discovery.default.svc.cluster.local'
2018-10-27 22:04:19.792 [info] <0.33.0> Application xmerl started on node 'rabbit@rabbit-rabbitmq-ha-0.rabbit-rabbitmq-ha-discovery.default.svc.cluster.local'
2018-10-27 22:04:19.943 [info] <0.33.0> Application mnesia started on node 'rabbit@rabbit-rabbitmq-ha-0.rabbit-rabbitmq-ha-discovery.default.svc.cluster.local'
2018-10-27 22:04:19.943 [info] <0.33.0> Application cowlib started on node 'rabbit@rabbit-rabbitmq-ha-0.rabbit-rabbitmq-ha-discovery.default.svc.cluster.local'
2018-10-27 22:04:19.944 [info] <0.33.0> Application amqp10_common started on node 'rabbit@rabbit-rabbitmq-ha-0.rabbit-rabbitmq-ha-discovery.default.svc.cluster.local'
2018-10-27 22:04:19.944 [info] <0.33.0> Application recon s
@anubsinha
anubsinha / git.sh
Created June 17, 2018 08:52
Rollback a directory to an old commit id
git checkout e095 -- somefolder
@anubsinha
anubsinha / prepositions.json
Last active December 1, 2025 11:33
List of prepositions from the English language
[
"a",
"abaft",
"aboard",
"about",
"above",
"absent",
"across",
"afore",
"after",
@anubsinha
anubsinha / git.sh
Last active June 10, 2018 12:16
utility commands for git, github and bitbucket
# create a new repo from the cli
git init
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
git remote add origin https://github.com/USER/REPO.git
@anubsinha
anubsinha / spotlight.sh
Created June 2, 2018 02:29
How to stop indexing in spotlight and restart it.
sudo mdutil -a -i off # helps when spotlight is eating up too much cpu
sudo mdutil -a -i on # use this to restart indexing if you ever want it back