This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); | |
} | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable hibernation | |
powercfg.exe /h off | |
# Disable USB storage | |
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\UsbStor /v Start /t REG_DWORD /d 4 /f | |
# Allow admin shares | |
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\CLSID\{0E270DAA-1BE6-48F2-AC49-21913FE23B49}] | |
"System.IsPinnedToNameSpaceTree"=dword:00000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}] | |
"System.IsPinnedToNameSpaceTree"=dword:00000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer] | |
"NoNewAppAlert"=dword:00000001 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations] | |
".tif"="PhotoViewer.FileAssoc.Tiff" | |
".tiff"="PhotoViewer.FileAssoc.Tiff" | |
".jpg"="PhotoViewer.FileAssoc.Tiff" | |
".png"="PhotoViewer.FileAssoc.Tiff" | |
".gif"="PhotoViewer.FileAssoc.Tiff" | |
".jpeg"="PhotoViewer.FileAssoc.Tiff" | |
".bmp"="PhotoViewer.FileAssoc.Tiff" |
NewerOlder