This file contains 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 | |
# Author: Besmir Zanaj, 2024 | |
# This is a very raw script to backup configs (no logs and no stats) from a technitium server | |
# to another | |
# | |
# first create two tokens: one on the source server and another one on the destination one | |
# fill out the vars below | |
# create a cronjob with this script on the destinaton host | |
# eg: |
This file contains 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
#include <curses.h> | |
#include <signal.h> | |
#define RED_RED 9 | |
#define WHITE_BLACK 10 | |
#define WHITE_WHITE 11 | |
void done(); | |
void rszf(); | |
void drwc(); |
This file contains 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
#!/usr/bin/env bash | |
# This script creates and activates a container when run as root. | |
# The file names used are from Ubuntu 18.04. | |
# Create the filesystem. | |
# It will only contain bash, ls, and the libraries to run them. | |
mkdir -p container-demo/{bin,lib,lib64,sys} | |
# Mount /sys into the filesystem to control cgroups. | |
mount --rbind /sys container-demo/sys |