Skip to content

Instantly share code, notes, and snippets.

View kinoute's full-sized avatar
🐉
playing with Ghidra

Yann Defretin kinoute

🐉
playing with Ghidra
View GitHub Profile
import requests
from bs4 import BeautifulSoup
import time
import pandas as pd
import random
from urllib.parse import urlsplit
stories_cols = ['title', 'story']
csv_stories = pd.DataFrame(columns=stories_cols)
@kinoute
kinoute / scrap-amazon-reviews.py
Last active September 16, 2019 20:51
Scrap reviews on Amazon.fr (only) with Python, Pandas & BeautifulSoup.
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(
@kinoute
kinoute / push-to-github-gitlab.sh
Last active August 16, 2019 19:30
Push to remote Github and Gitlab at the same time
# https://git-scm.com/docs/git-remote#Documentation/git-remote.txt-emset-urlem
git remote set-url --add --push origin git@github.com:Foo/bar.git
git remote set-url --add --push origin git@gitlab.com:Foo/bar.git
@kinoute
kinoute / git-add-commit-push.sh
Last active July 22, 2019 19:57
Git add, commit, and push, in a single unix alias command.
function acp() {
git add .
git commit -m "$*"
git push origin master
}
#/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"
}