Skip to content

Instantly share code, notes, and snippets.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDFKxJUldo0Rkl4+GVT4DwfKikeQ/I57RzXNeL1bBYRzcjkgo+UT9A0EEz2E2hLffrTzigtdyCk8JeP0tk4OBtwRe7iAV3bwHUzexxfkaWi0UWn1Igs3RbwdW0Y7TqRQKotKHJDZg5Q0gV5QajOD2Y99cwfjtE+SmYlhx3YC5xP4+Sr2JODUsCHyQcZVHGj2Wil0gSrbpiJTMoTEjFwybEWprAsmqrnqKpKGt8aUtdICZM5XyCah94y9chII5dTRM518WNSnkQpqUyNwSTn67wOta7elvoWO0abMAlN57aRCo7ruC3+opL8eEnhaNFq1wAqu4eA9RUvcItdvNpOojGj+L/SkckJIiYa2qZAUS8NQDmud/Kpy5p1lVpy1ILgiANxuTdAU2FI7KNy69Icq3S/LOfbuqr4gbiZMwuh5og5ogdWwimrSheMd0fZ3S0XT8F5CK4hNzQKhsVftD92sjAN0XvfJLrAN193xvIHWNAIiKJREmdXLXs/pcKJ7lqWDsXfdRP7XZ0/ixPnWrmMpWitgySogsJblPeN+PwOUgZdRghgkmA/YP7fwt4lfPxEsvwUwbTeshdXCPsrCejyJkRXLqLk4sKgKHDoeOgiobL0YWzHCGTUKegPJIOuwMF5qpqfURJeJiCU3I5zUKld6OYUx8rWNa7oyd7RELFrk7kPvw==
@slm0n87
slm0n87 / gist:5acdaf4a31c9606b00282b30383cce05
Last active August 5, 2021 17:05
check therme erding reservations
#!/bin/bash
# replace day by your wishday
# replace your-email-address by your-email-address
# run this script as cron
curl -s 'https://thermenreservierung.de/erding/index.php?task=get_day_time_line_service&tmpl=component' --data 'id_emp=-1&id_ser=1&day=1628460000&people=1&locations=' | jq . | head -n 17
diff -u /root/response /tmp/response || diff -u /root/response /tmp/response | mail -s 'Therme Erding timeslot changed' your-email-address
@slm0n87
slm0n87 / README.md
Created March 13, 2020 15:13 — forked from claytonrcarter/README.md
Bash script to check GitLab pipeline status

A super simple bash script to check the status of a GitLab CI pipeline.

$ git push
...
$ git pipeline-status
Status of last pipeline for user/project on gitlab/master:
"pending"
...
$ git pipeline-status
#!/bin/bash
trap bashtrap INT TERM
bashtrap()
{
exit 5
}
@slm0n87
slm0n87 / restore-firefox-helper
Last active May 25, 2019 15:28
recover important data within firefox
#!/bin/bash
# This recovers the following data from an old or restored firefox profile:
# places.sqlite: Bookmarks, Downloads and Browsing History
# favicons.sqlite: Website favicon images
# key4.db,logins.json: Website passwords
# permissions.sqlite: Per-site permissions (set cookies,installing extensions, showing images, displaying popups, etc)
# search.json.mozlz4: User-installed search engines
# persdict.dat Any custom word added to Firefox's dictionary
# formhistory.sqlite: Searches in the Firefox search bar, forms on websites
@slm0n87
slm0n87 / php-fpm-cli
Last active February 28, 2019 13:22 — forked from muhqu/php-fpm-cli
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <[email protected]>
#
# 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
@slm0n87
slm0n87 / create_chrootjail.sh
Created October 31, 2018 21:00 — forked from schnell18/create_chrootjail.sh
Script to automate the creation of chroot jail w/ minimal executables to run git.
#!/bin/sh
# script to automate the creation of chroot jail
# w/ minimal executables to run git
export CHROOT=/var/chroot
function copy_binary() {
for i in $(ldd $*|grep -v dynamic|cut -d " " -f 3|sed 's/://'|sort|uniq)
do
cp --parents $i $CHROOT