File | Purpose |
---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
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
server | |
{ | |
listen 80; | |
server_name a.com b.com c.com; | |
location ~* ^/comment/(.*) { | |
proxy_set_header HOST shared.com; | |
# $1 - stores capture from the location on top | |
# $is_args will return ? if there are query params | |
# $args stores query params |
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
import urllib2 | |
# retrieve token | |
url="http://192.168.8.1/api/webserver/token" | |
response = urllib2.urlopen(url) | |
xml=response.read() | |
token=xml[59:-23] | |
print "Got token %s" % token | |
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 | |
# | |
# This version uses September 2017 august stretch image, please use this image | |
# | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi |
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/sh | |
# | |
# Read-only Root-FS for Raspian | |
# | |
# Modified 2016 by Stefan Bonfert to make it compatible with Raspbian | |
# Jessie (vanilla). | |
# | |
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
# overlayfs integrated in Linux Kernel >= 3.18. | |
# |
- Download modified usbloader, which will copy proper busybox into
/system/busybox
and enable telnetd on your device (will add additional line into/system/autorun.sh
). Use it only on E5885, not on other device! - Load it using balong-usbdload. Refer to this disassembling manual.
- After loading, wait about one minute, disconnect device from the computer and power off the device holding power button for ~15 seconds.
- Insert MicroSD card to the device and power it on.
telnet 192.168.8.1 2323
/system/busybox sh
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
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
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 | |
DEFAULT_FAN=65 | |
DEFAULT_MEM=1500 | |
DEFAULT_GPU=150 | |
DEFAULT_POW=200 | |
echo "Setting up ${GPU_COUNT} GPU(s)..." | |
GPU_COUNT="$(nvidia-smi -L | wc -l)" |
Scripts to confgire a group of hosts on a LAN to use VXLAN over Wireguard.
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
OLDNAME=$(hostname) | |
hostnamectl set-hostname ${1} | |
mkdir -p /etc/pve/nodes/${1} | |
cp -a /etc/pve/nodes/${OLDNAME} /etc/pve/nodes/${1} | |
echo 'A reboot is required, Exit with CTRL-C' | |
read |
OlderNewer