Skip to content

Instantly share code, notes, and snippets.

Tom Matthews tomtastic

Block or report user

Report or block tomtastic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View playfile.sh
[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)
View 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)
echo "Chan=$Chan"
View 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=$(grep Channel /var/tmp/soxidata.txt | sed 's/.\{17\}//;s/\n//')
echo "Chan=$Chan"
View dfree
#!/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
View smb.conf
#
# 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
You can’t perform that action at this time.