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
# -*- coding: utf-8 -*- | |
############################################################################## | |
# | |
# -Till Schlueter <mail@tschlueter.eu> 2020 | |
# -GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html | |
# | |
# -This add-on is a modified version of "Print as Flashcards" by Goal | |
# Oriented Academics LLC which is a modified version of the basic printing | |
# add-on by Damien Elmes. | |
# |
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
# -*- coding: utf-8 -*- | |
############################################################################## | |
# | |
# -Till Schlueter <mail@tschlueter.eu> 2018 | |
# -GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html | |
# | |
# -This add-on is a modified version of "Print as Flashcards" by Goal | |
# Oriented Academics LLC which is a modified version of the basic printing | |
# add-on by Damien Elmes. | |
# |
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
#!/bin/sh | |
rm ~/.config/plasma-org.kde.plasma.desktop-appletsrc | |
cp ~/.config/plasma-org.kde.plasma.desktop-appletsrc.orig ~/.config/plasma-org.kde.plasma.desktop-appletsrc | |
killall plasmashell && kstart plasmashell |
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
#!/bin/bash | |
if [ "$#" -ne 2 ]; then | |
echo "Illegal number of parameters" | |
echo "USAGE: karo file.pdf title" | |
exit 1 | |
fi | |
KAROTEMPDIR=$(mktemp -d) | |
PDFBASENAME=$(basename "$1") |
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
#!/usr/bin/env python3 | |
#### TODO: Flexibilität: https://docs.python.org/3.3/library/argparse.html#argparse.ArgumentParser.add_argument | |
import random | |
import hashlib | |
import urllib.request | |
import logging | |
from subprocess import call |
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
Show hidden characters
{ | |
"scope": "text.tex.latex - (string.other.math, meta.environment.math)", | |
"completions": | |
[ | |
{ "trigger": "pc", "contents": "\\parencite[vgl.][$1]$0"}, | |
{ "trigger": "bits", "contents": "\\begin{itemize}[noitemsep]\n\t\\item $0\n\\end{itemize}\n"}, | |
{ "trigger": "fm", "contents": "\\fm{$1}$0"}, | |
{ "trigger": "zf", "contents": "\\zf{$1}$0"}, |
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
#!/bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
for i in ${DIR}/*/.git | |
do | |
echo $i | |
cd $i/.. | |
git pull | |
done |
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
#!/bin/sh | |
OPENPORT="22" | |
NETDEVICE="eth0" | |
MYIPV6=$(ip addr show dev ${NETDEVICE} | grep -P 'inet6 (?!fe80)' | awk '{print $2}' | sed -e "s/\/64//" | sed -e "s/\:/\%3A/g") | |
CSRF=$(curl -s http://192.168.0.1/login.asp | grep -e "\"CSRFValue\"" | sed -e "s/.*value=\(.*\)>.*/\1/") | |
curl -s -d "CSRFValue=${CSRF}&loginUsername=admin&loginPassword=password&logoffUser=1" http://192.168.0.1/goform/login | |
CSRF=$(curl -s http://192.168.0.1/advanced/forwarding.asp | grep -e "\"CSRFValue\"" | sed -e "s/.*value=\(.*\)>.*/\1/") | |
curl -s -d "CSRFValue=${CSRF}&ForwardingPortRange1=${OPENPORT}&ForwardingTargetIp1=${MYIPV6}&ForwardingTargetPort1=${OPENPORT}&ForwardingProtocol1=2&ForwardingPortRange2=0-0&ForwardingTargetIp2=0.0.0.0&ForwardingTargetPort2=0-0&ForwardingProtocol2=0&ForwardingDelete2=1&ForwardingPortRange3=0-0&ForwardingTargetIp3=0.0.0.0&ForwardingTargetPort3=0-0&ForwardingProtocol3=0&ForwardingDelete3=1&ForwardingPortRange4=0-0&ForwardingTargetIp4=0.0.0.0&ForwardingTargetPort4=0-0&ForwardingProtocol4=0&ForwardingDelete4 |
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
@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic); | |
div.postContent { | |
text-align: justify; | |
font-family: "Droid Serif", serif; | |
font-size: 16px; | |
line-height: 24px; | |
} | |
div.cdmContentInner { |
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
#!/usr/bin/wish | |
# ====== .i3/config ====== | |
# # monitor setup | |
# for_window [title="^qscr$"] floating enable | |
# exec --no-startup-id wish /home/ts/.screenlayout/startup.tcl | |
# # XF86Display = Fn+F7 (@Lenovo T440p) | |
# bindsym XF86Display exec --no-startup-id wish /home/ts/.screenlayout/startup.tcl | |
# ======================== | |
# Buttons |
NewerOlder