/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
<Directory "/var/www/html">
allow from all
apt-get install xfonts-base | |
apt-get install xfonts-75dpi | |
Read more, https://github.com/odoo/odoo/wiki/Wkhtmltopdf | |
rem wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb | |
rem dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb | |
wget http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb | |
wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb |
/bin/echo Asia/Bangkok > /etc/timezone | |
/bin/rm /etc/localtime | |
/bin/ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime | |
## locale | |
/bin/echo en_US.UTF-8 UTF-8 >> /etc/locale.gen | |
/bin/echo th_TH.UTF-8 UTF-8 >> /etc/locale.gen | |
/usr/sbin/locale-gen |
#---- Change Values in this section to match your setup ---- | |
:local username "username" | |
:local password "password" | |
:local hostname "domain.dyndns.org" | |
:local ddnsinterface "pppoe-out1" | |
#----------------------------------------------------------- | |
# get the current ip | |
:local currentip [ /ip address get [/ip address find interface=$ddnsinterface ] address ] | |
:local ddnsip [ /resolve domain-name=$hostname ] |
# arp -n | grep b8:27 | awk '{print $1,$3}' | |
- sources.list | |
deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main | |
# wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - |
#Error: Database creation error: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template.
##solution
root@server:~# su postgres
postgres@server:~ $ psql -U postgres
psql (9.0.3)
Type "help" for help.
var fs = require('fs') | |
var express = require('express') | |
var app = express() | |
var ejs = require('ejs') | |
var mongo = require('mongodb') | |
var client = mongo.MongoClient | |
var crypto = require('crypto') | |
var multer = require('multer') | |
var upload = multer({dest:'./uploads'}) | |
var io = require('socket.io')() |
@Echo off | |
cls | |
Echo. | |
Echo. | |
Echo.This is going to copy your data from | |
Echo. | |
Echo. - "%userprofile%" | |
Echo. | |
Echo.to this external device under folder "%computername%" | |
Echo. |