CSS 雷达 动画
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> | |
| <!-- The following HTML page together with the accompanying | |
| javascript is published under the Unlicense. | |
| SPDX-License-Identifier: Unlicense | |
| --> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Air traffic map</title> |
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
| wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdb.gpg > /dev/null | |
| export DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -sc) | |
| echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list > /dev/null | |
| sudo apt-get update && sudo apt-get install influxdb2 | |
| sudo chmod +x /etc/init.d/influxdb | |
| sudo chown root:root /etc/init.d/influxdb | |
| sudo update-rc.d influxdb defaults | |
| sudo update-rc.d influxdb enable |
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
| // Import Flux date package: https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/date/ | |
| import "date" | |
| // Import Flux dictionary package: https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/dict/ | |
| import "dict" | |
| bucket = "mybucket" | |
| // Work with data collected in the past 5 minutes | |
| start = -5m | |
| stop = now() |
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
| import RPi.GPIO as GPIO | |
| import threading | |
| GPIO.setmode(GPIO.BCM) | |
| GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
| i = 0 | |
| # Source: http://stackoverflow.com/a/14035296/2094521 | |
| def set_interval(func, sec): | |
| def func_wrapper(): |
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
| #/etc/systemd/system/test.service | |
| [Unit] | |
| Description=Test Systemd Service | |
| [Service] | |
| ExecStartPre=/usr/bin/echo -e "\033[0;33m Pre start \033[0m" | |
| ExecStart=/usr/bin/sleep 10 | |
| ExecStartPost=/usr/bin/echo -e "\033[0;33m Post start \033[0m" |
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
| # ----- | |
| from pymodbus.client.sync import ModbusSerialClient | |
| import serial.rs485 | |
| ser = serial.rs485.RS485(port='/dev/ttyAMA0', baudrate=1200) | |
| ser.rs485_mode = serial.rs485.RS485Settings(rts_level_for_tx=False, | |
| rts_level_for_rx=True, | |
| delay_before_tx=0.0, | |
| delay_before_rx=-0.0) |
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
| sudo apt-get install -y gpsd | |
| sudo apt-get install -y gpsd-clients | |
| sudo apt-get install -y python-gps | |
| sudo apt-get install -y libcap-dev | |
| sudo apt-get install -y pps-tools | |
| echo console=ttyACM0,115200 >> /boot/cmdline.txt | |
| # edit /etc/rc/local and add (before the exit 0) | |
| # sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock |
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 1X deployment automation tool as well!
awesome gui dialogs to pick windows version and preset action
Auto Setup choice for upgrade directly without prompts, with edition change / intelligent fallback
Create ISO choice for authoring iso file directly via DIR2ISO snippet, including any 'oem' customizations
Create USB choice for authoring usb via native MCT, including any 'oem' customizations (prompts once)
Select in MCT choice for vanilla MCT processing without 'oem' modifications, script quits straightway
control via set script vars, commandline parameters or rename script likeiso 21H2 Pro MediaCreationTool.bat
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
| # ------------------------------------------------ | |
| # Config files are located in /etc/wireguard/wg0 | |
| # ------------------------------------------------ | |
| # ---------- Server Config ---------- | |
| [Interface] | |
| Address = 10.10.0.1/24 # IPV4 CIDR | |
| Address = fd86:ea04:1111::1/64 # IPV6 CIDR | |
| PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # Add forwarding when VPN is started | |
| PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE # Remove forwarding when VPN is shutdown |
NewerOlder
