Skip to content

Instantly share code, notes, and snippets.

View RagingTiger's full-sized avatar
🐅

Raging Tiger RagingTiger

🐅
View GitHub Profile
@RagingTiger
RagingTiger / git-reset-author.sh
Created July 5, 2023 14:36 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
@RagingTiger
RagingTiger / multiple_ssh_setting.md
Last active May 8, 2023 02:31 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@RagingTiger
RagingTiger / sample.py
Created March 22, 2023 16:36 — forked from svpino/sample.py
Web Scraping using Bright Data Scraping Browser and Playwright
import re
import asyncio
from playwright.async_api import async_playwright
USERNAME = "TYPE YOUR USERNAME HERE"
PASSWORD = "TYPE YOUR PASSWORD HERE"
HOST = "zproxy.lum-superproxy.io:9222"
URL = "https://www.svpino.com/" # USE YOUR URL HERE
@RagingTiger
RagingTiger / server.py
Last active August 2, 2022 11:36 — forked from davidbgk/server.py
An attempt to create the simplest "sane" HTTP Hello world in Python3
import http.server
import socketserver
from http import HTTPStatus
# custom server
class SimpleServer(socketserver.TCPServer):
"""Run a simple server."""
def __init__(self, server_address, handler):
# notify server starting up
print('Server starting up ...')
@RagingTiger
RagingTiger / all_pdf_dl.py
Last active November 24, 2023 10:26 — forked from hibetterheyj/all_pdf_dl.py
Download all pdf files from a website
import os
import requests
from urllib.parse import urljoin
from bs4 import BeautifulSoup
import argparse
#%% Example
# one pdf
# python all_pdf_dl.py -l https://memento.epfl.ch/academic-calendar/ --save-here
# many pdfs
@RagingTiger
RagingTiger / setup-avahi.sh
Created February 24, 2018 13:49 — forked from davisford/setup-avahi.sh
Setup avahi-daemon on Ubuntu for so you can reach hostname `ubuntu.local` from host OS
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan