Skip to content

Instantly share code, notes, and snippets.

View K0lb3's full-sized avatar
๐ŸŽ“

Rudolf Kolbe K0lb3

๐ŸŽ“
View GitHub Profile
@K0lb3
K0lb3 / gist:5c4e0f6178513dede5ad685800261235
Created September 30, 2024 12:44
CPython - New Ref or Borrowed Ref
PyDict:
New reference:
PyDict_New
PyDict_Copy
PyDict_SetItem
PyDict_SetItemString
PyDict_Items
PyDict_Keys
PyDict_Values
Borrowed reference:
@K0lb3
K0lb3 / Twitter Guest Search.py
Last active May 3, 2025 17:03
public Twitter search as json
import requests
import re
class Twitter:
def __init__(self):
self.s = requests.Session()
self.get_tokens()
def get_tokens(self):
@K0lb3
K0lb3 / t-online_add_removal.user.js
Last active October 19, 2020 14:06
GreaseMonkey script for the removal of adds of the T-Online Email
// ==UserScript==
// @name T-Online Email - Add removal
// @version 1
// @grant none
// @match *://email.t-online.de/*
// ==/UserScript==
// remove add elements
function removeElementById(id){
var elem = document.getElementById(id);
from PIL import Image
fp = "lena.png"
# extrahiere Nachricht vom Bild
extracted_bin = []
with Image.open(fp) as img:
data = img.tobytes()
for i in range(0, len(data)//8):
extracted_bin.append(data[i]&1)
from mwclient import Site
import os
import re
import json
from lib import PATH, resPath
page_path = os.path.join(resPath, 'pages')
pages = {fp: open(os.path.join(page_path, fp), 'rb').read().decode('utf8') for fp in os.listdir(page_path)}
# download pages