Skip to content

Instantly share code, notes, and snippets.

View TheRojam's full-sized avatar
🐧
working w/ ♡

Anton Müller TheRojam

🐧
working w/ ♡
View GitHub Profile
@TheRojam
TheRojam / checkdiskspaceall.yml
Created June 1, 2022 14:42 — forked from goodc0re/checkdiskspaceall.yml
Ansible playbook that checks if there is less than 95% free disk space
# checkdiskspaceall.yml
---
- hosts: zcoin_masternodes
vars_files: vault.yml
become: yes
become_method: sudo
gather_facts: yes
tasks:
- name: Collect only facts about hardware
setup:
@TheRojam
TheRojam / telegram_notification.sh
Created February 25, 2021 18:16 — forked from anson-vandoren/telegram_notification.sh
Travis-Telegram notification script
#!/bin/sh
##########################################################################
# Note: you must have set up your Travis CI environment variables for this
# project to include both TELEGRAM_TOKEN and TELEGRAM_CHAT_ID
# For more details, see the Telegram documentation at:
# - https://core.telegram.org/bots/api
# and the blog posts at:
# - https://ansonvandoren.com/posts/telegram-notification-on-deploy/
# - https://ansonvandoren.com/posts/travis-telegram-integration/
@TheRojam
TheRojam / install-docker.sh
Last active March 10, 2020 18:33 — forked from d1rk/install-docker.sh
install docker on osx
cd
brew update
brew cask install docker
docker version
-- Debian packages nginx-extras, lua-zlib required
ngx.ctx.max_chunk_size = tonumber(ngx.var.max_chunk_size)
ngx.ctx.max_body_size = tonumber(ngx.var.max_body_size)
function create_error_response (code, description)
local message = string.format('{"status":400,"statusReason":"Bad Request","code":%d,"exception":"","description":"%s","message":"HTTP 400 Bad Request"}', code, description)
ngx.status = ngx.HTTP_BAD_REQUEST
ngx.header.content_type = "application/json"
ngx.say(message)
@TheRojam
TheRojam / .gitconfig
Created September 20, 2016 11:55 — forked from leipert/.gitconfig
Useful git aliases
[alias]
## pulling
# git p: pulls all branches, autostashing and rebasing instead of merging
# this is a similiar behaviour to git-up
p = pull --rebase --autostash --all --verbose --no-recurse-submodules
# git smiu: update all submodules recursively (and init them if necessary)
smiu = submodule update --init --recursive
# git up: update current project
up = "!git p && git smiu"