syncthing cli config devices add --device-id $DEVICE_ID_B
syncthing cli config folders $FOLDER_ID devices add --device-id $DEVICE_ID_B
| #!/usr/bin/env bash | |
| OUTPUT_FILE="git_audit_$(date +%Y%m%d_%H%M%S).txt" | |
| REPOS_DIR="${1:-.}" | |
| SEARCH_KEY="${2:-}" | |
| echo "Git Repository Audit started" | |
| echo "Git Repository Audit" > "$OUTPUT_FILE" | |
| echo "Generated: $(date)" >> "$OUTPUT_FILE" | |
| echo "Scanning: $REPOS_DIR" >> "$OUTPUT_FILE" |
| -- https://github.com/DanSM-5/vscode-nvim/blob/master/lua/lib/pack.lua | |
| --[[ | |
| -- nvim 0.12.0 wrapper for builtin package manager | |
| -- to allow lazy load of plugins using events, autocmd, or keymaps | |
| --]] | |
| local group = vim.api.nvim_create_augroup('LoadPluginAutoCmd', { clear = true }) | |
| ---@class PluginLoadSpec: vim.pack.Spec | |
| ---@field lazy boolean |
| {% liquid | |
| assign array = 'one' | uniq | |
| assign array = 'two' | uniq | concat: array | |
| assign array = 'three' | uniq | concat: array | |
| assign array = array | reverse | |
| assign object = null | default: key: 'value', other: 404 | |
| assign parent = null | default: object: object, array: array | |
| echo parent | json |
| { | |
| "keyMappings": "map , showHelp\nmap о scrollDown\nmap л scrollUp\nmap р scrollLeft\nmap д scrollRight\nmap пп scrollToTop\nmap П scrollToBottom\nmap яР scrollToLeft\nmap яД scrollToRight\nmap <с-у> scrollDown\nmap <с-н> scrollUp\n\nmap в scrollPageDown\nmap г scrollPageUp\nmap к reload\nmap пы toggleViewSource\n\nmap ш enterInsertMode\n\nmap Р goBack\nmap Д goForward\nmap пг goUp\nmap пГ goToRoot\n\nmap пш focusInput\n\nmap а LinkHints.activateMode\nmap А LinkHints.activateModeToOpenInNewTab\nmap <a-а> LinkHints.activateModeWithQueue\n\nmap . enterFindMode\nmap т performFind\nmap Т performBackwardsFind\n\nmap хх goPrevious\nmap ъъ goNext\n\nmap нн copyCurrentUrl\nmap на LinkHints.activateModeToCopyLinkUrl\n\nmap з openCopiedUrlInCurrentTab\nmap З openCopiedUrlInNewTab\n\nmap Л nextTab\nmap О previousTab\nmap пе nextTab\nmap пЕ previousTab\nmap п0 firstTab\nmap п; lastTab\n\n\nmap Ц moveTabToNewWindow\nmap е createTab\nmap не duplicateTab\nmap ч removeTab\nmap Ч |
| #!/bin/bash | |
| # USAGE | |
| # chmod +x google_drive_backups.sh | |
| # ./google_drive_backups.sh path/to/directory | |
| # Set the remote and backup directory paths | |
| REMOTE="remote_name" # Replace with your actual remote name configured in rclone | |
| BACKUP_DIRECTORY="path/to/backups" # Replace with the desired backup directory path |
| #!/bin/bash | |
| # USAGE | |
| # chmod +x delete-github-repo-from-array.sh | |
| # ./delete-github-repo-from-array.sh username | |
| OWNER="$1" | |
| REPOSITORIES=$(gh repo list $OWNER --json name --limit 100 | jq -r '.[].name') | |
| for REPO in ${REPOSITORIES[@]}; do |
| #!/bin/sh | |
| # USAGE | |
| # chmod +x neovim-profile.sh | |
| # ./neovim-profile.sh profile_name arguments_to_pass_in_nvim_command | |
| PROFILE_NAME="$1" | |
| INIT_FILE="init.lua" | |
| COMMAND="nvim" |
| #!/bin/bash | |
| # USAGE | |
| # chmod +x transfer-github-repo.sh | |
| # ./transfer-github-repo.sh username author | |
| USER_NAME="$1" | |
| AUTHOR="$2" | |
| find * -maxdepth 0 -type d \( ! -name . \) -print | while read DIR; do |