Skip to content

Instantly share code, notes, and snippets.


Christoph Matthies chrisma

View GitHub Profile
chrisma /
Last active Apr 20, 2020
Get BibTeX entry from
wget -qO- --header="Accept: application/x-bibtex" ""
chrisma /
Last active Mar 10, 2020
Coding exercise
#!/usr/bin/env python3
# In this bonus challenge, you'll need to check the winner of the battle but this time, a sorcerer wins if he succeeds in winning 3 spell clashes in a row.
# 1. Create variables POWER, gandalf and saruman as seen above.
# spells have names, dictionary that associates that name to a power.
'Fireball': 50,
chrisma /
Created Mar 6, 2019
Minify .bib files to contain only references cited in a paper. Remove abstracts.
bibexport -o extracted.bib main.aux
echo "delete.field = { abstract }" > remove-abs.rsc && bibtool -r remove-abs.rsc extracted.bib -o minified.bib
View gist:437820ce15db30770975e47750c7dd0e
sudo apt install libresample1
sudo gdebi libavutil52_9.18-0ubuntu0.14.04.1_amd64.deb
sudo gdebi libswscale2_9.18-0ubuntu0.14.04.1_amd64.deb
# Download clickshare deb
sudo gdebi clickshare_01.07.01-79_amd64.deb
chrisma /
Created Jun 6, 2018
postactivate script to show current Python version in virtualenv
# This hook is sourced after this virtualenv is activated.
echo $fg_bold[green] $(python --version)
echo $fg_bold[green] $(which python)
chrisma /
Created Jan 22, 2018
Python GUI for reMarkable sync script
#!/usr/bin/env python3
import os
import tkinter as tk
from tkinter import filedialog
from tkinter import ttk
from tkinter import scrolledtext
import time
import threading
chrisma /
Created Dec 12, 2017
Disable notifications on startup by Guake Terminal 0.8.8
guake --no-startup-script # Should give info on how to disable popups
# For Guake Terminal 0.8.8 the following command is used
gconftool-2 --type bool --set /apps/guake/general/use_popup false
chrisma / change_login_background.txt
Last active Dec 4, 2017
Change login screen background Ubuntu 17.10 using GDM
View change_login_background.txt
sudo cp ~/Pictures/landscape.png /usr/share/backgrounds/
xhost +local: && sudo gedit /etc/alternatives/gdm3.css
#lockDialogGroup {
background: #000000 url(file:///usr/share/backgrounds/landscape.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center; }
chrisma / latex-cheatsheet-template.tex
Created Sep 22, 2017 — forked from alexander-yakushev/latex-cheatsheet-template.tex
Beautiful cheatsheet template for key bindings, compiled with XeLaTeX
View latex-cheatsheet-template.tex
chrisma /
Created May 8, 2017
Use an API in Python
from requests import get
# Some more ideas:
data = get('').json()
joke = data['value']
print joke
You can’t perform that action at this time.