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
````.................-------::::-` | |
`.-:/+ossyhhddmmmmmmmmmmmmmmdddddddddddddddddddddmmy: | |
`-/oydmmmmmdyso++/::-:::///////:::::::---.`````````````./hmh/ | |
-/ydmdhyso+++//:------:---.`````` ````.:::-. `-ymh- | |
.+hmds/.:/:-------..````...------:::::::::::::--.```-//- :dm+ | |
-ymds:` `-```````....------..````` `..------..`.://:.`-+/- .hms` | |
omd+` `----------.` ::......--://:::-/+/.`-/-` `yNy` | |
oNy` :/:.``````...--` -o` `.-+/:-//- .-. `yNy` |
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
# username = "my_username" | |
# pwd = "my_password" | |
# target_path = "my_target_path" | |
# saving auth cookie | |
system %Q{wget --save-cookies /tmp/cookie.txt --keep-session-cookies --post-data "username=#{username}&password=#{pwd}" -O - \ | |
https://rubytapas.dpdcart.com/subscriber/login?__dpd_cart=d08391e6-5fe2-4400-8b27-2dc17b413027} | |
(25..600).each do |i| |
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
first_commit=$(git log --pretty=format:%H | tail -1) | |
git rev-list --all --no-merges | | |
while read commit; do | |
if [ $commit == $first_commit ]; then break; fi; | |
IFS_backup=$IFS | |
IFS=$'\n' | |
diff_lines=( $(git diff --numstat --minimal -U0 --word-diff=porcelain $commit^ $commit | grep -E '^(\+[^+]|-[^-]).*$') ) | |
IFS=$IFS_backup |