Skip to content

Instantly share code, notes, and snippets.

View cainanyang's full-sized avatar
🎯
Focusing

cainanyang cainanyang

🎯
Focusing
View GitHub Profile
@zubaer-ahammed
zubaer-ahammed / Reset MySQL Root Password in Mac OS.md
Last active September 27, 2025 02:50
Reset MySQL Root Password in Mac OS

Reset mysql root password in Mac OS:

First Stop MySQL:

  1. Go to: 'System Preferences' >> 'MySQL' and stop MySQL

OR,

  1. sudo /usr/local/mysql/support-files/mysql.server start
  2. sudo /usr/local/mysql/support-files/mysql.server stop
@willurd
willurd / web-servers.md
Last active October 24, 2025 16:17
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@hallison
hallison / SparkLearn.java
Created June 6, 2011 19:44
Howto use a simple renderer for Spark-Java
package learn;
import static spark.Spark.*;
import spark.*;
import java.io.*;
import java.util.Map;
import java.util.HashMap;
import java.util.regex.Pattern;