## gh-pages
git push origin :gh-pages
git subtree push --prefix build origin gh-pages## How to delete all commit history in github?
git checkout --orphan latest_branch
git add -A## gh-pages
git push origin :gh-pages
git subtree push --prefix build origin gh-pages## How to delete all commit history in github?
git checkout --orphan latest_branch
git add -A| function fetchPageAssets() { | |
| let images = document.querySelectorAll('img[src*=files]'); | |
| images.forEach(function(image) { | |
| files.push('<img src="' + image.src.replace(/_60x60/, "") + '">'); | |
| }); | |
| } | |
| function downloadListFile() { | |
| let button = document.createElement("a"); | |
| let data = 'data:application/octet-stream;base64,' + window.btoa(files.join('\n')); |
| #!/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 |
| #!/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 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/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 |
| { | |
| "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 Ч |
| {% 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 |