This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Tested on Vultr as of Nov 21, 2019 | |
groupadd docker | |
usermod -aG docker birkhoff # add birkhoff to docker group | |
newgrp docker | |
yum remove -y docker \ | |
docker-client \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested on a Vultr CentOS 8 server. Run with root! | |
yum install -y openssl-devel gcc-c++ python3-devel libacl-devel | |
dnf install -y redhat-rpm-config | |
pip3 install virtualenv | |
virtualenv --python=python3 borg-env | |
source borg-env/bin/activate | |
pip3 install borgbackup | |
# Borgmatic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
collectd: | |
image: fr3nd/collectd | |
privileged: true | |
network_mode: host | |
volumes: | |
- /proc:/mnt/proc:ro | |
- ./collectd.conf:/etc/collectd/collectd.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let d = new Date() | |
d.setDate(d.getDate() - 1) | |
const date = d.toISOString().split('T')[0] | |
const RssToEmail = require('rss-to-email') | |
const config = { | |
accentColor: "red", | |
header: { | |
link: "", | |
title: "RSS Feed" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import glob | |
import platform | |
import re | |
import random | |
import string | |
print('Change ID of Teamviewer for macOS') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://unix.stackexchange.com/a/259254/301433 | |
bytesToHuman() { | |
b=${1:-0}; d=''; s=0; S=(Bytes {K,M,G,T,P,E,Z,Y}iB) | |
while ((b > 1024)); do | |
d="$(printf ".%02d" $((b % 1024 * 100 / 1024)))" | |
b=$((b / 1024)) | |
let s++ | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
... | |
<script> | |
// don't load bootstrap - confluence does not need this | |
var netdataNoBootstrap = true; | |
var netdataTheme = 'white'; | |
var netdataPrepCallback = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const encode = s => Buffer.from(s).toString('base64') | |
const decode = s => Buffer.from(s, 'base64').toString() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp /etc/docker/daemon.json /etc/docker/daemon.json.old | |
echo '{"iptables": false}' > /etc/docker/daemon.json | |
firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 -o eth0 -j MASQUERADE # this enables containers access outside internet | |
firewall-cmd --reload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const querystring = require('querystring') | |
let args = process.argv.slice(2) | |
if (!args[0]) { | |
console.error("Usage: node index.js [subscribe_list_base64_encoded]") | |
process.exit(1) | |
} |