https://hongymagic.expertli.dev/workspaces/cl45cfc020014gbqjaxcnom9y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(Mandatory=$true, HelpMessage="Enter the username in email format (e.g., [email protected])")] | |
[ValidatePattern("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$")] | |
[string]$Username, | |
[Parameter(HelpMessage="Number of days to look back for events")] | |
[int]$DaysBack = 1, | |
[Parameter(HelpMessage="Use alternative methods that don't require admin privileges")] | |
[switch]$UseAlternativeMethods = $true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.4" | |
services: | |
neko: | |
image: "m1k1o/neko:google-chrome" | |
restart: "unless-stopped" | |
shm_size: "2gb" | |
ports: | |
- "80:8080" | |
- "52000-52100:52000-52100/udp" | |
cap_add: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Description | |
Setup-WSL-Port-Forwarding function forwards commonly used ports from host to WSL. | |
The forwarded ports include standard HTTP, HTTPS, Postgres, Redis and other development ports. | |
Run: | |
Setup-WSL-Port-Forwarding.ps1 | |
#> | |
$PortsToForward = @(80, 443, 1025, 3000, 3001, 4444, 5000, 5900, 8025, 8080, 8081, 8888, 8900, 9090, 9091, 9190, 9191, 5432, 6379) |
sudo codesign --remove-signature "/Applications/Microsoft Teams.app"
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app"
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (GPU).app"
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (Plugin).app"
sudo codesign --remove-signature "/Applications/Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper (Renderer).app"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Natural scrolling of the mouse wheels | |
WheelUp::WheelDown | |
WheelDown::WheelUp | |
; Remap Caps Lock to something more useful | |
CapsLock::Escape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubeui () { | |
PROJECT=${1:-$(gcloud config list --format 'value(core.project)' 2>/dev/null)} | |
CLUSTER=${2:-$(gcloud config list --format 'value(container.cluster)' 2>/dev/null)} | |
ZONE=${3:-$(gcloud config list --format 'value(compute.zone)' 2>/dev/null)} | |
echo "==> Starting Kubernetes UI for cluster $PROJECT/$CLUSTER in $ZONE..." | |
gcloud container clusters get-credentials $CLUSTER --project $PROJECT --zone $ZONE && kubectl proxy --port=0 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.cursorBlinking": "solid", | |
"editor.cursorStyle": "block", | |
"editor.folding": false, | |
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 18, | |
"editor.lineHeight": 54, | |
"editor.lineNumbers": "relative", | |
"editor.renderIndentGuides": true, |
This gist holds image assets for K2.
NewerOlder