Skip to content

Instantly share code, notes, and snippets.

View yankcrime's full-sized avatar
🤠
┬──┬◡ノ(° -°ノ)

Nick Jones yankcrime

🤠
┬──┬◡ノ(° -°ノ)
View GitHub Profile
#!/usr/bin/env bash
kind create cluster --config ~/Temp/kind.yml
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
kubectl delete storageclass standard
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
kubectl annotate storageclass --overwrite local-path storageclass.kubernetes.io/is-default-class=true
// Place your key bindings in this file to override the defaults
[
{ "key": "cmd+1","command": "workbench.action.openEditorAtIndex1" },
{ "key": "cmd+2","command": "workbench.action.openEditorAtIndex2" },
{ "key": "cmd+3","command": "workbench.action.openEditorAtIndex3" },
{ "key": "cmd+4","command": "workbench.action.openEditorAtIndex4" },
{ "key": "cmd+5","command": "workbench.action.openEditorAtIndex5" },
{ "key": "cmd+6","command": "workbench.action.openEditorAtIndex6" },
{ "key": "cmd+7","command": "workbench.action.openEditorAtIndex7" },
{ "key": "cmd+8","command": "workbench.action.openEditorAtIndex8" },
@yankcrime
yankcrime / settings.json
Last active June 21, 2020 10:56
VSCode Linux
{
"explorer.openEditors.visible": 0,
"editor.fontFamily": "PragmataPro Mono",
"editor.minimap.enabled": false,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"window.zoomLevel": 0,
"window.titleBarStyle": "custom",
"workbench.activityBar.visible": true,
"workbench.iconTheme": "material-icon-theme",
{
"id": "/marathon-lb-kubernetes-cluster",
"instances": 1,
"cpus": 0.001,
"mem": 16,
"cmd": "tail -F /dev/null",
"container": {
"type": "MESOS"
},
"portDefinitions": [
@yankcrime
yankcrime / .zshrc
Last active January 27, 2025 14:56
Minimal .zshrc
autoload -U colors
autoload -U compinit
autoload -U zstyle+
autoload -U vcs_info
HISTSIZE=10000000
SAVEHIST=10000000
TMOUT=0
HISTFILE=~/.history
setopt APPEND_HISTORY
openstack coe cluster template create k8s-atomic \
--server-type vm \
--coe kubernetes \
--external-network c72d2f60-9497-48b6-ab4d-005995aa4b21 \
--floating-ip-disabled \
--fixed-network 05cfe5ff-d25d-497e-bf3a-5699bc3cf17f \
--fixed-subnet 9e110127-cb90-4685-abcc-caf23d629406 \
--image Fedora-Atomic-27-20180419.0.x86_64 \
--flavor bratwurst \
--master-flavor bratwurst \
@yankcrime
yankcrime / backup-and-restore.rst
Created October 10, 2018 09:41
Kolla-Ansible Backup and Restore

Backup and Restore of MariaDB

Kolla can facilitate either full or incremental backups of data hosted in MariaDB. It achieves this using Percona's Xtrabackup, a tool designed with hot backups in mind - an approach which means that consistent backups can be taken without any downtime for your cloud.

@yankcrime
yankcrime / gtk.css
Last active September 13, 2018 09:20
GTK3 overrides to slim down GNOME terminal tabs and window titles
notebook header {
background: #000;
}
notebook tab {
padding-top: 0px;
padding-bottom: 0px;
font-size: 12px;
}
@yankcrime
yankcrime / tizonia.sh
Created August 29, 2018 14:48
Startup script for Tizonia
#!/usr/bin/env bash
USER_ID=$(id -u)
GROUP_ID=$(id -g)
docker run -it --rm \
--volume=/run/user/${USER_ID}/pulse:/run/user/${GROUP_ID}/pulse \
--volume="$HOME/.config/tizonia":/home/tizonia/.config/tizonia \
--name tizonia \
tizonia/docker-tizonia "$@"
@yankcrime
yankcrime / light.minttyrc
Created July 30, 2018 08:46
Light theme for mintty
BackgroundColour=242,242,242
ForegroundColour=30,30,30
CursorColour=30,30,30
Black=40,42,46
BoldBlack=55,59,65
Red=165,66,66
BoldRed=204,102,102
Green=90,95,49
BoldGreen=65,69,22
Yellow=222,147,95