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 | |
## Retrieve MAC address and IP | |
## helping Source: lost ;( | |
clear | |
function getNetworkIDs { | |
enNumber=( "0" "1" "2" "3" ) | |
count=0 | |
for ((i=0; i<10; i++)) ; do | |
#for i in "${enNumber[@]}" ; 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/sh | |
# oem @ oemden dot com | |
## Convert dmg to iso - need $1 as dmg file. Will basically save .iso in same place as input .dmg | |
if [[ ! "${1}" ]] ; then | |
echo "I need a dmg file as input ! Exiting" | |
exit 1 | |
fi | |
THISDIR=$(/usr/bin/dirname ${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
#!/bin/bash | |
sudo bash | |
adminuser="myAdmin" | |
kickstart="/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart" | |
systemsetup -setremotelogin on | |
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -specifiedUsers | |
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users "$adminuser" -access -on -privs -all | |
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -activate -restart -console |
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 | |
# forked from base code from gist https://gist.github.com/earthgecko/3089509 | |
# | |
# Generate Long Secret Key | lenght is set as input parameter and generated key is copied to clipboard | |
# copy to clipboard only for Os X use. | |
#Generate a Good Encryption Key | |
clear | |
if [[ ! "$1" ]] ; then | |
echo ; echo " Key lenght is 64 Char and is:"; echo |
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 | |
# | |
## © oem at oemden dot com | |
## remove corrupted index from IMAP DOVECOT (Os X Server) | |
## usage : path/to/RemoveBadIndexDovecot.sh PATH/TO/UUID-FOLDER-OF-SOME-USER | |
#$1 target dir | |
clear |