/etc/default/ufw:
... DEFAULT_FORWARD_POLICY="ACCEPT"
service ufw restart
ufw allow in on docker0
ufw allow out on docker0| #!/usr/bin/env bash | |
| # install docker | |
| # https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
| # install docker-compose | |
| # https://docs.docker.com/compose/install/ | |
| # install letsencrypt | |
| # https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 |
/etc/default/ufw:
... DEFAULT_FORWARD_POLICY="ACCEPT"
service ufw restart
ufw allow in on docker0
ufw allow out on docker0| /** | |
| * @Block( | |
| * id = "my_block", | |
| * context = { | |
| * "node" = @ContextDefinition("entity:node") | |
| * } | |
| * ) | |
| */ |
| # 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 & |
| /* 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; } |
| ### 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 |
| <?php | |
| /** | |
| * This plugin creates a new paragraph entity based on the source. | |
| * | |
| * @MigrateProcessPlugin( | |
| * id = "mds_paragraph" | |
| * ) | |
| */ | |
| class ParagraphMigrateProcessor extends ParagraphProcessBase { |
| #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() |
| // 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/**' |
| Possible values for ext-name: | |
| bcmath | |
| bz2 | |
| calendar | |
| ctype | |
| curl | |
| dba | |
| dom | |
| enchant |