-
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
#!/usr/bin/python2 | |
# -*- coding=gbk -*- | |
# | |
# The original version can be found at https://www.programmersought.com/article/60554969634/. | |
# The differences from original version are as follows: | |
# * added shbang line so that we can know this is the python 2 script. | |
# * added SUITE_NAMES column. | |
# | |
import glob | |
import sys |
package com.company.retrofit2.annotation; | |
import java.lang.annotation.Documented; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.Target; | |
import static java.lang.annotation.ElementType.METHOD; | |
import static java.lang.annotation.RetentionPolicy.RUNTIME; | |
/** |
There are a mess of troubles in sending and receiving files from my macbook to dev server, since I had no permission to excute command scp on dev server. Here is a lightweight, quick, and convenience tools which related with ssh, called lrzsz. lrzsz is a unix communication package providing the XMODEM, YMODEM, ZMODEM file transefer protocol which usually has been already installed in most of servers.
#!/usr/bin/python | |
# largely taken from python examples | |
# http://docs.python.org/library/email-examples.html | |
import os | |
import sys | |
from email import encoders | |
from email.mime.base import MIMEBase | |
from email.mime.multipart import MIMEMultipart |
git rebase --interactive HEAD~2 | |
# we are going to squash c into b | |
pick b76d157 b | |
pick a931ac7 c | |
# squash c into b | |
pick b76d157 b | |
s a931ac7 c |
# Add Neutron security groups for ping and ssh | |
neutron security-group-rule-create \ | |
--protocol icmp \ | |
--direction ingress \ | |
--remote-ip-prefix 0.0.0.0/0 \ | |
default | |
neutron security-group-rule-create \ | |
--protocol tcp \ |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xvzf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure --prefix=/usr/local | |
make | |
sudo make install |