Skip to content

Instantly share code, notes, and snippets.

@yish91
yish91 / changestreamwatcher.go
Created February 6, 2020 12:34
Change Stream Watcher in Go
package main
import (
"context"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
"log"
"strings"
@yish91
yish91 / config.toml
Created March 12, 2020 08:18
Autoscaler Runner Config
concurrent = 10
check_interval = 0
[[runners]]
name = "gitlab-aws-autoscaler"
url = "https://gitlab.com/"
token = "<INSERT GITLAB_AUTH_TOKEN HERE>"
executor = "docker+machine"
limit = 20
environment = ["DOCKER_TLS_CERTDIR="]
@yish91
yish91 / mac.md
Last active June 17, 2020 02:13
Setting up your mac for the first time

Setting Up Macbook

Applications

  • iTerm2 - If you want to customise your terminal
  • BetterTouchTool - Actually makes your touchbar useful
  • Rambox - Puts all your chat apps and emails into one convenient place
  • IntelliJ - IDE of choice
  • VSCode - If you don't want an IDE but still want to get shit done
  • Sublime Text - Better than Notes
alias "+jumpthrow" "+jump;-attack"
alias "-jumpthrow" "-jump"
bind "alt" "+jumpthrow"
cl_radar_always_centered "0"
cl_radar_scale "0.4"
cl_hud_radar_scale "1.15"
cl_radar_icon_scale_min "1"
cl_radar_rotate "1"
cl_radar_square_with_scoreboard "1"