Skip to content

Instantly share code, notes, and snippets.

View zoidyzoidzoid's full-sized avatar
🌈
Be the change you wanna see in the world!

Zoid zoidyzoidzoid

🌈
Be the change you wanna see in the world!
View GitHub Profile
Dart-Code.dart-code
DavidAnson.vscode-markdownlint
EFanZh.graphviz-preview
EditorConfig.EditorConfig
HookyQR.beautify
JakeBecker.elixir-ls
Pendrica.chef
PeterJausovec.vscode-docker
Shan.code-settings-sync
Stephanvs.dot
#!/usr/bin/env python
# Some code borrowed from yapcg/measurements/perftools/udpstat at https://code.google.com/archive/p/yapcg/source/default/source?page=1
#
# man proc
# /proc/net/udp
# Holds a dump of the UDP socket table. Much of the information is not of use apart from debugging. The "sl" value is
# the kernel hash slot for the socket, the "local_address" is the local address and port number pair. The
# "rem_address" is the remote address and port number pair (if connected). "St" is the internal status of the socket.
# The "tx_queue" and "rx_queue" are the outgoing and incoming data queue in terms of kernel memory usage. The "tr",
# "tm->when", and "rexmits" fields are not used by UDP. The "uid" field holds the effective UID of the creator of the
#!/usr/bin/env bash
set -eu
PROJECT_ID="${1:-}"
if [[ -z $PROJECT_ID ]]; then
echo "Project ID not set"
echo
echo "Try ./create-service-account.sh zoidbergwill-testing"
exit 1
fi
#!/usr/bin/env python
import os
REQUIRED = {
"CONFIG_BPF": "y",
"CONFIG_BPF_SYSCALL": "y"
}
OPTIONAL = {
#!/usr/bin/env bash
set -e
for full_name in $(kubectl get all -o name | grep -vE replicaset\|pod); do
name="$(echo "$full_name" | sed -e "s/.*\///g")";
type="$(echo "$full_name" | sed -e "s/\/.*//g")";
case "${type}" in
deployment*)
type=Deployment
;;
"service")
@zoidyzoidzoid
zoidyzoidzoid / brew-perms.sh
Created March 27, 2018 22:37 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local/*
chmod -R g+w /usr/local/*
Hi Simon
@zoidyzoidzoid
zoidyzoidzoid / DevOpsDaysCPT-Open-Spaces-2017.md
Last active November 6, 2017 14:56
DevOpsDaysCPT Open Spaces 2017

DevOpsDays Cape Town 2017

Site

2017/09/11 10:38:06 Loading g2-vs-north-map1-inferno.dem
2017/09/11 10:38:06 Parsing demo header
2017/09/11 10:38:06 Parsing to end
RoundAnnounceMatchStartedEvent was fired
2017/09/11 10:38:16 Took 9.925972917s
2017/09/11 10:38:16 Writing g2-vs-north-map1-inferno.dem.json
2017/09/11 10:37:52 Loading g2-vs-north-map2-cbble.dem
2017/09/11 10:37:52 Parsing demo header
2017/09/11 10:37:52 Parsing to end
This file has been truncated, but you can view the full file.
{
"id": "de_mirage_6879394198654196251488945051309360780",
"name": "astralis-vs-natusvincere-map1-mirage.dem",
"date": "2017-03-08T03:50:51-08:00",
"source": "ebot",
"comment": "",
"status": "None",
"client_name": "GOTV Demo",
"hostname": "eBot :: Astralis vs Natus Vincere",
"type": "GOTV",