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 -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 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 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 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
| function Get-WindowsKey { | |
| ## function to retrieve the Windows Product Key from any PC | |
| ## by Jakob Bindslet (jakob@bindslet.dk) | |
| param ($targets = ".") | |
| $hklm = 2147483650 | |
| $regPath = "Software\Microsoft\Windows NT\CurrentVersion" | |
| $regValue = "DigitalProductId4" | |
| Foreach ($target in $targets) { | |
| $productKey = $null | |
| $win32os = $null |
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
| map $http_accept_language $index_redirect_uri { | |
| default "/en/"; | |
| "~(^|,)en.+,ru" "/en/"; | |
| "~(^|,)ru.+,en" "/ru/"; | |
| "~(^|,)en" "/en/"; | |
| "~(^|,)ru" "/ru/"; | |
| } | |
| location = / { | |
| return 302 $index_redirect_uri; |
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 | |
| HASH=$(echo -n "$1" | sha256sum | awk '{print $1}') | |
| if [ -f "/tmp/${HASH}.sln" ]; then | |
| echo "EXEC PLAYBACK /tmp/${HASH}" | |
| exit 0 | |
| fi | |
| cat << EOF > /tmp/${HASH}.json |
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
| [yasay] | |
| ; Configuration variables | |
| exten => s,1,Set(SPEAKER=jane) | |
| same => n,Set(EMOTION=neutral) | |
| same => n,Set(API_KEY=useyourown) | |
| same => n,Set(CACHE_DIR=/tmp) | |
| ; Generate MD5 hash of the text | |
| same => n,Set(MD5_HASH=${MD5("${ARG1}")}) | |
| same => n,Set(FILE_PATH=${CACHE_DIR}/${MD5_HASH}) |
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 -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 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> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <title>Список сотрудников</title> | |
| <style> | |
| a {text-decoration : none} | |
| a:link {color : #000000} |
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
| resource "azurerm_key_vault_certificate" "main" { | |
| name = "${terraform.workspace}-winrmcert" | |
| key_vault_id = var.key_vault_id | |
| certificate_policy { | |
| issuer_parameters { | |
| name = "Self" | |
| } | |
| key_properties { |
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
| # 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 |
NewerOlder