Skip to content

Instantly share code, notes, and snippets.

View georgeyjm's full-sized avatar

Jiaming (George) Yu georgeyjm

View GitHub Profile
@georgeyjm
georgeyjm / ubuntu-setup.sh
Last active April 21, 2024 00:38
Ubuntu Server Basic Setup
#!/bin/bash
function main() {
# Create Non-Root User
# read -rp "Create a new non-root user? [y/N] " flag_create_user
# if [[ $createUser == [nN] ]]; then
# username=$(whoami)
# updateUserAccount "${username}"
@georgeyjm
georgeyjm / oxam-crawler.py
Created April 16, 2023 17:50
OXAM Crawler.py
import re
import shutil
from pathlib import Path
from queue import Queue, Empty
from threading import Thread, Event
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from fuzzywuzzy import fuzz
@georgeyjm
georgeyjm / unNCM.py
Created August 23, 2022 06:37
Netease NCM Decryption with Metadata and Album Art Embedding
import os
import sys
import json
import base64
import struct
import binascii
from pathlib import Path
import argparse
from Crypto.Cipher import AES
@georgeyjm
georgeyjm / bilibili-fanalysis.py
Last active November 16, 2023 18:04
Script for BiliBili Fans Analysis
import http
import time
import json
import math
from concurrent.futures import ThreadPoolExecutor, as_completed
import requests
from tqdm import tqdm
@georgeyjm
georgeyjm / index.html
Last active August 31, 2018 14:18
Interactive Logistic Regression with TensorFlow.js + p5.js
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<style>
* {margin: 0}
</style>
@georgeyjm
georgeyjm / papacambridge.py
Created January 17, 2018 03:24
A web crawler for IGCSE past papers on PapaCambridge.
from bs4 import BeautifulSoup
from threading import Thread
import requests
import re
import shutil
import os
import time
MAX_THREAD = 30
ROOT_DIR_NAME = 'PapaCambridge'