Skip to content

Instantly share code, notes, and snippets.

View aichingm's full-sized avatar
💭
🪄 Writing Open Source Software

Mario Aichinger aichingm

💭
🪄 Writing Open Source Software
View GitHub Profile
@aichingm
aichingm / lib.h
Created April 6, 2025 11:32
Header Only C Library Template
/*
# License APGL
Copyright (C) 2024 Mario Aichinger <aichingm@gmail.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
@aichingm
aichingm / PKGBUILD
Created October 16, 2018 10:41
ccat PKGBUILD
# Maintainer: Mario Aichinger <aichingm@gmail.com>
pkgname=ccat
pkgver=1.1.0
pkgrel=2
pkgdesc="Colorizes output for cat."
arch=('any')
url="https://github.com/jingweno/ccat"
license=('CUSTOM')
makedepends=('go' 'git')
@aichingm
aichingm / PKGBUILD
Last active April 30, 2018 19:02
A PKGBUILD for the gtk3 version of guake
# Maintainer: Mario Aichinger <aichingm@gmail.com>
pkgname=guake-gtk3-git
pkgver=3.2.0.29.gd6a6ee1
pkgrel=1
pkgdesc="Top-down terminal for Gnome using gtk3 and vte3"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/Guake/guake"
license=('GPL')
depends=('python' 'gtk3' 'libkeybinder3' 'vte-common' 'vte3' 'python-pbr' 'python-gobject' 'gettext' 'gobject-introspection-runtime')
@aichingm
aichingm / ssh-telegram.sh
Last active April 8, 2016 17:11 — forked from matriphe/ssh-telegram.sh
Bash Script to notify via Telegram Bot API when user log in SSH
# save it as /etc/profile.d/ssh-telegram.sh
# use jq to parse JSON from ipinfo.io
# get jq from here http://stedolan.github.io/jq/
USERID="<target_user_id>"
KEY="<bot_private_key>"
TIMEOUT="10"
URL="https://api.telegram.org/bot$KEY/sendMessage"
DATE_EXEC="$(date "+%d %b %Y %H:%M")"
TMPFILE='/tmp/ipinfo-$DATE_EXEC.txt'
if [ -n "$SSH_CLIENT" ]; then