Skip to content

Instantly share code, notes, and snippets.


Chris Webb arachsys

View GitHub Profile
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 / proto-qmi.diff
Created Feb 27, 2020
Fix openwrt /lib/netifd/proto/ to allow direct address configuration of qmi interfaces
View proto-qmi.diff
diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/ b/package/network/utils/uqmi/files/lib/netifd/proto/
index 8cbe9e97e7..4aadd57813 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/
@@ -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 / gofmt.patch
Created Jul 21, 2021
Restore support for space indentation in go fmt
View gofmt.patch
diff --git a/src/cmd/gofmt/doc.go b/src/cmd/gofmt/doc.go
index e340665..5cd3c6d 100644
--- a/src/cmd/gofmt/doc.go
+++ b/src/cmd/gofmt/doc.go
@@ -22,6 +22,8 @@ The flags are:
to standard output.
Print all (including spurious) errors.
+ -i width
+ Indent with spaces instead of tabs.
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 / 8N70OS_.PGM
Last active Jul 18, 2021
Fixing CFX PopStudioGrand on Yamaha Montage
arachsys / 8N70OS_.PGM
Last active Jul 18, 2021
Obtaining a shell on Yamaha Montage
arachsys / README
Created Jun 6, 2012
Yamaha YSFC file format
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 / README
Created Jun 12, 2012
Motif XF/XS arpeggio and waveform mapping from 5pinDIN on
Many thanks to 5pinDIN from the 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 / uqmi.patch
Created Feb 20, 2020
Locking fix for 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"
arachsys / openwrt.patch
Created Feb 20, 2020
My local openwrt diff: cosmetics, uqmi bug-fix, and usleep command in ash
View openwrt.patch
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index cf5166772d..f325630bd7 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -147,13 +147,9 @@ define Package/base-files/install
- $(1)/etc/banner \
- $(1)/etc/openwrt_version \