Skip to content

Instantly share code, notes, and snippets.

View AngellusMortis's full-sized avatar

Christopher Bailey AngellusMortis

  • Multi Media LLC
View GitHub Profile
# a general "room" yaml file.
# all of the other rooms are essentially the same
# the only differences are the parameters for the `glanece` card and the `room` template
title: Foyer
icon: mdi:door
type: custom:vertical-stack-in-card
cards:
- type: glance
show_header_toggle: false
columns: 3
@AngellusMortis
AngellusMortis / .gs_config.json
Created December 16, 2017 15:31
Example gs_manger config for ARK cluster
{
"type": "ark",
"user": "ark",
"name": "ark_test",
"ark_options": {
"UseBattleEye": null,
"excluseivejoin": null,
"NoTransferFromFiltering": null,
"clusterid": "test-cluster"
},
@AngellusMortis
AngellusMortis / post-merge
Last active September 26, 2016 17:11 — forked from GianlucaGuarini/post-merge
Git hook that gets triggered after any 'git pull' whenever one of the files specified has changed. Useful to update any web application dependency using bower npm or composer
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# forked by Gianluca Guarini
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep -E --quiet "$1" && eval "$2"
}
@AngellusMortis
AngellusMortis / dynmotd.py
Last active April 7, 2021 16:46
Dynamic MOTD
#!/usr/bin/env python
"""
Awesome dynmaic motd script. Displays a bunch of useful information such as
your public IP, uptime, and CPU/RAM/Disk usages
Requirements
install these with `pip install <requirement>`, may need to install
python-pip from system package manage
* colorama (ASNI terminal color support)
@AngellusMortis
AngellusMortis / Minecraft Server Manager
Created April 16, 2015 23:45
A command to manage a minecraft server (start, stop, restart, backup, commands)
#!/bin/bash
#Settings
# Service should be unique with no shared words between any other servers running
SERVICE='rsmc-dev'
# Seconds to wait before checking if started
START_WAIT=3
# Seconds to wait before checking if stop
STOP_WAIT=30
# Seconds to wait before restarting (between start/stop)