in the git config:
git config --global alias.clean-branches "!git branch | grep -v master | xargs git branch -D"
or by edit the config file :
[alias]
# remove all but the mention git
trim = !git branch | grep -v -E 'master|main|development|integration|production' | xargs git branch -D
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
| confd --version | |
| find -name "confd" -type d | | |
| while IFS= read -r dir; do | |
| echo "$dir"; | |
| export SERVICE_NAME=`echo "$dir" | cut -d "/" -f 2 ` | |
| mkdir -p "$dir"/conf.d; | |
| mkdir -p "$dir"/templates; | |
| cp "$dir"/*.tmpl "$dir"/templates; | |
| cp "$dir"/*.toml "$dir"/conf.d; |
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
| i18n-auto-translation -t "he" -p {full_path}\i18n\en.json --apiProvider "deep-rapid" -k {key} |
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
| @ECHO OFF | |
| cd c:/development/nginx-1.8.1/ | |
| taskkill /f /IM nginx.exe | |
| start nginx.exe | |
| EXIT |
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
| /** | |
| * @param jsonPath {String} | |
| * @example 'name.people.joe' returns 'name ->> people ->> joe' | |
| * @returns {String} | |
| */ | |
| function createSearchJsonQuery (jsonPath) { | |
| const add = jsonPath.split('.').join(' -> '); | |
| return (add.substring(0, add.lastIndexOf('->')) + ' ->> ' + add.substring(add.lastIndexOf('->') +3 )); | |
| } |
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
| -- Random Text | |
| (SELECT array_to_string(array(select substr('ABCDEFGHIJKLMNOPQRSTUVWX-Y-Z_0123456789',((RANDOM()*(39)+1)::integer),1) from generate_series(1,16)),'')) |
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
| { | |
| "name": "workshop-setup", | |
| "version": "1.0.0", | |
| "description": "This is the common setup script for most of my workshops", | |
| "bin": "./setup.js" | |
| } |
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
| { | |
| "name": "workshop-computer-validator", | |
| "version": "1.0.0", | |
| "description": "I use this to validate people's computers have the proper versions of node and npm installed for a workshop", | |
| "bin": "./validate-system.js", | |
| "dependencies": { | |
| "semver": "7.1.3" | |
| } | |
| } |
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
| ## INIT | |
| echo "# starting new great project" >> README.md | |
| git init | |
| git add README.md | |
| git commit -m "first commit" | |
| git branch -M main | |
| git remote add origin https://github.com/nivb52/--repo--name--.git | |
| git push -u origin main | |
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
| /** | |
| * @param collection {[]} | |
| * @param properties {String[]} | |
| * @param options {{return_as_arrays: (Boolean), : {extract_instruction: (String), extract_function: (Function)}}} | |
| * @example: | |
| * transport_items_data, | |
| * ['transport_item_type_id', 'status_ids_for_filtering', 'status_ids'], | |
| * {return_as_arrays: true, status_ids_for_filtering: {extract_instruction: 'spread'}, status_ids: {extract_instruction: 'spread'}} | |
| * @returns {Object} | |
| */ |
NewerOlder