Skip to content

Instantly share code, notes, and snippets.

View tommasoturchi's full-sized avatar
💫

Tommaso Turchi tommasoturchi

💫
View GitHub Profile
@tommasoturchi
tommasoturchi / hand-modify-pdf.md
Created September 5, 2023 09:40 — forked from senderle/hand-modify-pdf.md
So you want to modify the text of a PDF by hand

So you want to modify the text of a PDF by hand...

If you, like me, resent every dollar spent on commercial PDF tools, you might want to know how to change the text content of a PDF without having to pay for Adobe Acrobat or another PDF tool. I didn't see an obvious open-source tool that lets you dig into PDF internals, but I did discover a few useful facts about how PDFs are structured that I think may prove useful to others (or myself) in the future. They are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.

@tommasoturchi
tommasoturchi / normcore-llm.md
Created August 28, 2023 07:55 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
from selenium import webdriver
from selenium.webdriver.common.by import By
import json
import subprocess
import time
driver = webdriver.Chrome()
driver.get("https://...")
input("Press Enter to continue...")

Keybase proof

I hereby claim:

  • I am tommasoturchi on github.
  • I am tommasoturchi (https://keybase.io/tommasoturchi) on keybase.
  • I have a public key whose fingerprint is DCC1 222E ED6B 5D4F 1118 7CE6 E63C F1E5 7B2D B276

To claim this, I am signing this object:

import {
Mesh,
IcosahedronGeometry,
MeshBasicMaterial
} from 'three';
import {
MeshComponent,
DynamicGeometryModule,
Sphere
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import csv
import webbrowser
import sys
import urllib
if len(sys.argv)>1:
with open("kindle.csv", "r") as f: