-
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
"""An example of a cache decorator.""" | |
import json | |
from functools import wraps | |
from redis import StrictRedis | |
redis = StrictRedis() | |
def cached(func): |
This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].
We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.
Each commit message consists of a header, a body, and a footer.
These rules are adopted from the AngularJS commit conventions.
; EMACS | |
^a::Send {Home} | |
^e::Send {End} | |
^b::Send {Left} | |
$^f::Send {Right} | |
^n::Send {Down} | |
^p::Send {Up} | |
^d::Send {Delete} | |
^h::Send {Backspace} |
Key Name Resulting Keystroke | |
{F1} - {F24} Function keys. For example: {F12} is the F12 key. | |
{!} ! | |
{#} # | |
{+} + | |
{^} ^ | |
{{} { | |
{}} } | |
{Enter} ENTER key on the main keyboard | |
{Escape} or {Esc} ESCAPE |
mysqldump --user="username" --password="password" --skip-triggers --compact --no-create-info --ignore-table="database_name.schema_migrations" --ignore-table="database_name.table_populated_through_migration" "database_name" > "dump.sql" |
In python, you have floats and decimals that can be rounded. If you care about the accuracy of rounding, use decimal type. If you use floats, you will have issues with accuracy.
All the examples use demical types, except for the original value, which is automatically casted as a float.
To set the context of what we are working with, let's start with an original value.
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
#SingleInstance force | |
; Install autohotkey for windows and put the contents of this file in your | |
; documents folder AutoHotkey.ahk existing file. | |
#InstallKeybdHook | |
; Remap for Mac Like | |
!c::Send ^c | |
!+c::Send ^+c |