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
#This is currently used by an NTP server to access a V.92 modem over the LAN to dial the NIST ACTS. | |
#The options here work using a USR5686G modem over a PL2303 USB to RS232 adapter with NTP 4.2.8p8. | |
#NTP expects a device called "acts1" at 19200 baud. You should adjust the port number, character device file, baudrate, and lockfile to suit your environment. | |
#NTP will not autobaud after a successful connection using this method. The modem init string in ntpd/refclock_acts.c must be edited to lock the modem to 19200 baud. | |
#A ping test was added to the client to limit the number of retries it makes during a network outage. | |
#These are placed in startup scripts run by a cronjob. | |
#socat-server | |
/usr/bin/screen -dmS socat-server-acts1 /bin/bash -c "while true; do /usr/bin/socat -v -d -d -d -t10 tcp-l:54321,reuseaddr,keepalive file:/dev/ttyUSB0,b19200,nonblock,raw,echo=0,cread,cs8,crtscts,min=1,time=0,nl0,cr0,tab0,bs0,vt0,ff0,waitlock=/var/run/ttyUSB0.lock; done" |
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
*mangle | |
:PREROUTING ACCEPT [0:0] | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
COMMIT | |
*nat | |
:PREROUTING ACCEPT [3530:581109] |
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 | |
###AUTHOR### | |
#Harry Dove-Robinson 5/8/2017 | |
#harry@doverobinson.me | |
#https://gist.github.com/hdoverobinson | |
#https://github.com/hdoverobinson | |
###USAGE### | |
#This is a script used to configure u-blox GPS/GNSS modules from a text file generated by u-center. |
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 | |
###AUTHOR### | |
#Harry Dove-Robinson 12/14/2017 | |
#harry@doverobinson.me | |
#https://gist.github.com/hdoverobinson | |
#https://github.com/hdoverobinson | |
###CONTENTS OF TARGET_DIR WILL BE CLEARED AT EACH RUN### | |
TARGET_DIR="/root/osp-build" |
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 | |
###AUTHOR### | |
#Harry Dove-Robinson 7/27/2017 | |
#harry@doverobinson.me | |
#https://gist.github.com/hdoverobinson | |
#https://github.com/hdoverobinson | |
###USAGE### | |
#This is a script used for out-of-band management by way of DTMF tones over voice calls to a SIMCom cellular modem. |
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 | |
###AUTHOR### | |
#Harry Dove-Robinson 2018-02-08 | |
#harry@doverobinson.me | |
#https://gist.github.com/hdoverobinson | |
#https://github.com/hdoverobinson | |
###NOTES### | |
#Used by wx-star.com for 24/7 operation of Open Satellite Project software for HRIT/EMWIN direct readout | |
#Manages OSP processes inside GNU Screen sessions, performs daily backups and rotation of OSP output data |
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 | |
###AUTHOR### | |
#Harry Dove-Robinson 2018-02-04 | |
#harry@doverobinson.me | |
#https://gist.github.com/hdoverobinson | |
#https://github.com/hdoverobinson | |
###CONTENTS OF TARGET_DIR WILL BE CLEARED AT EACH RUN### | |
DOCKER="$1" | |
TARGET_DIR="/root/osp-build" |
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 | |
LUT="$1" | |
cp "$LUT" /root/osp-build/build/goesdump/XRIT/LUT/falsecolor.png && | |
cd /root/osp-build/build/goesdump/ && | |
rm -rf goesdump/bin/* && | |
msbuild /p:Configuration=Release goesdump.sln && | |
cd goesdump/bin/Release && | |
mkbundle --simple *.exe XRIT.dll -o goesdump && |
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 | |
GOESTOOLS_DIR="/usr/src/goestools" | |
GOESTOOLS_REPO="https://github.com/pietern/goestools.git" | |
BUILD_PACKAGES="apt-utils build-essential ca-certificates cmake git libairspy-dev libopencv* librtlsdr-dev pkg-config" | |
if [ "$EUID" -ne 0 ] | |
then echo "This script must be run as root!" | |
exit 1 | |
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/bash | |
###Installs a minimal NTP on Debian/Ubuntu with ACTS, PPS, and NMEA clock drivers and disables timesync.d### | |
###Installs useful packages for working with PPS and i2c clocks### | |
NTPVERSION_MAJOR="4.2" | |
NTPVERSION_MINOR="8p12" | |
ADDPACKAGES="adjtimex i2c-tools pps-tools" | |
COREPACKAGES="ntp" | |
NTPURL="https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p12.tar.gz" |
OlderNewer