Skip to content

Instantly share code, notes, and snippets.

javascript:(function () { var i, elements = document.querySelectorAll('body *');
for (i = 0; i < elements.length; i++) {
if (["sticky", "fixed"].includes(getComputedStyle(elements[i]).position)) {
elements[i].parentNode.removeChild(elements[i]);
}
}
})();
sudo apt install mono-runtime
wget https://updates.duplicati.com/beta/duplicati_2.0.3.3-1_all.deb
sudo dpkg -i duplicati_2.0.3.3-1_all.deb
sudo systemctl enable duplicati
sudo systemctl start duplicati
rm duplicati_2.0.3.3-1_all.deb
# Then open your browser and go to http://localhost:8200
<?php namespace NZTim\Connect\WordPress;
use WP_Filesystem_Base;
/** Adapted from https://www.smashingmagazine.com/2015/08/deploy-wordpress-plugins-with-github-using-transients/ */
class Updater
{
/** @var string */
protected $pluginFile;
/** @var array */
@nztim
nztim / [email protected]
Created December 27, 2022 18:55 — forked from guettli/[email protected]
Reliable persistent SSH-Tunnel via systemd (not autossh)
# Reliable persistent SSH-Tunnel via systemd (not autossh)
# https://gist.github.com/guettli/31242c61f00e365bbf5ed08d09cdc006#file-ssh-tunnel-service
[Unit]
Description=Tunnel for %i
After=network.target
[Service]
User=tunnel
ExecStart=/usr/bin/ssh -o "ExitOnForwardFailure yes" -o "ServerAliveInterval 60" -N tunnel@%i