Step 1: Import SQL backup:
mysql -u root wp_dump < backup.sql
Step 2: Login:
mysql -u root
Step 3: Use database:
RED #FF4136 | |
GREEN #2ECC40 | |
BLUE #0074D9 | |
WHITE #FFFFFF | |
BLACK #111111 | |
GRAY #AAAAAA | |
SILVER #DDDDDD |
public class A { | |
public void initializer() { | |
B b1 = new B(); | |
B b2 = (B) classloaders.A.class.getClassLoader().loadClass("B").newInstance(); | |
B b3 = (B) Class.forName("B").newInstance(); | |
} | |
} |
Step 1: Import SQL backup:
mysql -u root wp_dump < backup.sql
Step 2: Login:
mysql -u root
Step 3: Use database:
You can overwrite certain attributes of a bower.json, e.g. the "main"-attribute with: | |
"overrides" : { | |
"lodash": { | |
"main": "lodash.js: | |
} | |
} |
.highlight { | |
.c, .cm, .c1, .cs { | |
color: #408080; | |
} | |
.k, .kc, .kd, .kn, .kp, .kr, .sx, .bp, .nt, .nb { | |
color: #008000; | |
} | |
.o, .m, .mf, .mh, .mi, .mo, .il { | |
color: #666666; | |
} |
'use strict'; | |
// http://www.nightmarejs.org/ | |
var Nightmare = require('nightmare'); | |
var nightmare = Nightmare(); | |
var pages = Array.from({length:20}, (_, k) => (k)); | |
var top500 = []; | |
getTop500(pages); |
// diff-so-fancy | |
npm install -g diff-so-fancy && git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" | |
// git status abbreviation | |
git config --global alias.st 'status' | |
// git add, amend and force push | |
git config --global alias.ap '!git add . && git commit --amend --no-edit && git push -f' | |
// git delete branches merged to develop |
Backwards incompatible changes to persistence always require at least two upgrade steps to encapsulate migration without causing downtime.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import stashy | |
from sys import argv | |
stash = stashy.connect('url', 'username', 'password') | |
def getProjects(): | |
projects = {} |