This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
import base64 | |
import cStringIO | |
from django.core.files.uploadedfile import InMemoryUploadedFile | |
# ... | |
if request.POST.get('file') and request.POST.get('name'): | |
file = cStringIO.StringIO(base64.b64decode(request.POST['file'])) | |
image = InMemoryUploadedFile(file, | |
field_name='file', |
If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:
In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache |
#!/bin/sh | |
MYSQLADMIN_CFG="/etc/mysql/mariadb.conf.d/90-mysqladmin.cnf" | |
# generate password | |
PASS=$(perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'); | |
# adjust /etc/mysql/debian.cnf (used as defaults file by system scripts) | |
sed -i "s/^password =.*$/password = ${PASS}/" /etc/mysql/debian.cnf | |
sed -i "s/^user =.*$/user = debian-sys-maint/" /etc/mysql/debian.cnf | |
# create config file for mysqladmin itself (maybe not needed) | |
umask 066 | |
cat > ${MYSQLADMIN_CFG} <<EOF |
import * as jestPlugin from 'serverless-jest-plugin'; | |
import * as mod from './../handlers/campaigns/handler'; | |
const lambdaWrapper = jestPlugin.lambdaWrapper; | |
const wrapped = lambdaWrapper.wrap(mod, { handler: 'campaigns' }); | |
describe('λ: campaigns', () => { | |
beforeAll(done => { | |
done(); | |
}); |
Signal Server Installation Guide
Author: Aqnouch Mohammed aqnouch.mohammed@gmail.com