Skip to content

Instantly share code, notes, and snippets.

View dbarelop's full-sized avatar

Daniel Barea dbarelop

  • Munich, Germany
View GitHub Profile
@yifanlu
yifanlu / Ghidra-OSX-Launcher-Script.scpt
Last active February 1, 2025 04:44
Ghidra.app launcher for OSX
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active February 23, 2025 11:44
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@paulirish
paulirish / what-forces-layout.md
Last active February 26, 2025 07:17
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent