The post-checkout hook automatically creates .idea/scopes/ticket___code.xml with ticket-specific patterns:
<component name="DependencyValidationManager">
Transform complex git worktree management into simple, ticket-based development. git wt 101 automatically creates isolated workspaces using dynamic path templates and project codes, replacing lengthy git commands with intelligent defaults.
# Set your worktree location (choose one):
git config --global worktree.defaultPath ".gitWT/{worktree_name}" # Inside repo| #!/usr/bin/env bash | |
| # hh - Enhanced History Search | |
| # | |
| # Description: | |
| # Interactive history search function that uses fzf for enhanced filtering | |
| # and selection when available, or falls back to grep for basic search. | |
| # Allows filtering history by keywords and optionally executing selected commands. | |
| # Compatible with both bash and zsh shells. | |
| # |
| php -r '$config = require "app/etc/config.php"; \ | |
| $config = ["modules" => $config["modules"]]; \ | |
| echo "<?php\nreturn "; var_export($config); \ | |
| echo ";";' \ | |
| > app/etc/config.php.cleaned && mv app/etc/config.php.cleaned app/etc/config.php | |
| php -r '$config = require "app/etc/env.php"; \ | |
| unset($config["system"]); \ | |
| echo "<?php\nreturn "; \ | |
| var_export($config); \ |
| ################################################################################ | |
| # This script can merge all split SSH configuration into `~/.ssh/config` file. | |
| # | |
| # HOW IT WORKS | |
| # It will merge all files by mask config.*.merge, i.e.: | |
| # ~/.ssh/config.MY_PROJECT.merge | |
| # Initial exists `~/.ssh/config` file will be copied to `~/.ssh/config.orig`. | |
| # Use this `config.orig` for further changes. | |
| # | |
| # Anyway, you may not use this script and just run: |
| ######################################## | |
| # Reset time on login # | |
| ######################################## | |
| # you may try to use system last logged time: `last ${USER} -n1 | head -1 | awk '{print $4" "$5" "$6" "$7}'` | |
| time_sync_command='sudo ntpdate -s time.nist.gov' | |
| # max time not logged value | |
| not_logged_max_time_h=6 |
| #!/usr/bin/env bash | |
| ################################################################## | |
| # Synchronize .ssh files from Windows file system to Ubuntu WSL # | |
| ################################################################## | |
| set -o pipefail | |
| set -o errexit | |
| set -o nounset | |
| #set -o xtrace | |
| # Set magic variables for current file & dir |
| #!/usr/bin/env bash | |
| ################################################################## | |
| # Automatically download Git Bash for Windows portable version # | |
| ################################################################## | |
| # Quick running: | |
| # curl -Ls https://gist.githubusercontent.com/andkirby/16e3c7e4be8bac4c6b3bd0ae8f713552/raw/git-downloader | bash | |
| ################################################################## | |
| #ClipboardTimeout 2000 | |
| #SingleInstance force | |
| ; Working example | |
| ; You may test in some wysiwyg editor | |
| ; Win + R — Write clipboard | |
| #r:: | |
| { | |
| ClipWait |
| #!/usr/bin/env bash | |
| ############################################################################# | |
| # Download Amazon MWS XSD file with all included ones recursively | |
| # It will download XSD files into the same directory of this script | |
| ############################################################################# | |
| # USAGE | |
| # $ bash fetch-all-xsd.sh URL_START_XSD_FILE | |
| # | |
| # EXAMPLE | |
| # $ bash fetch-all-xsd.sh https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_4_1/amzn-envelope.xsd |