Skip to content

Instantly share code, notes, and snippets.

View tommy4st's full-sized avatar

Thomas Wilhelm-Stein tommy4st

  • Technische Universität Chemnitz
  • Chemnitz, Germany
View GitHub Profile
@tommy4st
tommy4st / 99-headless.conf
Created November 10, 2019 10:18
Headless SteamOS
# /usr/share/X11/xorg.conf.d/99-headless.conf
Section "Device"
Identifier "nvidia"
Option "ModeValidation" "NoDFPNativeResolutionCheck,NoVirtualSizeCheck,NoMaxPClkCheck,NoHorizSyncCheck,NoVertRefreshCheck,NoWidthAlignmentCheck"
EndSection
var styles = `
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#slides { display: none; }
.slide { white-space: nowrap; }
.slide-content { align-self: center; }
@tommy4st
tommy4st / strokes2paths.sh
Created October 13, 2015 11:57
Inkscape batch to convert all strokes to paths
for file in *.svg; do inkscape --verb EditSelectAll --verb SelectionUnGroup --verb EditSelectAll --verb SelectionUnGroup --verb EditSelectAll --verb StrokeToPath --verb FileSave --verb FileQuit "$file";done
@tommy4st
tommy4st / bibtex2apa.js
Last active November 9, 2015 13:14
Bookmarklet: Converts BibTex from serveral Sources to APA Style References
(function(){window.open().document.body.innerHTML=(function(txt){
txt = txt.replace(/\\(.)\{?\\?(\w)\}?/g, function(m,p1,p2) {
switch (p1) {
case "`":
return p2 + "̀";
case "'":
return p2 + "́";
case "^":
return p2 + "̂";
case "~":