Skip to content

Instantly share code, notes, and snippets.

Avatar

momoterraw andrewvmail

  • Vancouver
View GitHub Profile
@andrewvmail
andrewvmail / aliases.sh
Created January 20, 2023 21:21
aliases.sh
View 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
View 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
View 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
View 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
View 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
View 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
View hot-fix.sh
#!/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 \
View Windows11_Setup.md

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
View 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

@andrewvmail
andrewvmail / cargo-run-cannot-find-ld2d1
Created April 7, 2022 08:35
rust cannot cargo run because "= note: ld: cannot find -ld2d1"
View cargo-run-cannot-find-ld2d1
to run https://github.com/robmikh/minesweeper-rs.git
1. Get https://github.com/retep998/winapi-rs/tree/0.3/x86_64/lib/libwinapi_d2d1.a
2. Put C:\Users\name\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libd2d1.a