Skip to content

Instantly share code, notes, and snippets.

@TheJoeSchr
TheJoeSchr / index.html
Created July 26, 2021 16:39
Vue 3 SVG Graph Example
<!-- template for the polygraph component. -->
<script type="text/x-template" id="polygraph-template">
<g>
<polygon :points="points"></polygon>
<circle cx="100" cy="100" r="80"></circle>
<axis-label
v-for="(stat, index) in stats"
:stat="stat"
@TheJoeSchr
TheJoeSchr / padVideo.bat
Created January 24, 2021 13:59
Pad a video with an image using ffmpeg
rem you need to download ffmpeg from here:
rem https://ffmpeg.org/download.html
rem This batch file pads a
rem a video with an given image
rem its called like this
rem padVideo.bat videoname.mp4 paddingImage.jpg 2:00:00
rem this would pad a 1920x1080 video to 2:00:00.
@TheJoeSchr
TheJoeSchr / mergerfs.strace.txt
Created September 13, 2020 10:03
strace -f -p <mergerfsPID> -o
71481 read(3, <unfinished ...>
71480 read(3, <unfinished ...>
71479 read(3, <unfinished ...>
71478 read(3, <unfinished ...>
71477 futex(0x7ffde91cf420, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
71480 <... read resumed>"8\0\0\0\3\0\0\0\4\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\350\3\0\0\350\3\0\0"..., 1052672) = 56
71480 mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f7c1c000000
71480 munmap(0x7f7c20000000, 67108864) = 0
71480 mprotect(0x7f7c1c000000, 135168, PROT_READ|PROT_WRITE) = 0
71480 geteuid() = 1000
@TheJoeSchr
TheJoeSchr / .spacemacs
Last active January 16, 2018 19:38
evil-easymotion
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(setenv "SSH_ASKPASS" "git-gui--askpass") ;; for git ssh-agent
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
@TheJoeSchr
TheJoeSchr / AutoHotkey.ahk
Last active January 14, 2018 13:54
Autohotkey Script to change XonarSwitch profiles
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.