This file contains hidden or 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 | |
################################################################### | |
# Script Name : get-md-images.sh | |
# Description : Download all remote images written as markdown | |
# in our files and replace URLs by local path. | |
# Author : Yann Defretin | |
# Email : [email protected] | |
################################################################### |
This file contains hidden or 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://git-scm.com/docs/git-remote#Documentation/git-remote.txt-emset-urlem | |
git remote set-url --add --push origin [email protected]:Foo/bar.git | |
git remote set-url --add --push origin [email protected]:Foo/bar.git |
This file contains hidden or 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
function acp() { | |
git add . | |
git commit -m "$*" | |
git push origin master | |
} |
This file contains hidden or 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 | |
shopt -s nullglob | |
downloadFromFile(){ | |
while read -r URL <&3; do | |
wget --content-disposition $(echo $URL | tr -d '\r') -P "$1/" | |
done 3<"$2" | |
} |
This file contains hidden or 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
import requests | |
from bs4 import BeautifulSoup | |
import time | |
import pandas as pd | |
import random | |
from urllib.parse import urlsplit | |
headers = requests.utils.default_headers() | |
headers.update( |
NewerOlder