Skip to content

Instantly share code, notes, and snippets.

View tik0's full-sized avatar
🤖
Beep Boop!

Timo Korthals tik0

🤖
Beep Boop!
  • University Bielefeld
View GitHub Profile
@tik0
tik0 / build-instructions
Last active February 4, 2020 00:39 — forked from mattseymour/build-instructions
Build Python 3.6 from source for Ubuntu and Debian
Prerequisties install:
- sudo apt-get install build-essential checkinstall
These are the dependancies required by python:
- sudo apt-get install libbz2-dev libc6-dev libgdbm-dev libncursesw5-dev libreadline-gplv2-dev libssl-dev libsqlite3-dev tk-dev
Download the tar source file from python.org (at the time of writing 3.6.1 is the latest release):
- wget -O ~/Downloads/python3.6.1.tgz https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
Via command line navigate to the downloaded file directory:
@tik0
tik0 / export-chrome-bookmarks.js
Last active January 3, 2018 11:39 — forked from bgrins/export-chrome-bookmarks.js
Reminder of how to export bookmarks from Chrome as text.
/*
Export bookmarks from Chrome as text.
Go to Bookmarks Manager->Organize->Export to HTML file.
Then open that file with chrome, open console (Ctrl+Shift+J) and run this command:
*/
[].map.call(document.querySelectorAll("dt a"), function(a) {
return a.textContent + " - " + a.href
}).join("\n");
@tik0
tik0 / master2single.py
Last active March 31, 2020 08:37 — forked from restrepo/master2single.py
Convert a LaTeX master file into a flatten LaTeX with all the files included
#!/usr/bin/env python
# Author: Timo Korthals <tkorthals@cit-ec.uni-bielefeld.de>
# Template by https://gist.github.com/restrepo/4207109
# Function:
# Convert a master latex file
# into a single document by including hierarchically
# automatically all the LaTeX documents
# which are arguments of
# \include, \input, or \import
# ignoring any \includeonly