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
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
(* | |
Proof of concept to automate web based email login | |
Using keyboard emulation on a web form | |
*) | |
tell application "Google Chrome" | |
-- Uncommnet the below and enter in the web address of your email login page |
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
################################################################## | |
# # | |
# First basic script to unmount smb shares # | |
# # | |
# Feature: # | |
# Will only umount non busy filesystems # | |
# # | |
################################################################## | |
property myDisks : {"/Volumes/Gigantor", "/Volumes/ExtraMovies", "/Volumes/StorageDisk", "/Volumes/Music_Compressed", "/Volumes/My_Book", "/Volumes/Music", "/Volumes/MoreMovieS", "/Volumes/Blank", "/Volumes/MacOsX_SoftWare", "/Volumes/miniStorage", "/Volumes/Movies", "/Volumes/My_Book_2", "/Volumes/XtraLarge"} |
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
########################################################################## | |
# # | |
# Needed a simple way to mount SMB drives with no Finder window # | |
# # | |
# Native OSX SMB mount construct # | |
# # | |
# try # | |
# mount volume "smb://workgroup;userid:password@ipaddress/drive$" # | |
# end try # | |
# # |
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
#!/usr/bin/env bash | |
# | |
# Open a new iTerm session with the command given | |
# as argument. | |
# | |
# - If there are no arguments, the new iTerm window will | |
# be opened in the current directory, i.e. as if the command | |
# would be "cd `pwd`". | |
# - If the first argument is a directory, the new iTerm will | |
# "cd" into that directory before executing the remaining |
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
#!/usr/bin/env bash | |
movieFileLocation="/Volumes/networkDriveLocation" | |
filecount=$(find "$movieFileLocation" -depth 0 -type f | wc -l) | |
find "$movieFileLocation" -depth 0 -type f -iname \*.avi -o -iname \*.mp4 -o -iname \*.mkv -o -iname \*.m4v -o -iname \*.wmv -o -iname \*.mov -o -iname \*.mpg -o -iname \*.mpeg -o -iname \*.wma -o -iname \*.asf -o -iname \*.asx -o -iname \*.rm -o -iname \*.3gp -o -iname \*.0gm | { | |
processed=0 | |
corrupt=0 | |
while read -r pathname | |
do | |
if ! ffprobe -v quiet -show_error -i "$pathname" |
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
#!/usr/bin/env bash | |
which openssl >/dev/null 2>&1 | |
if [ $? -eq 1 ] | |
then | |
echo -e "Installing openssl package...\n" | |
sudo apt-get install -yqq openssl | |
fi | |
which openssl >/dev/null 2>&1 |
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
#!/usr/bin/env bash | |
#useage: sh debug.sh mybashscripttodebug.sh | |
# Very useful bash script debugger produces the funtion name the actual | |
# call with variable|value subsitution and line number | |
color_def="~/.colorrc" | |
if [[ -f $color_def ]]; then | |
. $color_def |
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
#!/usr/bin/env bash | |
####################################################################################### | |
## ## | |
## movieFileExpander.sh ## | |
## ## | |
## A utility script to help in the decompression extraction file renaming ## | |
## and finally moving to a final destination for viewing purposes ## | |
## Created out of the need to be lazy and to automate all this manual work ## | |
## Gathered from other various articles blogs and scripts, tweaked to personal ## |
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
find . -name "file_extension" -print|awk '{f=$0;sub("filename_string_to_replace","");print "mv "f" "$0}'|sh |