Skip to content

Instantly share code, notes, and snippets.

View heefan's full-sized avatar
💭
Talk is cheap; prove it by doing it.

TIAN heefan

💭
Talk is cheap; prove it by doing it.
View GitHub Profile
@heefan
heefan / remove_wowebook_watermark.py
Last active January 4, 2023 09:15 — forked from roboyoshi/bookFix.py
remove watermark from wowebooks (fuck those guys)
import os
from PyPDF2 import PdfFileReader, PdfFileWriter
from PyPDF2.generic import NameObject, NullObject
"""
This Script overwrites the Watermark which is embedded as a Form on each page with a NullObject
Requires
python -m pip install pypdf2)
python -m pip install pycryptodome==3.15.0
"""
@heefan
heefan / gist:902693841a65c0f8286a70d041b434f4
Created April 10, 2017 03:19 — forked from adamgit/gist:3705459
Automatically create cross-platform (simulator + device) static libraries for Objective C / iPhone / iPad
##########################################
#
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.82
#
# Latest Change:
# - MORE tweaks to get the iOS 10+ and 9- working
# - Support iOS 10+
# - Corrected typo for iOS 1-10+ (thanks @stuikomma)
@heefan
heefan / github.css
Created December 8, 2015 04:43 — forked from theconektd/github.css
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {