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
[alias] | |
ignore= "!sh ~/.gitScripts/ignore.sh" |
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
#!/bin/bash | |
lang=$1 | |
if [ ! -n "${lang##+([[:space:]])}" ]; then | |
echo 'Please add a programming language' | |
fi | |
langUpperCase=$(echo $lang | sed 's/./\u&/') |
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
[alias] | |
co = "!f() { git stash; git checkout \"$@\"; git stash pop; }; f" | |
cob = "!f() { git stash; git checkout -b \"$@\"; git stash pop; }; f" | |
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate | |
done = !git push origin HEAD | |
pll= !git pull origin HEAD | |
lg = !git log --name-only --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30 | |
undo = reset HEAD~1 --mixed | |
del = branch -D | |
s = status |
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
# Download and save gitignore file | |
curl https://raw.githubusercontent.com/github/gitignore/main/<language_programming>.gitignore > .gitignore | |
# For example Node.JS | |
curl https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore > .gitignore | |
# Or python | |
curl https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore > .gitignore |
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
[ | |
{ | |
"andorraLow": [ | |
{ | |
"name": "Canillo", | |
"id": "AD-02", | |
"CNTRYNAME": "Andorra", | |
"TYPE": "Parish", | |
"nameQuery": "Canillo", | |
"value": 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
[ | |
{ | |
"andorraLow": [ | |
{ | |
"name": "Canillo", | |
"id": "AD-02", | |
"CNTRYNAME": "Andorra", | |
"TYPE": "Parish", | |
"value": 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
var text; | |
for (let i = 0; i < document.getElementsByClassName('js-navigation-open').length; i++) { | |
text += "- \[ \] " + document.getElementsByClassName('js-navigation-open')[i].attributes[1].textContent + "\n"; | |
} |