Skip to content

Instantly share code, notes, and snippets.

View ludwigtuerme's full-sized avatar
🎩
Du bi du bi du ba

Luis Torres ludwigtuerme

🎩
Du bi du bi du ba
View GitHub Profile
@ludwigtuerme
ludwigtuerme / SumatraPDF-settings.txt
Created December 19, 2023 01:20 — forked from Mark-Han/SumatraPDF-settings.txt
my user setting file for Sumatra, the PDF viewer on Windows
# For documentation, see http://www.sumatrapdfreader.org/settings3.2.html
MainWindowBackground = #000000
EscToExit = true
ReuseInstance = false
UseSysColors = true
RestoreSession = true
FixedPageUI [
TextColor = #000000
@ludwigtuerme
ludwigtuerme / list-apps.sh
Last active June 22, 2023 03:29
List macOS installed Applications of root and user folder
#!/bin/sh
# Source: https://apple.stackexchange.com/a/182973
mdfind -onlyin /Applications -onlyin ~/Applications kMDItemKind="Application" > ~/Desktop/apps.txt
@ludwigtuerme
ludwigtuerme / Makefile
Last active April 4, 2023 13:18 — forked from bbl/Makefile
Get Makefile root directory absolute path
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
test:
@echo $(ROOT_DIR)
@ludwigtuerme
ludwigtuerme / move-photos.sh
Created December 22, 2022 23:19
exiftool script to move photos from one folder to another. organizes by the year/month/day folder hierarchy. works on macos, not windows.
#!/bin/sh
fromdir=""
todir=""
exiftool -d '%Y/%m/%d' '-Directory<'$todir'/$DateTimeOriginal' $fromdir
@ludwigtuerme
ludwigtuerme / RecursiveSmallestInteger2DArray.java
Last active November 6, 2022 17:14
Recursively find smallest integer in 2D array (Java). Disclaimer: This program does not really make sense.
/**
* Find the smallest integer in a 2D array.
* This program does not really make sense.
*
* @author Luis M. Torres-Villegas
* @version 2022.11.05
*/
public class RecursiveSmallestInteger2DArray {
public static void main(String args[]) {