Skip to content

Instantly share code, notes, and snippets.

View tomtastic's full-sized avatar

Tom Matthews tomtastic

  • Amazon AWS
  • London
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tomtastic on github.
  • I am tomtastic (https://keybase.io/tomtastic) on keybase.
  • I have a public key ASD4LlhNrPNoufZM7_H-xeM7ge1KLl0KZzc6cEtVMA4eTwo

To claim this, I am signing this object:

[root@kindle root]# cat /mnt/us/extensions/sox/playfile.sh
#!/bin/sh
# script to play a local file on pw4
# first get soxi data from file to be played
export LD_LIBRARY_PATH=/mnt/us/extensions/sox/library:$LD_LIBRARY_PATH
/mnt/us/extensions/sox/soxi "$1" >/var/tmp/soxidata.txt
# now to parse necessary information
Chan=$(awk -F: '/Channels/ {gsub(" ","");print $2}' /var/tmp/soxidata.txt)
@tomtastic
tomtastic / dfree
Last active September 25, 2019 11:38
#!/bin/bash
# Used by Samba to grok ZFS free space
if [[ -n "$1" ]]; then
# Only ever return info for the current directory as Apple mounts only pass '.' ?
#P="$1"
P=$(pwd)
else
P=$(pwd)
fi
@tomtastic
tomtastic / smb.conf
Last active November 14, 2023 08:44
Samba 4.13.5 config for MacOS Monterey
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as