Skip to content

Instantly share code, notes, and snippets.

View mensinda's full-sized avatar

Daniel Mensinger mensinda

  • Karlsruhe, Germany
View GitHub Profile
@mensinda
mensinda / lockmgr.sh
Created November 26, 2023 22:13
wlroots lock screen manager
#!/bin/bash
set -e
SELF="$(readlink -f "$0")"
### _____ _____ _ _ ______ _____ _____
### / __ \ _ | \ | || ___|_ _| __ \
### | / \/ | | | \| || |_ | | | | \/
### | | | | | | . ` || _| | | | | __
@mensinda
mensinda / font-downloader.py
Created October 16, 2023 10:37
Bootswatch Google web fonts downloader
#!/usr/bin/env python3
from pathlib import Path
from dataclasses import dataclass
import re
import json
import subprocess as S
from textwrap import dedent
FAMILY_FIX_MAP = {
javascript:(async () => { s=document.createElement('script'); s.innerHTML=(await (await fetch(`https://gist.githubusercontent.com/sebast1an99/ca41e69a0fcb3f6c1cceb0bc05668e6e/raw/amd.js?v=${new Date().getTime()}`)).text()); document.body.appendChild(s); })()
@mensinda
mensinda / asciisort.json
Created March 3, 2019 10:46
Sorting files with stupid ASCII
{
"target": {
"exe1@exe": {
"name": "exe1",
"sources": [
"a1.c",
"a10.c",
"a100.c",
"a101.c",
"a110.c",
@mensinda
mensinda / out.json
Created March 3, 2019 10:41
Without ket.split('/')
{
"target": {
"exe1@exe": {
"name": "exe1",
"sources": [
"aaa/a/a1.c",
"aaa/b/b1.c",
"aaa/b/b2.c",
"aaa/f1.c",
"aaa/f2.c",
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
####### Any changes to this file will be overwritten by the next CMake run ####
####### The input file was KF5TextEditorConfig.cmake.in ########
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
# Use original install prefix when loaded through a "/usr move"
# cross-prefix symbolic link such as /lib -> /usr/lib.
get_filename_component(_realCurr "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
get_filename_component(_realOrig "/usr/lib/cmake/KF5TextEditor" REALPATH)
# WARNUNG: This is an automatically generated file
MESON_VERSION=0.50.0
MESON_BUILD_FILES_UP_TO_DATE=0
# Weiter Variablen...
@mensinda
mensinda / meson.build
Created December 30, 2018 16:06
Target stuff
project('gtest', 'cpp', version : '1.8.0', license : 'bsd')
subdir('googletest')
subdir('googlemock')
e = executable('testprog', 't1.cpp', dependencies : gtest_main_dep)
test('gtest test', e)
@mensinda
mensinda / data.txt
Created November 28, 2018 22:27
meson-introspection.json file sizes and proportions
Current project: efl -- 1.3 MB
- benchmarks = 0.6%
- buildoptions = 1.1%
- buildsystem_files = 0.8%
- dependencies = 0.5%
- installed = 28.6%
- projectinfo = 0.0%
- targets = 59.4%
- tests = 9.1%
#!/bin/bash
cd "$(dirname "$0")"
QT_DIR=/mnt/c/Qt/5.9/msvc2017_64/bin
cp "${QT_DIR}/Qt5OpenGL.dll" install/bin