git init
Initialized empty Git repository in /home/paws/commons-helpers/.git/
git add moncloa*
git add wlf*
git add modules/wmtools.py
git add LICENSE
git commit -am "Initial commit"
[master (root-commit) b80c044] Initial commit 9 files changed, 2651 insertions(+) create mode 100644 LICENSE create mode 100644 Untitled2.ipynb create mode 100644 gencat_upload.ipynb create mode 100644 gencat_upload_old.ipynb create mode 100644 git.ipynb create mode 100644 massive_moncloa_fototeca_uploader.ipynb create mode 100644 modules/wmtools.py create mode 100644 moncloa_fototeca_upload.ipynb create mode 100644 moncloa_upload.ipynb
git remote add origin https://miguel-angel-monjas:QaBaSa0g@github.com/miguel-angel-monjas/wmcommons-helpers.git
fatal: remote origin already exists.
git push -u origin master
Username for 'https://github.com':
rm -rf .git
git status
fatal: Not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
git push
Counting objects: 2, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 229 bytes | 114.00 KiB/s, done. Total 2 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local object. To https://github.com/miguel-angel-monjas/wmtools3.git e3b0a52..25f1b40 master -> master
git rm -f moncloa_upload.ipynb
rm 'moncloa_upload.ipynb'
git pull
Updating 091a0a7..1ed5739 Fast-forward README.md | 21 ++- WLF 2016 stats generator.ipynb | 362 +++++++++++++++++++++-------------------- WLF 2017 stats generator.ipynb | 361 ++++++++++++++++++++-------------------- modules/wmtools.py | 5 +- templates/wlf2016.wiki | 3 +- templates/wlf2017.wiki | 6 +- 6 files changed, 380 insertions(+), 378 deletions(-)
git reset --hard
HEAD is now at 091a0a7 Fix in wmtools.py
ls -a
. commons-helpers .ipython seaborn-data .. .config .jupyter wikiloves-tools .bash_history git.ipynb .local .cache .ipynb_checkpoints __pycache__
cp -r commons-helpers wikiloves-tools2
mv wikiloves-tools2 wikiloves-tools
ls -al
total 1012 drwxr-sr-x 5 tools.paws tools.paws 4096 Jan 20 23:17 . drwxr-sr-x 12 tools.paws tools.paws 4096 Jan 20 23:16 .. -rw-r--r-- 1 tools.paws tools.paws 8694 Jan 20 23:11 gencat_upload.ipynb -rw-r--r-- 1 tools.paws tools.paws 11829 Jan 20 23:11 gencat_upload_old.ipynb -rw-r--r-- 1 tools.paws tools.paws 7732 Jan 20 23:11 git.ipynb drwxr-sr-x 2 tools.paws tools.paws 4096 Jan 20 23:11 images drwxr-sr-x 2 tools.paws tools.paws 4096 Jan 20 23:17 .ipynb_checkpoints -rw-r--r-- 1 tools.paws tools.paws 11357 Jan 20 23:11 LICENSE -rw-r--r-- 1 tools.paws tools.paws 918051 Jan 20 23:11 massive_moncloa_fototeca_uploader.ipynb drwxr-sr-x 4 tools.paws tools.paws 4096 Jan 20 23:11 modules -rw-r--r-- 1 tools.paws tools.paws 17609 Jan 20 23:11 moncloa_fototeca_upload.ipynb -rw-r--r-- 1 tools.paws tools.paws 14925 Jan 20 23:11 moncloa_upload.ipynb -rw-r--r-- 1 tools.paws tools.paws 934 Jan 20 23:11 README.md -rw-r--r-- 1 tools.paws tools.paws 5075 Jan 20 23:11 Untitled2.ipynb
cd commons-helpers
wget http://listarojapatrimonio.org/lista-roja-patrimonio/wp-content/plugins/leaflet-maps-marker-pro/leaflet-geojson.php?layer=all&callback=jsonp&full=yes&full_icon_url=yes
[2] 4042 [3] 4043 [4] 4044 [1] Done wget http://listarojapatrimonio.org/lista-roja-patrimonio/wp-content/plugins/leaflet-maps-marker-pro/leaflet-geojson.php?layer=all