This file contains 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
#!/usr/bin/env bash | |
################################### | |
# Init content for .bashrc file | |
# | |
# curl -Ls https://gist.github.com/andkirby/0e2982bee321aa611bc66385dee5f399/raw/bashrc_init_install.sh | bash | |
# curl -Ls https://bit.ly/bash-init | bash | |
################################### | |
touch ~/.bashrc | |
if cat ~/.bashrc | grep '# Init .bashrc content' > /dev/null; then | |
echo "notice: You have updated .bashrc file." > /dev/stderr |
This file contains 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
#!/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 | |
################################################################## | |
This file contains 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
#ClipboardTimeout 2000 | |
#SingleInstance force | |
; Working example | |
; You may test in some wysiwyg editor | |
; Win + R — Write clipboard | |
#r:: | |
{ | |
ClipWait |
This file contains 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
#!/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 |
This file contains 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
#!/usr/bin/env bash | |
################################################################################ | |
# This script can install RUBY binaries on Windows in Bash. | |
# | |
# Link to this file: | |
# https://gist.github.com/andkirby/caf9e825e83f38ad98721956d6e0107c/raw/ruby-bash-win.sh | |
# | |
# Download latest version by command in GitBash Windows console: | |
# $ curl -Ls bit.ly/ruby-bash-win | bash | |
# |
This file contains 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
#!/usr/bin/env bash | |
################################### | |
# Auto-complete for Magento2 console "bin/magento" file | |
# | |
# Download and install: | |
# $ curl -Ls https://gist.github.com/andkirby/76c5f09d8c6bd55d0fe21a906d72defe/raw/bash-magento2-autocomplete-install.sh | bash | |
# | |
# MANUAL INSTALLATION | |
# "bash-completion" installation: | |
# $ yum install -y bash-completion |
This file contains 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
#!/usr/bin/env bash | |
# Script for testing options | |
set -o pipefail | |
set -o errexit | |
set -o nounset | |
#set -o xtrace | |
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
This file contains 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
#!/usr/bin/env bash | |
set -o pipefail | |
set -o errexit | |
set -o nounset | |
#set -o xtrace | |
# Set magic variables for current file & dir | |
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")" |
This file contains 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
# ---- GIT ---- | |
#alias git="/d/prog/git/bin/git.exe" | |
# Git status | |
alias gg="git status -uno" | |
# Re-add files (refresh cache) | |
#alias gau='git status -s | cut -c4- | xargs git add' | |
alias gau="git diff --name-only --cached | xargs -I '{}' realpath --relative-to=. $(git rev-parse --show-toplevel)/'{}'" | |
# Re-add files (refresh cache) and commit | |
alias gc="gau && git commit -m" | |
alias gl='git log -3' |
This file contains 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
[user] | |
name = | |
email = | |
[push] | |
default = current | |
[core] | |
excludesfile = ~/.gitignore | |
editor = vim | |
autocrlf = input | |
eol = lf |