Skip to content

Instantly share code, notes, and snippets.

@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 / DNS-Blacklist
Last active December 14, 2019 10:12
Blacklist for DNS Blocking
windowsupdate.microsoft.com
update.microsoft.com
windowsupdate.com
download.windowsupdate.com
download.microsoft.com
test.stats.update.microsoft.com
ntservicepack.microsoft.com
*.youtube.com
austin.logs.roku.com
*.ytimg.com
@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 / 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 / customlinks.md
Last active July 10, 2020 17:50
Create your own custom git.io links
@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
@niklaskeerl
niklaskeerl / hta.tex
Last active November 18, 2020 14:52
Hierarchial Task Analysis (HTA) latex template
\documentclass[border=10pt,tikz]{standalone}
\usepackage[edges]{forest}
\usetikzlibrary{fit}
\begin{document}
\begin{forest}
for tree={
draw,
align=center
},
@niklaskeerl
niklaskeerl / stakeholder_diagram.tex
Last active November 18, 2020 16:15
Stakeholder diagram latex template
\documentclass[border=10pt,tikz]{standalone}
\usepackage{pgf}
\usetikzlibrary{arrows,automata,shapes,positioning}
\usepackage[latin1]{inputenc}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3.5cm,
semithick]
\tikzstyle{every state}=[ellipse,fill=white,text=black]
@niklaskeerl
niklaskeerl / keymap_solution.md
Last active May 16, 2021 13:05
Keymap not working in arch linux after archinstall

Keymap not working in arch linux after archinstall

Credits: @Torxed archlinux/archinstall#107

The keymap set in the in the archinstall script does not work in your window manager.

Solution (edit the keymap "de" with the one you want):

$ localectl set-keymap "" && localectl set-keymap de
@niklaskeerl
niklaskeerl / .bashrc
Created May 17, 2021 08:36
.bashrc without fish as interactive shell
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '