Skip to content

Instantly share code, notes, and snippets.

@gallo-s-chingon
gallo-s-chingon / macos-dock-defaults.sh
Created April 19, 2023 20:55
change macOS dock defaults
# hide Dock faster
defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock
# add Dock spacer
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' && killall Dock
# add Dock half spacer
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}' && killall Dock
# disable eject warning
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist DADisableEjectNotification -bool YES && sudo pkill diskarbitrationd
@gallo-s-chingon
gallo-s-chingon / epi.sh
Last active August 31, 2022 21:42
Script to prompt user for input to add to filename.md for Jekyll blog post for podcast show notes on website
#!/bin/bash
# author : @CochinoChingon
# about : bash script to create new jekyll posts with minimal-music-project theme by @itsMeaga1n
# description : This will make a new Jekyll blog post as an md file and open in neovim to complete for the discography section of the above theme.
# URL : https://gist.github.com/gChingon/d9b03b8482b899b088b518cf3d08796c
# POSTS -- not necessary but a good habit to be in Git dir; alternatively can use variables to post to Git dir regardless of location
read -p "did you copy YouTube link? " answer
if [ $answer == y ]
@gallo-s-chingon
gallo-s-chingon / mediashot.sh
Created September 23, 2019 06:01
screenshot and mediainfo video files
#!/usr/local/bin/bash
#
# Written by ump721
# Based on and inspired by dsl420's original script
#
# Usage:
# mediashot video.mkv [destination_folder] [cap_name] [number_of_caps]
#
# Defaults:
# destination_folder same folder as input file
@gallo-s-chingon
gallo-s-chingon / rcloneSeries.cron
Last active February 24, 2019 06:23
rclone cron script to copy series to Gdrive series folder
#!/bin/bash
# RCLONE UPLOAD CRON TAB SCRIPT
# Type crontab -e and add line below (without # )
# * * * * * root /home/gallo/.scripts/rcloneSeries.cron >/dev/null 2>&1
if pidof -o %PPID -x "rcloneCine.cron"; then
exit 1
fi
LOGFILE="/home/logs/upload-m.cron.log"
@gallo-s-chingon
gallo-s-chingon / rcloneCine.cron
Last active February 24, 2019 06:23
rclone copy to Gdrive
#!/bin/bash
# RCLONE UPLOAD CRON TAB SCRIPT
# Type crontab -e and add line below (without # )
# * * * * * root /home/gallo/.scripts/rcloneCine.cron >/dev/null 2>&1
if pidof -o %PPID -x "rcloneCine.cron"; then
exit 1
fi
LOGFILE="/home/logs/upload-m.cron.log"
@gallo-s-chingon
gallo-s-chingon / torrent-process.sh
Created August 29, 2017 13:10 — forked from werkkrew/torrent-process.sh
Script to get called by Deluge on Torrent completion
#!/bin/bash
#### Torrent post-processing script.
# This script gets triggered by deluge and moves/extracts a file to another place for further processing (filebot)
# The reason this script does not handle the filebot processing itself (which it could) is for flexbility of using multiple methods of downloading (e.g. usenet)
# The idea is that a filebot script monitors a folder for new files and deals with them, regardless of the source.
# This script puts the files in a central location for processing and allows them to continue seeding.
# Uncomment the following line to enable debugging
#set -x
@gallo-s-chingon
gallo-s-chingon / seedbox-sync.sh
Last active December 24, 2017 06:20 — forked from werkkrew/seedbox-sync.sh
Sync -edited for my purposed
#!/bin/bash
#### Seedbox Sync
#
# Sync various directories between home and seedbox, do some other things also.
#
# To use rsync, this script requires you have ssh key based logins with no passphrase
# set up between the user this script runs as and your seedbox.
logdir="/home/gyo/.config/log"
xferlog="xferlog.log"
@gallo-s-chingon
gallo-s-chingon / filebot-process.sh
Last active October 23, 2016 09:00 — forked from werkkrew/filebot-process.sh
Filebot Process edited for my local NAS box. removed "ut_tags=" to allow my setup to continue process
#!/bin/bash
#### Media file processing script for Filebot
# This script gets triggered by some means (inotify, auditd, cron, etc.) and processes media files in some locations.
# It will run the filebot amc.groovy script against these files and output them into user defined locations for HTPC use.
#
# Known Limitations:
# Not dealing with music files, just video files. I use beets for music tagging.
# Not dealing with unique video types just yet, such as comedy specials, concerts, etc. Filebot might match it okay but I am not confident about it.