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
(* | |
"Album Rating Reset" for iTunes | |
written by Doug Adams | |
dougadams@mac.com | |
v1.0 sept 6 2007 | |
-- initial release | |
v2.0 mar 6 2013 | |
updated by Dhiraj Gupta (http://www.dhirajgupta.com) |
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 | |
# Lightroom Image Import Prep v0.2 | |
todayDate="$(date +'%Y%m%d')" | |
sdCard=$"/Volumes/EOS_Digital/DCIM/100CANON/*" | |
newDir=$"$HOME/Desktop/$todayDate" | |
if [ -d "/$HOME/Desktop/$todayDate" ]; then | |
echo "Folder exists, manual import" |
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 | |
echo | |
echo This will remove Office 2008 from your Mac | |
echo | |
echo | |
sleep 5 | |
echo Removing Office from Applications | |
sudo rm -rf /Applications/Microsoft\ Office\ 2008 | |
sleep 5 | |
echo Removing Office Library files |
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 | |
dock2d3d=$(defaults read com.apple.dock | grep "no-glass") | |
if [ $dock2d3d == "\"no=glass\" = 0;" ] | |
then | |
defaults write com.apple.dock no-glass -boolean YES && killall Dock | |
else | |
defaults write com.apple.dock no-glass -boolean NO && killall Dock | |
fi |
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
tell application "System Events" | |
-- Careful of things we DON'T want to remove... | |
get the name of every login item | |
-- Check for both. | |
if login item "MacProtector" exists then | |
delete login item "MacProtector" | |
display dialog "Removed MacProtector from Login Items." | |
else | |
display dialog "No MacProtector infection found." | |
end if |
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/sh | |
# MacProtector Removal Tool (Super-Simple) 1.0 - http://www.icrontic.com/ | |
# (C) 2011 All Rights Reserved, Phillip R. Jaenke (phil@icrontic.com) | |
# | |
# LICENSE IS AS FOLLOWS: | |
# - This software is completely free to use or redistribute for personal use, | |
# HOWEVER: | |
# -- It must retain the above copyright notice and reference to Icrontic! | |
# - This software is completely free to use or redistribute for commercial use, | |
# HOWEVER: |
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
Display dialog box with custom icon called _icon.icns_ | |
``` | |
display dialog "My custom icon " buttons {"Cancel", "Continue"} default button "Continue" with icon file "Contents:Resources:icon.icns" | |
``` | |
``` | |
set x to ((path to me as text) & "Contents:Resources:myicon.icns") as alias | |
display dialog "your text here" with icon x | |
``` |
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
@echo off | |
rem Windows has no built-in wget or curl, so generate a VBS script to do it: | |
rem ------------------------------------------------------------------------- | |
set DLOAD_SCRIPT=download.vbs | |
echo Option Explicit > %DLOAD_SCRIPT% | |
echo Dim args, http, fileSystem, adoStream, url, target, status >> %DLOAD_SCRIPT% | |
echo. >> %DLOAD_SCRIPT% | |
echo Set args = Wscript.Arguments >> %DLOAD_SCRIPT% | |
echo Set http = CreateObject("WinHttp.WinHttpRequest.5.1") >> %DLOAD_SCRIPT% |
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/sh | |
# Detects which OS and if it is Linux then it will detect which Linux Distribution. | |
OS=`uname -s` | |
REV=`uname -r` | |
MACH=`uname -m` | |
GetVersionFromFile() | |
{ | |
VERSION=`cat $1 | tr "\n" ' ' | sed s/.*VERSION.*=\ // ` |
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 | |
# Linux Auto-Install Git | |
# | |
# Copyright (c) 2012 Danijel James http://danijelj.com | |
# | |
# Licensed under MIT | |
# version number | |
version="1.0.5" |