Daily Shaarli

All links of one day in a single page.

July 27, 2022

Ask HN: What are the best programming tricks you know? | Hacker News

You could harden a Linux server by killing the init process. That would cause a kernel panic, and prevent new processes running (e.g. shells). Existing processes like Web servers would continue to function, so you could put this at the end of the boot script :)

I never thought that is possible! Kind of stupidily funny and brilliant at the same time.

Git with Multiple E-Mail Addresses ‒ paedubucher.ch

Or, how to specify different git config (name, email, sign key) for projects under different directories.