Skip to content

Instantly share code, notes, and snippets.

View svenlr's full-sized avatar

Sven Langner svenlr

  • TU Braunschweig
  • Bielefeld
View GitHub Profile
# - Find ALGLIB
# Find the native ALGLIB includes and library
#
# ALGLIB_INCLUDES - where to find Alglib includes
# ALGLIB_LIBRARIES - List of libraries when using Alglib.
# ALGLIB_FOUND - True if Alglib found.
if (ALGLIB_INCLUDES)
# Already in cache, be silent
set (ALGLIB_FIND_QUIETLY TRUE)
@svenlr
svenlr / pdfrmpw
Created February 16, 2019 13:32
A script to remove a password from all PDF files in a directory recursively.
#!/usr/bin/python3
import sys
import os
import shutil
if __name__ == '__main__':
if len(sys.argv) < 3:
print("Usage: pdfrmpw <directory> <password>")
sys.exit(1)
@svenlr
svenlr / DownloadThirdParty.cmake
Created November 29, 2018 16:00
A utility function to download third party libraries as zip or tar.gz archives during CMake's configuration step.
#
# The MIT License (MIT)
# Copyright © 2018 Sven Langner (svenlr)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@svenlr
svenlr / capslock_remap.ahk
Last active April 12, 2023 12:21 — forked from Danik/capslock_remap_alt.ahk
Autohotkey Capslock Remapping Script. Makes Capslock function as a modifier key to get cursor keys etc. on the left side of the keyboard, so you never have to move your hand to the right.
; Capslock Remapping Script
; Danik
; danikgames.com
;
; (modified by svenlr)
; needs modification in order to be used with non-DE layouts
; this file must be saved in ANSI so ö is detected correctly
;
; Functionality:
; - Deactivates capslock for normal (accidental) use.