Skip to content

Instantly share code, notes, and snippets.

"Zeilennummern
set number
"relative linenumbers
"set relativenumber
"Syntax Highlighting
filetype plugin on
syntax on
"enable mouse support
set mouse=a
"make arrow keys be able to change line
@Schnabulator
Schnabulator / Pihole Vagrantfile
Last active June 17, 2020 18:40
start a bridged vm with static ip (change if necessary). After this script runned just ssh into the machine and start the install_pihole.sh skript
# mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
#0#R0're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@Schnabulator
Schnabulator / massmove.py
Created August 28, 2020 11:16
move this file into a directory from which you want all files with a specific ending get moved to another ending.
import os.path
from os import listdir
from os.path import isfile, join
mypath="./"
targetdir=mypath+"./"
sourceending="php"
targetending="jpg"
dirs = [f for f in listdir(mypath) if not isfile(join(mypath, f))]
# print(dirs)
@Schnabulator
Schnabulator / LED
Created August 30, 2020 08:55 — forked from vschlegel/LED
For controling the TW-1264 LED Display, available on HAM RADIO 2016, using an Arduino Nano. Vllt zum ne Uhr bauen
//CC BY NC SA 2016 github.com/ioeides
int latchPin = 8;
int clockPin = 12;
int dataPin = 11;
int numbers[10] = {0, 48, 91, 121, 116, 109, 111, 56, 127, 125};
/*
* ###8###
* # #