If you get this error when running sudo salt-ssh '*' test.ping:
"No hosts found with target * of type glob"
Check the file /etc/salt/roster for fomatting errors.
Note: It doesn't like tabs.
If you get this error when running sudo salt-ssh '*' test.ping:
"No hosts found with target * of type glob"
Check the file /etc/salt/roster for fomatting errors.
Note: It doesn't like tabs.
| #!/usr/bin/python | |
| #silly program to light up LEDs on raspberrypi piface depending on system load | |
| #basically multiplys load by x10, rounds, and lights up that many leds | |
| from time import sleep | |
| import pifacedigitalio | |
| import sys | |
| DELAY = 1.0 # seconds |
| #!/usr/bin/python3 | |
| #Simple prog to chase leds up and down for the rasberrypi piface | |
| #The higher the load, the slower they go | |
| from time import sleep | |
| import pifacedigitalio | |
| import sys | |
| if __name__ == "__main__": |
| Starting syslog-ng: Error binding socket; addr='AF_UNIX(/dev/log)', error='Address already in use (98)' | |
| Error initializing source driver; source='s_sys', id='s_sys#1' | |
| Error initializing message pipeline; | |
| [FAILED] | |
| to solve: rm /dev/log |
| /var/nzbget/dst/nzbget.log { | |
| missingok | |
| notifempty | |
| size 2M | |
| rotate 4 | |
| copytruncate | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <keymap> | |
| <global> | |
| <keyboard> | |
| <escape>Pause</escape> | |
| <key id="251">activatewindow(home)</key> | |
| <key id="252">activatewindow(videos,movietitles)</key> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <keymap> | |
| <FullscreenVideo> | |
| <remote> | |
| <back>stop</back> | |
| </remote> | |
| <keyboard> | |
| <back>stop</back> | |
| <backspace>stop</backspace> | |
| <escape>stop</escape> |
| --- | |
| # Set CHIP up as an airplay server. | |
| # Based on https://www.hackster.io/11798/c-h-i-p-play-speakers-7cebb9 | |
| # Note; you will still have to edit shairport-sync.conf to set the name | |
| - name: configure chips for iot shairport use | |
| hosts: shairport-chips | |
| become_user: root |
| #!/usr/bin/env perl -w | |
| ### 2016-06-01:davidm:simple program to center text on a line | |
| use strict; | |
| use warnings; | |
| use POSIX; | |
| #f1: string | |
| #f2: total width |
# tailfile="taildisk-`date "+%Y%m%dT%H%M%S"`.dat"
# dd if=/dev/sda of=${tailfile} bs=512 skip=$(( $(blockdev --getsz /dev/sda) - 4096 ))
4096+0 records in
4096+0 records out
2097152 bytes (2.1 MB, 2.0 MiB) copied, 0.0185222 s, 113 MB/s
# ls -lah ${tailfile}
-rw-r----- 1 root root 2.0M Jul 16 11:08 taildisk-20160716T110821.dat