Skip to content

Instantly share code, notes, and snippets.

Stefan Siegert sieste

  • Exeter, United Kingdom
Block or report user

Report or block sieste

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sieste
sieste / ParseDate.vim
Created Apr 9, 2018
vimscript function to format a string that describes a date ('now', 'in 2 days 2pm', 'next week'), using pythons `dateparser` module
View ParseDate.vim
" vimscript function takes input string `inp`, hands it to python function `parse` (module `dateparser`),
" and outputs the parsed date in format `fmt`; return `inp` if string could not be parsed to valid date
" Example:
" :echo ParseDate('tomorrow', '%Y %m %d')
function! ParseDate(inp, fmt)
python << endpython
import vim, dateparser as dp
inp = vim.eval('a:inp')
fmt = vim.eval('a:fmt')
inp_parsed = dp.parse(inp, languages=['en','de'],
@sieste
sieste / arch-brother-dcp-j4120dw-installation.md
Last active Sep 21, 2019
Minimal instructions to install Printer/Scanner combo "Brother DCP-J4120DW" under Arch Linux
View arch-brother-dcp-j4120dw-installation.md

General

  • Power up the printer, install cartridges
  • Settings -> Wi-Fi -> Setup-Wizard to connect printer to your network
  • Settings -> Wi-Fi -> TCP/IP, note IP address (mine is 192.168.1.8)
  • check if printer is reachable on the network: ping 192.168.1.8
  • create new user "lp" in group "lp": sudo useradd -s /bin/false -g lp lp

Install printer

  • install driver from AUR: yaourt brother-dcpj4120dw
@sieste
sieste / arch-linux-encrypted-kernel-downgrade
Created Nov 14, 2016
Minimal instructions for kernel downgrade on arch linux with full system encryption using dm-crypt and luks
View arch-linux-encrypted-kernel-downgrade
# Kernel downgrade on ARCH Linux with encrypted file-system
#
# assumes you followed https://gist.github.com/mattiaslundberg/8620837 to set up your system
#
# Credits:
# https://stephentanner.com/restoring-grub-for-an-encrypted-lvm.html
# https://wiki.archlinux.org/index.php/Kernel_Panics
# Boot into archiso live USB
@sieste
sieste / arch-linux-install
Last active Sep 29, 2016 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
View arch-linux-install
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sda bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# This assumes a wifi only system...
You can’t perform that action at this time.