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
| services: | |
| rethinkdb: | |
| container_name: rethinkdb | |
| image: rethinkdb:2.4.2 | |
| restart: unless-stopped | |
| volumes: | |
| - "rethinkdb-data:/data" | |
| ports: | |
| - 8080:8080 | |
| #- ${APP_CLIENT_PORT}:28015 |
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 | |
| ## use together with https://github.com/madcamel/acmeproxy.pl | |
| ACMEPROXY_AUTH='user:password' | |
| ACMEPROXY_URL='https://acmeproxy.example.com:9443' | |
| set_challange() { | |
| local DOMAIN="${1}" TOKEN_FQDN="${2}" TOKEN_VALUE="${3}" |
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
| # DO NOT EDIT THIS FILE | |
| # | |
| # Please edit /boot/armbianEnv.txt to set supported parameters | |
| # | |
| setenv load_addr "0x45000000" | |
| setenv overlay_error "false" | |
| # default values | |
| setenv verbosity "1" | |
| setenv console "both" |
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 | |
| #### amf.yaml ausf.yaml nrf.yaml nssf.yaml pcf.yaml smf.yaml udm.yaml udr.yaml upf.yaml | |
| NFLIST={amf,susf,nrf,nssf,pcf,smf,udm,udr,upf} | |
| dostart() { | |
| for nf in $NFLIST; do | |
| echo systemctl start open5gs-${nf}d | |
| 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
| arch: amd64 | |
| cores: 2 | |
| hostname: kodipriv | |
| memory: 2048 | |
| net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=56:94:2A:9A:8E:1B,ip=dhcp,ip6=auto,type=veth | |
| ostype: ubuntu | |
| parent: before_first_boot | |
| rootfs: encrypted_zfs:subvol-103-disk-0,size=8G | |
| swap: 512 | |
| lxc.cgroup2.devices.allow: c 226:* rwm |
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 | |
| #set -x | |
| for drive in sd{a,b,c,d,e,f} | |
| do | |
| rdisk=$drive | |
| ## Warning: this will spin up the disk! | |
| ## TODO: just check for USB and or Vendor ID | |
| if dd if=/dev/$rdisk bs=512 skip=0 count=1 status=none | grep -q BENNVENN ; then |
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 | |
| # Set traps to catch exite signals | |
| trap stopservice SIGINT | |
| trap stopservice SIGKILL | |
| trap stopservice SIGTERM | |
| function stopservice { | |
| if [[ ! -z ${DATA_HANDLE} && ! -z ${CLIENT_CID} ]] | |
| then |
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
| #!/usr/bin/env python | |
| """ | |
| Runs "ip xfrm state" and outputs lines to be added to ~/.wireshark/esp_sa | |
| This process must be run using sudo. | |
| This allows Wireshark to decrypt ipsec traffic captured with 'sudo tcpdump -vni any -U -w /tmp/esp.pcap "ip proto 50"' | |
| """ | |
| import sys | |
| import subprocess |
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
| /* | |
| Battery Guard | |
| Use an arduino nano and connect the input voltage with an voltage divider to A0 | |
| I used 9kOhm and 1kOhm to get a /10 divider to be able to measure up to 50V | |
| Switch points are for a 12v AGM battery. | |
| The relais is controlled via D7. | |
| */ | |
| #define NUM_READINGS 10 | |
| #define RELAIS_PIN 7 | |
| #define ADC_REF 5.0 |
NewerOlder