Skip to content

Instantly share code, notes, and snippets.

View andrewvmail's full-sized avatar

momoterraw andrewvmail

View GitHub Profile
@andrewvmail
andrewvmail / kanata.kbd
Created March 8, 2023 09:14
kanata.kbd
(defcfg
process-unmapped-keys yes
danger-enable-cmd yes
)
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
@andrewvmail
andrewvmail / aliases.sh
Created January 20, 2023 21:21
aliases.sh
alias dockerclean="docker system prune --all --force --volumes && docker system prune --all --force"
@andrewvmail
andrewvmail / deploying-multus.md
Created January 16, 2023 22:12
deploying-multus.md

git clone https://github.com/k8snetworkplumbingwg/multus-cni.git && cd multus-cni
cat ./deployments/multus-daemonset.yml | rancher kubectl apply -f -


@andrewvmail
andrewvmail / argo-cd-deployment.md
Last active January 14, 2023 01:00
argo-cd-deployment.md
open https://github.com/argoproj/argo-cd/issues/2953



open https://github.com/argoproj/argo-cd/issues/9809

ConfigMap: argocd-cmd-params-cm

@andrewvmail
andrewvmail / k8-rancher.md
Created November 26, 2022 01:22
k8-rancher.md

istio specific


rancher kubectl patch deployment hello  -p '{"spec": {"template": {"metadata": { "labels": { "sidecar.istio.io/inject": "true"}}}}}'

@andrewvmail
andrewvmail / language-proficiency-codes.md
Last active September 3, 2022 04:28
language-proficiency-codes.md
  • np - Not proficient: At this level, you may know a few words in the language, but you can't speak in full sentences or - conversationally. If you have this level of proficiency in a language, it may not be helpful to include it in your application materials.
  • ep - Elementary proficiency: A person with elementary proficiency may have just started studying and learning the language. They may form some sentences and communicate basic subjects.
  • lp - Limited proficiency: Limited proficiency means you understand fundamental vocabulary and social phrases. You can take part in some conversations and understand basic information.
  • pp - Professional proficiency: For professional proficiency, you can function professionally by communicating with clients, speaking at a normal pace and understanding specific phrases and idioms. Depending on the position, this level of proficiency may be sufficient for some potential employers.
  • fp - Fully proficient: When you are fully proficient in a language, you can take part in
@andrewvmail
andrewvmail / load-cordova.ts
Created August 16, 2022 20:54
load-cordova.ts
console.log("[ loadCordova ] script loaded");
// VERY HIGH CHANCE OF REGRESSION IN HERE
// IF VENDOR CHANGES USER-AGENT STRING
const userAgent = window.navigator.userAgent.toLowerCase();
const safari = /safari/.test(userAgent);
const applewebkit = /applewebkit/.test(userAgent);
const mobileDescriptor = /mobile/.test(userAgent);
const ios = /iphone|ipod|ipad/.test(userAgent);
@andrewvmail
andrewvmail / hot-fix.sh
Last active July 8, 2022 20:39
hot-fix-for-parcel-react-pdf-import-bug
#!/bin/bash
# https://github.com/diegomura/react-pdf/pull/1891
set -eu
echo "[ post install script ] running hot-fix at post install"
patch -p0 --forward \
node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js \

This guide was created using Microsoft Windows 11 Pro

Version 21H2 build 22000.194

Installation

System Updates:

  • Settings -> Windows Update
  • Install all updates

Powershell Execution Policy:

  • launch Windows Powershell as administrator and execute:
@andrewvmail
andrewvmail / forward-to-wsl.md
Created April 22, 2022 05:39
forward-to-wsl.md

netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.29.81.153

netsh advfirewall firewall add rule name= "Open Port 3000" dir=in action=allow protocol=TCP localport=3000