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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| LATENCY=125 | |
| PIPE=/tmp/scrcpy_pipe | |
| MODULE_ID=$(pactl load-module module-pipe-source \ | |
| source_name="Scrcpy" channels=2 format=16 rate=48000 file="$PIPE") | |
| # keep the pipe flowing so scrcpy never blocks on write |
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.tokenColorCustomizations": { | |
| "[Ayu Dark]": { | |
| "textMateRules": [ | |
| { | |
| "scope": [ | |
| "support.class.component.tsx", | |
| ], | |
| "settings": { | |
| "foreground": "#d65656", |
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
| #!/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 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
| cat ~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt | grep '^cd' | sed 's/^cd //' | sort | uniq | % { zoxide 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
| # 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 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
| 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 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
| theme = "ayu_dark" | |
| [editor] | |
| true-color = true | |
| [editor.statusline] | |
| separator = " " | |
| mode.normal = "🧬" | |
| mode.insert = "📝" | |
| mode.select = "🖍️" |
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
| 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 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
| 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 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
Show hidden characters
| { | |
| "Integer ID": { | |
| "scope": "prisma", | |
| "prefix": "id", | |
| "body": [ | |
| "$1_id Int @id @default(autoincrement())", | |
| "$0" | |
| ], | |
| "description": "Integer ID" | |
| } |
NewerOlder