-
Open the Terminal
-
Use
mysqldump
to backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql
-
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
#!/bin/bash | |
# | |
# Automate mysql secure installation for debian-baed systems | |
# | |
# - You can set a password for root accounts. | |
# - You can remove root accounts that are accessible from outside the local host. | |
# - You can remove anonymous-user accounts. | |
# - You can remove the test database (which by default can be accessed by all users, even anonymous users), | |
# and privileges that permit anyone to access databases with names that start with test_. |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
Update-ExecutionPolicy Unrestricted | |
Install-WindowsUpdate -AcceptEula | |
cinst googlechrome | |
cinst firefox | |
cinst skype | |
cinst thunderbird | |
cinst 7zip.install | |
cinst javaruntime |
#!/bin/bash | |
# How to perform a release with git & maven following the git flow conventions | |
# ---------------------------------------------------------------------------- | |
# Finding the next version: you can see the next version by looking at the | |
# version element in "pom.xml" and lopping off "-SNAPSHOT". To illustrate, | |
# if the pom's version read "0.0.2-SNAPSHOT", the following instructions would | |
# perform the release for version "0.0.2" and increment the development version | |
# of each project to "0.0.3-SNAPSHOT". | |
# |
<cfscript> | |
adminObj = createObject("component","cfide.adminapi.administrator").login("password"); | |
serverMonitor = createObject("component","cfide.adminapi.servermonitoring"); | |
sessions = serverMonitor.getAllActiveSessions(); | |
ss = ""; | |
writeOutput("Nr of active sessions: #Arraylen(sessions)# <br/>"); | |
writeOutput("List of all active CF applications:<br/>"); | |
for( aSession in sessions) { | |
if(ListFindNoCase(ss,aSession.appName) eq 0) { | |
ss = ListAppend(ss,aSession.appName); |
logBox["categories"]["MyLogger"] = { levelMin="FATAL", levelMax="DEBUG", appenders="MyAppender"}; | |
var myAppenderAttr = { | |
name="MyAppender", | |
class="coldbox.system.logging.appenders.FileAppender", | |
properties={ | |
filePath = "log/", | |
fileName = "mylog" | |
} | |
}; | |