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
#initial code from http://www.tech-otaku.com/local-server/starting-mamps-apache-mysql-servers-login/ | |
tell application "Finder" | |
# Check if the Apache or MySQL servers are already running | |
set apacheRunning to my ProcessRunning("httpd") | |
set mysqlRunning to my ProcessRunning("mysqld") | |
# If neither the Apache nor MySQL servers are already running... | |
if (not apacheRunning and not mysqlRunning) then | |
# get the user name and password using the security Terminal command | |
set theUserName to do shell script ("security find-generic-password -l \"MAMP\" | grep \"acct\" | cut -c 19-99 | tr -d '\"'") |
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 | |
# this is a renaming script | |
# @arguments: | |
# -f filename the filename to add (optional) | |
# -p path the folder to path to run (optional) | |
# -r if set runs recuresively | |
# | |
# it renames the files inside the folder | |
# adds a sequential number filename (01).jpg etc | |
# if no filename specified there is the option to use |