This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
more from my linux i3wm -> macos conversion. | |
very used to being able to adjust my volume up and down or muted with a keystroke. | |
Note - using a standard generic keyboard, not an Apple keyboard, no special multimedia keys | |
2 bash scripts - could possibly combine them into one, but later ... | |
First to change the volume up and down. | |
~ cat bin/change_volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# GEL (C) 2022 | |
# work in progress | |
# randomizes music playback | |
IFS="$(printf '\n\t')" | |
MUSIC="/Music/Music" | |
cd $MUSIC | |
back_to_root=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# video downloader. uses ~/urls.db as reference. | |
# seperate script watches the clip board for any http links and puts them in the | |
# table | |
# all downloads to /data/p/Downloads | |
cd /data/p/Downloads | |
while true; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -f | |
# capture URLS from the clipboard and push them into the urls sqlite db | |
while [ 1 ]; do | |
t=`xclip -o ` | |
echo "clip board is $t" | |
echo $t | grep http > /dev/null | |
if [ "$?" == "0" ]; then | |
# query the database to see if its already there |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: checks NFS on my buffalo linkstation and installs ipkg and unfs3 if needed | |
hosts: buffalo | |
vars: | |
exports_src: files/etc/exports | |
exports_dest: /opt/etc/exports | |
tasks: | |
# - name: check for ipkg | |
# stat: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=http redirect | |
# simple web service to server a index.html with a meta refresh without having to do via apache/nginx | |
[Install] | |
WantedBy=multi-user.target | |
[Service] | |
Type=simple | |
User=root # need root to bind to port 80 | |
WorkingDirectory=/Downloads/html/ # directory containing a index.html with a meta refresh for redirect |