Skip to content

Instantly share code, notes, and snippets.

View diamondo25's full-sized avatar
🔥
rm -rf --no-preserve-root /

Erwin Oegema diamondo25

🔥
rm -rf --no-preserve-root /
View GitHub Profile
@diamondo25
diamondo25 / custom.css
Created January 31, 2019 10:20 — forked from RobThree/custom.css
Maak je Tweakers.net frontpage weer bruikbaar
#categoryBar, .fpaItemsWrapper, .inbetweenContent, #highlightedProducts, .secondColumn {
display: none;
}
table.highlights td {
padding: 0;
line-height: normal;
}
.mainColumn {
width: 100% !important;
}
@diamondo25
diamondo25 / cpubenchmark-extractor.js
Last active April 27, 2019 11:25
CPU Benchmark data extractor
function nameToShortName(name) {
var x = name.match(/(.* ([EiWA][0-9]+[^ ]+).*)/);
if (x != null) return x[2];
x = name.match(/(.* ([A-Za-z-]*[0-9]{3,}[A-Za-z-]*)( .*|$))/);
if (x != null) return x[2];
return name;
}
var results = {};
@diamondo25
diamondo25 / script.py
Last active February 22, 2021 18:54
Fix letsencrypt symlinks from /live to point to correct /archive entry
#!/usr/bin/env python3
# Just run this program. It'll find all 'archived' letsencrypt certs,
# and sets up the corresponding live/ entries.
# This solves the following error:
# CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlink
import os
import re
@diamondo25
diamondo25 / gist:3bccf81d44c6a5bf34792921a0d4cc78
Created April 8, 2025 22:27
IDC search for CC's and define instructions
auto next = ScreenEA(), i = 0; for (i = 0; i < 2000; i++) { next = find_binary(next, 0x02 | 0x01, "CC CC CC"); while (byte(next) == 0xCC) { next = next + 1; }; create_insn(next); }; jumpto(next);