Skip to content

Instantly share code, notes, and snippets.

@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