Setup
bin/kafka-topics.sh \
--zookeeper zookeeper.example.com:2181 \
--create \
Possible values for ext-name: | |
bcmath | |
bz2 | |
calendar | |
ctype | |
curl | |
dba | |
dom | |
enchant |
// gulpfile.js | |
var gulp = require( 'gulp' ); | |
var rsync = require( 'gulp-rsync' ); | |
var rsyncHost = process.env.RSYNC_HOST || '0.0.0.0'; | |
var rsyncPort = process.env.RSYNC_PORT || 22; | |
gulp.task( 'watch', function() { | |
var targets = [ | |
'./js/**' |
#Access Request Object Inside the Models and Signals | |
#Create a middleware.py inside any app for example :- blog | |
#middleware.py | |
import threading | |
class RequestMiddleware(object): | |
thread_local = threading.local() |
<?php | |
/** | |
* This plugin creates a new paragraph entity based on the source. | |
* | |
* @MigrateProcessPlugin( | |
* id = "mds_paragraph" | |
* ) | |
*/ | |
class ParagraphMigrateProcessor extends ParagraphProcessBase { |
### NOTE: | |
### You need to input your ACCESS_KEY, SECRET_KEY, KEYPAIR_NAME, VPC_ID | |
### | |
provider "aws" { | |
access_key = "YOUR_ACCESS_KEY" | |
secret_key = "YOUR_SECRET_KEY" | |
region = "us-west-2" | |
} | |
## Instance Declaration |
/* global window */ | |
const popup = (url) => { | |
const windowArea = { | |
width: Math.floor(window.outerWidth * 0.8), | |
height: Math.floor(window.outerHeight * 0.5), | |
}; | |
if (windowArea.width < 1000) { windowArea.width = 1000; } | |
if (windowArea.height < 630) { windowArea.height = 630; } |
# Custom docker image which exposes 8080 | |
image: lafayette/hoth:5.5 | |
services: | |
- selenium/standalone-chrome:latest | |
before_script: | |
# Use 0.0.0.0 instead of localhost to allow external connections | |
- php -S 0.0.0.0:8080 -t ../ &> /dev/null & |
/** | |
* @Block( | |
* id = "my_block", | |
* context = { | |
* "node" = @ContextDefinition("entity:node") | |
* } | |
* ) | |
*/ |
/etc/default/ufw:
... DEFAULT_FORWARD_POLICY="ACCEPT"
service ufw restart
ufw allow in on docker0
ufw allow out on docker0