Skip to content

Instantly share code, notes, and snippets.

@niklaskeerl
niklaskeerl / customlinks.md
Last active July 10, 2020 17:50
Create your own custom git.io links
@niklaskeerl
niklaskeerl / Thunderbird tips
Last active September 11, 2019 15:52
Correctly wrapping lines for sending mails with thunderbird
Correctly wrapping lines
mailnews.wraplength 0
mail.compose.wrap_to_window_width true
plain_text.wrap_long_lines true
view_source.wrap_long_lines true
Setting the User Agent
@niklaskeerl
niklaskeerl / windows-update-dns-blocklist.txt
Last active May 28, 2024 08:49
Blacklist for DNS Blocking windows updates
windowsupdate.microsoft.com
update.microsoft.com
windowsupdate.com
download.windowsupdate.com
download.microsoft.com
test.stats.update.microsoft.com
ntservicepack.microsoft.com
@niklaskeerl
niklaskeerl / xfce-disable-session-saving.md
Created February 20, 2020 08:17
XFCE disable session-saving feature

Delete existing sessions:

rm -rf ~/.cache/sessions/

Make directory read-only:

chmod -w ~/.cache/sessions/
@niklaskeerl
niklaskeerl / zathura-tips.md
Created February 20, 2020 22:59
Zathura in fullscreen mode

Always start zathura in fullscreen mode:
Add this to your zathura configuration file (~/.config/zathura/zathurarc). The value must be of the size of the screen or higher.

set window-height 3000
set window-width 3000

Start zathura in presentation mode:

@niklaskeerl
niklaskeerl / disable-gravatar.md
Created February 21, 2020 10:23
Disable Gravatar requests on wordpress

What is the issue?

Even if you completely disable avatars on your wordpress website, it will still load avatars from https://secure.gravatar.com when members of your team log into the website. In order to fix this privacy issue we can use a plugin to use a locally stored avatar for scenarios where avatars can't be disabled completely.

Installation

Let's assume your wordpress website is: https://example.com

  1. Log into your worpress website:
@niklaskeerl
niklaskeerl / fix_openstreetmap.md
Created March 12, 2020 11:28
Fix Openstreetmap not displaying map

Fix Openstreetmap

Returning Error code 429

This happens if you use an empty useragent. In firefox you can use the regular useragent by removing the key "general.useragent.override" from "about:config". After that, your map should return the tiles.

@niklaskeerl
niklaskeerl / install_pwndbg.md
Last active April 25, 2024 02:37
Install pwndbg and gdb on arch linux

How to install pwndbg and gdb on arch linux

sudo pacman -S gdb
sudo pacman -S pwndbg
echo 'source /usr/share/pwndbg/gdbinit.py' >> ~/.gdbinit

If you are getting the following error "Cannot find Pwndbg virtualenv directory: /usr/share/pwndbg/.venv: please re-run setup.sh", do the following steps, otherwise ignore:

@niklaskeerl
niklaskeerl / backup.md
Last active May 24, 2024 10:00
Encrypted backup using an external hard drive with luks and timeshift
@niklaskeerl
niklaskeerl / .xpdfrc
Last active July 26, 2020 15:38
xpdfrc configuration file
# to start xpdf always in fullscreen mode
# use this alias xpdf='xpdf -fullscreen'
# set zoom to page
initialZoom page
defaultFitZoom 600
# display mode to single page