This file contains 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.tokenColorCustomizations": { | |
"[Ayu Dark]": { | |
"textMateRules": [ | |
{ | |
"scope": [ | |
"support.class.component.tsx", | |
], | |
"settings": { | |
"foreground": "#d65656", |
This file contains 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
#!/bin/bash | |
# Check if the script is run with sudo privileges | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root. Please use sudo." | |
exit 1 | |
fi | |
# Get the username of the person who invoked sudo | |
USER=$SUDO_USER |
This file contains 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
cat ~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt | grep '^cd' | sed 's/^cd //' | sort | uniq | % { zoxide add $_ } |
This file contains 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
# source: https://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/powermanagement.html | |
sudo systemctl enable nvidia-suspend.service | |
sudo systemctl enable nvidia-hibernate.service | |
sudo systemctl enable nvidia-resume.service |
This file contains 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
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f | |
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f | |
reg delete "HKCU\Software\Policies" /f | |
reg delete "HKLM\Software\Microsoft\Policies" /f | |
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f |
This file contains 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
theme = "ayu_dark" | |
[editor] | |
true-color = true | |
[editor.statusline] | |
separator = " " | |
mode.normal = "🧬" | |
mode.insert = "📝" | |
mode.select = "🖍️" |
This file contains 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
Set-PSReadLineOption -PredictionSource HistoryAndPlugin -PredictionViewStyle ListView | |
Set-PSReadlineKeyHandler -Key Tab -Function TabCompleteNext | |
# Install-Module -Name CompletionPredictor -Repository PSGallery | |
Import-Module -Name CompletionPredictor | |
Invoke-Expression (&starship init powershell) |
This file contains 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
merge-release() { | |
git pull --all | |
TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | |
git merge $TAG -m "Merge Release $TAG" | |
} |
This file contains 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
Show hidden characters
{ | |
"Integer ID": { | |
"scope": "prisma", | |
"prefix": "id", | |
"body": [ | |
"$1_id Int @id @default(autoincrement())", | |
"$0" | |
], | |
"description": "Integer ID" | |
} |
This file contains 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
; Source: https://superuser.com/questions/207731/configure-debounce-time-in-windows-for-mouse | |
/* | |
** Buggy-Mouse.ahk - Fix a buggy mouse. Stop it from double-clicking when you try to single-click. | |
** | |
** NOTE: Please use this URL when linking to Buggy Mouse: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse | |
** | |
** Updated: Thu, Nov 1, 2012 --- 11/1/12, 10:19:19am EDT | |
** Location: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse | |
** |
NewerOlder