Skip to content

Instantly share code, notes, and snippets.

View iwatchme's full-sized avatar
💭
I may be slow to respond.

iwatchme iwatchme

💭
I may be slow to respond.
View GitHub Profile
@iwatchme
iwatchme / workingcopy.js
Last active May 24, 2024 05:02
workingcopy
/*
[rewrite_local]
^https:\/\/education\.github\.com\/api\/user$ url script-response-body https://gist.github.com/iwatchme/a9e21ff2407eb168da4076b63142dfc1/raw/65e572599931ceaa6705a8358c4c81eff543b027/workingcopy.js
[mitm]
hostname=education.github.com
*/
$done({body: '{"student": true}'})
@iwatchme
iwatchme / get-frida-tools-version.sh
Last active February 25, 2023 08:18
通过frida版本获得frida-tools工具版本
:<<BLOCK
Get frida-tools version shell script v1.0
AUTHOR: westinyang
USAGE:
curl -sL https://gitee.com/westinyang/codelabs/raw/master/get-frida-tools-version.sh | bash -s <frida-version> # default: main
curl -sL https://raw.githubusercontent.com/westinyang/codelabs/master/get-frida-tools-version.sh | bash -s <frida-version> # default: main
curl -sL https://gist.github.com/westinyang/9815e4b94361a2ad9169650f89f31efc/raw/0b0c805b2b5e0455fc4afe9620669fbe7b7cdbb6/get-frida-tools-version.sh | bash -s <frida-version> # default: main
BLOCK
@iwatchme
iwatchme / pdfmerge.py
Created June 6, 2022 10:54
merge pdf
from ast import Str
import os
from turtle import pd
from typing import List
from PyPDF2 import PdfMerger
import argparse
def findFile(rootDir, pdfs, cache):
for root, dirs, files in os.walk(rootDir):
@iwatchme
iwatchme / img2pdf.py
Created June 6, 2022 06:02
convert image to pdf
from ast import main
from cmath import e
import os
import img2pdf
def convertImgsToPdf(dir_name, result_pdf):
imgs =[]
for fname in os.listdir(dir_name):
if fname.lower().endswith(".png") and not fname.lower().startswith("._"):
imgs.append(os.path.join(dir_name, fname))
@iwatchme
iwatchme / img2pdf.py
Created June 6, 2022 06:02
convert image to pdf
from ast import main
from cmath import e
import os
import img2pdf
def convertImgsToPdf(dir_name, result_pdf):
imgs =[]
for fname in os.listdir(dir_name):
if fname.lower().endswith(".png") and not fname.lower().startswith("._"):
imgs.append(os.path.join(dir_name, fname))
@iwatchme
iwatchme / tinypng.py
Created April 10, 2019 02:12
tinypng compress
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import sys
import os.path
import click
import tinify
tinify.key = "GyCpoOlL-tm8NuEmZfxynqACavFkrzTR" # API KEY