Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Webb arachsys

View GitHub Profile
@arachsys
arachsys / igctokml
Created May 30, 2012
Script to convert IGC files to KML for Google Maps
View igctokml
#!/bin/perl -w
use File::Basename;
use Getopt::Std;
use List::Util qw(sum);
use POSIX;
use XML::Generator;
use strict;
sub usage() {
@arachsys
arachsys / proto-qmi.diff
Created Feb 27, 2020
Fix openwrt /lib/netifd/proto/qmi.sh to allow direct address configuration of qmi interfaces
View proto-qmi.diff
diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index 8cbe9e97e7..4aadd57813 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -19,6 +19,7 @@ proto_qmi_init_config() {
proto_config_add_string modes
proto_config_add_string pdptype
proto_config_add_int profile
+ proto_config_add_boolean dhcp
proto_config_add_boolean dhcpv6
@arachsys
arachsys / README
Last active Jul 3, 2022
Notes on making a signed software release
View README
Making a new-style signed git tag
=================================
With git configured to use ssh-ed25519 signing, create a signed tag called
NAME-VERSION with
git tag --message=NAME-VERSION --sign NAME-VERSION
Making an old-style signed software release
@arachsys
arachsys / detach.c
Last active Feb 6, 2022
Run programs on a pty and capture stdout
View detach.c
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <pty.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char **argv) {
char buffer[BUFSIZ];
@arachsys
arachsys / fmt.patch
Created Jul 21, 2021
Disable double spaces between sentences in GNU fmt
View fmt.patch
diff --git a/src/fmt.c b/src/fmt.c
index d1e3bc3..6c5f982 100644
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -40,7 +40,7 @@
"best". Adjust to taste, subject to the caveats given. */
/* Default longest permitted line length (max_width). */
-#define WIDTH 75
+#define WIDTH 76
@arachsys
arachsys / 8N70OS_.PGM
Last active Jul 18, 2021
Fixing CFX PopStudioGrand on Yamaha Montage
@arachsys
arachsys / 8N70OS_.PGM
Last active Jul 18, 2021
Obtaining a shell on Yamaha Montage
@arachsys
arachsys / README
Created Jun 6, 2012
Yamaha YSFC file format
View README
Brief notes on the Yamaha-YSFC file format (version 1.0.2)
==========================================================
All Motif XF native files (X3A, X3G, X3V, etc) have an identical structure. The
extension just identifies which data types are contained within that structure
for the purposes of user interface.
32-bit and 16-bit quantities mentioned below are unsigned and stored in
big-endian byte ordering unless otherwise described.
@arachsys
arachsys / README
Created Jun 12, 2012
Motif XF/XS arpeggio and waveform mapping from 5pinDIN on motifator.com
View README
Many thanks to 5pinDIN from the motifator.com forum for compiling this
invaluable list.
Columns in arpeggios.csv are (in order)
- XF arpeggio number
- XF main category
- XF sub category
- XF arpeggio name
- XS arpeggio number (-1 if not available)
@arachsys
arachsys / uqmi.patch
Created Feb 20, 2020
Locking fix for git://git.openwrt.org/project/uqmi.git
View uqmi.patch
diff --git a/dev.c b/dev.c
index bd10207..d14255a 100644
--- a/dev.c
+++ b/dev.c
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <sys/file.h>
#include "uqmi.h"