-
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
package main | |
import ( | |
"golang.org/x/tour/wc" | |
"strings" | |
) | |
func WordCount(s string) map[string]int { | |
counter := make(map[string]int) | |
for _, v := range strings.Fields(s) { |
package main | |
import ( | |
"golang.org/x/tour/pic" | |
"fmt" | |
) | |
func Pic(dx, dy int) [][]uint8 { | |
fmt.Println(dx, dy) |
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 \ |