git config --global alias.undo '!git reset --hard HEAD^ && git clean -df'
git config --global alias.stash-all '!f() { git stash push --include-untracked -m "$(date +"%Y-%m-%d %H:%M:%S")"; }; f'
| # fnm completion related | |
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| # end fnm completion related | |
| # Import modules | |
| Import-Module Terminal-Icons | |
| Import-Module PSReadLine | |
| Import-Module posh-git | |
| Import-Module posh-sshell |
git config --global alias.undo '!git reset --hard HEAD^ && git clean -df'
git config --global alias.stash-all '!f() { git stash push --include-untracked -m "$(date +"%Y-%m-%d %H:%M:%S")"; }; f'
| # -*- mode: python ; coding: utf-8 -*- | |
| import os | |
| from PyInstaller.utils.hooks import collect_all | |
| datas = [] | |
| binaries = [] | |
| hiddenimports = ['customtkinter', 'darkdetect', 'utils', 'utils.path_resolver', 'utils.subprocess_utils', 'utils.pdf_processor'] | |
| tmp_ret = collect_all('customtkinter') | |
| datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2] |
| download greenclip from https://github.com/erebe/greenclip/releases | |
| put `greenclip` in $PATH (i did put it in /usr/bin) | |
| under ~/.config, create 1 file `.config/greenclip.toml` | |
| *.config/greenclip.toml* | |
| ```BASH | |
| [greenclip] | |
| blacklisted_applications = [] |
| curl http://localhost:1234/v1/chat/completions \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "model": "gemma-3n-e2b-it", | |
| "messages": [ | |
| { "role": "system", "content": "Always answer in rhymes. Today is Thursday" }, | |
| { "role": "user", "content": "What day is it today?" } | |
| ], | |
| "temperature": 0.7, | |
| "max_tokens": -1, |
Install only the dev group (without base dependencies):
uv sync --only-group dev Install multiple groups at once:
uv sync --group dev --group prod Install all groups:
uv sync --all-groups
| { | |
| "$help": "https://aka.ms/terminal-documentation", | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "actions": | |
| [ | |
| { | |
| "command": | |
| { | |
| "action": "copy", | |
| "singleLine": false |
| To configure your .ssh/config file to use two different GitHub accounts with separate SSH keys, follow these steps based on best practices: | |
| Generate distinct SSH key pairs for each GitHub account, if you haven't already, for example: | |
| ssh-keygen -t rsa -C "email_for_account1@example.com" -f ~/.ssh/id_rsa_account1 | |
| ssh-keygen -t rsa -C "email_for_account2@example.com" -f ~/.ssh/id_rsa_account2 | |
| Add the SSH keys to the ssh-agent: | |
| ssh-add ~/.ssh/id_rsa_account1 | |
| ssh-add ~/.ssh/id_rsa_account2 | |
| Configure your ~/.ssh/config file with Host aliases pointing to GitHub but specifying different IdentityFiles: |
| reg delete "HKCU\Software\Scooter Software\Beyond Compare 5" /v "CacheID" /f | |
| reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v "CacheID" /f |
| echo "check_certificate = off" >> ~/.wgetrc | |
| echo "insecure" >> ~/.curlrc |