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
# https://github.com/github/gitignore | |
# .NET build output | |
bin/ | |
obj/ | |
# NuGet packages folder | |
packages/ | |
# Visual Studio cache/options directory |
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 | |
mkdir springer-open | |
cd springer-open | |
wget -O "search-results.csv" "https://link.springer.com/search/csv?facet-language=%22En%22&facet-content-type=%22Book%22&package=openaccess" | |
gawk -vFPAT='[^,]*|"[^"]*"' 'NR>1 { gsub(/"/, "", $6); print "https://link.springer.com/content/epub/" $6 ".epub" }' "search-results.csv" > "items.csv" | |
wget -w 3 -t 0 --content-disposition -i items.csv |
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
# Add a string to the beginning of each line in a file: | |
awk '{ print "prefix" $0 }' PATH-TO-FILE | |
# Append a directory to the PATH environment variable: | |
PATH="${PATH:+${PATH}:}/path/to/directory" | |
# Change author for last N Git commits: | |
git rebase -i HEAD~N -x "git commit --amend --author 'Author Name <author.name@mail.com>' --no-edit" | |
# Change the password of a Linux user account: |
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
# https://editorconfig-specification.readthedocs.io/ | |
root = true | |
[*] | |
charset = utf-8 | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = true | |
tab_width = 4 |
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
{ | |
"diffEditor.ignoreTrimWhitespace": false, | |
"editor.fontFamily": "'Fira Code', monospace", | |
"editor.fontLigatures": false, | |
"editor.renderControlCharacters": true, | |
"editor.renderWhitespace": "all", | |
"editor.wordWrap": "on", | |
"files.trimTrailingWhitespace": true, | |
"telemetry.enableTelemetry": false | |
} |
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
Show hidden characters
/* NOTE: | |
In order for Git Bash to save its command history when used via Windows Terminal, | |
the following line should be added to the ~/.bash_profile file: | |
PROMPT_COMMAND='history -a' | |
*/ | |
{ | |
"guid": "{a775046d-402f-4b65-9a29-abefaafcb815}", | |
"name": "Git Bash", | |
"commandline" : "\"%PROGRAMFILES%\\Git\\usr\\bin\\bash.exe\" -i -l", |