Skip to content

Instantly share code, notes, and snippets.

@so0k
so0k / README.md
Last active March 29, 2024 13:00 — forked from jpsilvashy/README.md
Post Google Sheets form entries to Slack

Post Google Sheets form entries to Slack

By using Google Form's script editor, you can call Slack webhooks when form submissions are made. You can use this script to do things like creating a live feedback form for taking questions from an audience or notifying your team when someone signs up for an event.

Setup

First, be sure you're collecting the email address in the form:

'img'

@so0k
so0k / kubectl.md
Last active March 22, 2024 13:03
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@so0k
so0k / gist:cdd24d0a4ad92014a1bc
Last active March 4, 2024 14:17
droplet discovery over digitalocean private networks

Digital Ocean recently released private networking support in their NYC2 Data center.

They also published a blog post on how to setup a new droplet with private networking. But one thing the post doesn't do is tell you how to scale your private network for many boxes. One approach is obviously to edit /etc/hosts (but this gets annoying when you add a new box). A better way is to create an internal DNS zone (via the digital ocean web interface) and have your droplets use it:

Steps

setup the internal DNS zone file

  1. Login to digital ocean
  2. Click "DNS" on the right hand menu
@so0k
so0k / billing-budgets-cloudwatch.tf
Last active January 5, 2024 11:02
Swatmobile - AWS Bootstrap gists
resource "aws_budgets_budget" "cloudwatch" {
provider = "aws.billing"
name = "budget-cloudwatch-monthly"
budget_type = "COST"
limit_amount = "1000"
limit_unit = "USD"
time_period_end = "2087-06-15_00:00"
time_period_start = "2017-07-01_00:00"
time_unit = "MONTHLY"
@so0k
so0k / alpine-curl.md
Created March 1, 2018 03:00
Alpine curl issues

To fix /usr/bin/curl: curl_mime_type: symbol not found Errors when trying to run curl in a running alpine pod.

Right solution: Update base alpine image because this is a bigger issue

Quick fix: run Alpine system upgrade (or upgrade libcurl package specifically):

apk update
apk upgrade
@so0k
so0k / gist:7505931
Created November 16, 2013 22:02
BotProfile.db
//----------------------------------------------------------------------------
// BotProfile.db
// Author: Michael S. Booth, Turtle Rock Studios (www.turtlerockstudios.com)
// Elite bot edits by WaLLy3K 9/09/13 - additional customization by iGame.vn
//
// This database defines bot "personalities".
// Feel free to edit it and define your own bots.
//
@so0k
so0k / README.md
Last active August 7, 2023 06:16
Alpine-shell

Getting an Alpine shell

Often usefull for in-cluster debugging.

$ kubectl run --generator=run-pod/v1 --image=alpine:3.5 -it alpine-shell -- /bin/sh

detach (without killing the container):

@so0k
so0k / so0k.cfg
Last active April 22, 2023 14:17
csgo-2023
cfgver "1"
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "9" "slot9"
bind "a" "+duck"
@so0k
so0k / gist:7446931
Last active March 16, 2023 09:42
srcds boost
#!/bin/sh
### srcds_boost.sh, r3 - http://forums.srcds.com/viewtopic/17440
# add isolcpus to grub & disable irqbalance service
# ref: https://access.redhat.com/site/solutions/15482
### ensure sda IO scheduler is CFQ if available
### don't set ionice if not, test with (assuming srcds is on sda)
# grep cfq /sys/block/sda/queue/scheduler
### expected output:
@so0k
so0k / kuLas.cfg
Last active February 19, 2021 06:53
csgo - 20210219
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"