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
# 1.1.4 Ensure nodev option set on /tmp partition | |
# 1.1.5 Ensure nosuid option set on /tmp partition | |
if node['filesystem']['by_mountpoint']['/tmp'] and node['platform_version'] >= 7 | |
mount '/tmp' do | |
device node['filesystem']['by_mountpoint']['/tmp']['device'] | |
fstype node['filesystem']['by_mountpoint']['/tmp']['fs_type'] | |
# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/sect-using_the_mount_command-mounting | |
options 'defaults,noquota,nodev,nosuid' | |
action [:remount, :enable] | |
end |
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 python3 | |
import ssl | |
import socket | |
import datetime | |
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKCYAN = '\033[96m' |
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 -ex | |
# Script will install multiple ADS-B feeders to ARM64 microcomputers like Orange Pi | |
# Before running make sure you have your coordinates (lat/lon in a form of DD.DDDD) and antenna height (in both feet and m) handy. | |
# https://discussions.flightaware.com/t/package-install-of-piaware-ver-7-2-on-arm64-aarch64-and-amd64-x86-64-machines/81136/4 | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as 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
# /etc/systemd/system/vdlm2dec.service | |
[Unit] | |
Description=Runs vdlm2dec as a service | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
Type = exec | |
ExecStart=/usr/local/bin/vdlm2dec -q -G -i JD-KJFK0-VDL2 -j feed.acars.io:5555 -r 0 136.650 136.800 136.975 |
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 -ex | |
# This script will install number of feeders to receive, decode and feed ACARS and VDL messages | |
# Optimized for Raspberry Pi | |
# See: https://app.airframes.io/about | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as 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
apt update | |
apt remove docker docker-engine docker.io containerd runc | |
apt install -y apt-transport-https ca-certificates curl software-properties-common gnupg curl lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
apt update | |
apt install -y docker-ce docker-ce-cli containerd.io mc fail2ban htop git iotop lsof ufw docker-compose | |
systemctl status docker | |
ufw allow ssh |
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 -ex | |
# Script will install multiple ADS-B feeders to Raspberry Pi OS | |
# Before running make sure you have your coordinates (lat/lon in a form of DD.DDDD) and antenna height (in both feet and m) handy. | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as 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
#!/usr/bin/env python3 | |
# This script will find out what strong messages percentage is and | |
# advise you to tune gain to keep it in range from 0.5% to 5%. | |
# Can be used as one-liner on some systems: | |
# python3 <(curl -s https://gist.githubusercontent.com/varnav/b16a8a47a1d8933cf78a5cdf7d7aa24e/raw/811afe852797845931b528e8e82f13b45c864ed4/gain-advisor.py) | |
# Evgeny Varnavskiy 2021 | |
# https://gist.github.com/varnav/ |
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 python3 | |
import datetime | |
import click | |
import requests | |
import xmltodict | |
from openpyxl import load_workbook | |
@click.command() |
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
# apt update && apt install -y braa parallel | |
sysctl -w net.core.rmem_max=26214400 | |
cd /opt/observium | |
braa -d 15000 -p 300 'public'@10.240.0.1-10.240.255.254:.1.3.6.1.2.1.1.5.0 | cut -d ":" -f4 | parallel ./add_device.php |
NewerOlder