Tag hacks

8 bookmarks have this tag.

2025-09-07

149.

KrishKrosh/TrackWeight: Use your Mac trackpad as a weighing scale

github.com/KrishKrosh/TrackWeight

Use your Mac trackpad as a weighing scale. Contribute to KrishKrosh/TrackWeight development by creating an account on GitHub.

148.

samhenrigold/LidAngleSensor: tfw when you when your lid when uhh angle your lid sensor

github.com/samhenrigold/LidAngleSensor
147.

grishka/WidgetSpinner: A fidget spinner for your Mac

github.com/grishka/WidgetSpinner

A fidget spinner for your Mac.

2025-09-02

144.

HTML Includes That Work Today | Filament Group, Inc., Boston, MA

www.filamentgroup.com/lab/html-includes

To load and embed the SVG file, I used the following markup:

<iframe src="signal.svg" onload="this.before((this.contentDocument.body || this.contentDocument).children[0]);this.remove()"></iframe>

Despite the fact that this markup starts out as an iframe, if you inspect the graphic above using developer tools, you’ll see the SVG markup for the icon, inlined right in the HTML DOM, with no iframe element to be found. This is because the code uses an iframe to load the file, and an onload event to inject the iframe’s content just before the iframe in the HTML, before deleting the iframe itself.

2024-12-07

53.

Thunderclap

thunderclap.io

Modern computers are vulnerable to malicious peripheral devices

2024-07-08

32.

Управение регистром букв с помощью CSS

github.com/pietervanheijningen/clickbait-remover-for-youtube/blob/1cb68bff2a5c339a25c8e361419e9876f0cd4824/js/youtube.js#L66-L68

2024-01-29

18.

Dump nginx config from running process?

serverfault.com/questions/361421/dump-nginx-config-from-running-process

# Set pid of nginx master process here
pid=8192

# generate gdb commands from the process's memory mappings using awk
cat /proc/$pid/maps | awk '$6 !~ "^/" {split ($1,addrs,"-"); print "dump memory mem_" addrs[1] " 0x" addrs[1] " 0x" addrs[2] ;}END{print "quit"}' > gdb-commands

# use gdb with the -x option to dump these memory regions to mem_* files
gdb -p $pid -x gdb-commands

# look for some (any) nginx.conf text
grep worker_connections mem_*
grep server_name mem_*

2024-01-28

17.

C Preprocessor tricks, tips, and idioms

github.com/pfultz2/Cloak/wiki/C-Preprocessor-tricks,-tips,-and-idioms