We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
version: "2" | |
services: | |
drupal: | |
build: | |
context: . | |
dockerfile: drupal.Dockerfile | |
image: custom-drupal | |
ports: | |
- 8080:80 |
We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc
Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server
Use this link and get $10 free. Just select the $5 plan unless this a production app.
#!/usr/bin/php-zts | |
<?php | |
# By: https://github.com/zheltikov | |
# Used in: https://www.youtube.com/watch?v=L_FdpmJatdw | |
# Define a custom Thread class | |
class MyThread extends Thread { | |
private $name = ""; | |
private $duration = 0; |
#!/bin/bash | |
# By: https://github.com/zheltikov | |
# Based on: http://blog.programster.org/ubuntu16-04-compile-php-7-2-with-pthreads | |
# Used in: https://www.youtube.com/watch?v=L_FdpmJatdw | |
# Download the necessary packages | |
sudo apt update | |
sudo apt install libzip-dev bison autoconf build-essential pkg-config git-core libltdl-dev libbz2-dev libxml2-dev libxslt1-dev libssl-dev libicu-dev libpspell-dev libenchant-dev libmcrypt-dev libpng-dev libjpeg8-dev libfreetype6-dev libmysqlclient-dev libreadline-dev libcurl4-openssl-dev |
#!/bin/bash | |
#sudo ln -s /full-path/git-log-live /usr/local/bin/git-log-live | |
#sudo chmod +x git-log-live | |
#git-log-live /absolute-proj-root-path | |
#git-log-live . | |
while : | |
do | |
clear |
<?php | |
class Event { | |
private static $events = []; | |
public static function listen($name, $callback) { | |
self::$events[$name][] = $callback; | |
} | |
public static function trigger($name, $argument = null) { | |
foreach (self::$events[$name] as $event => $callback) { |
sudo vim /etc/default/beanstalkd # change IP to 0.0.0.0 | |
sudo systemctl daemon-reload # reload daemon | |
netstat -nat | grep LISTEN # see if `0.0.0.0:11300` is in the list |
/** @license MIT License (c) 2011,2012 Copyright Tavendo GmbH. */ | |
/** | |
* AutobahnJS - http://autobahn.ws | |
* | |
* A lightweight implementation of | |
* | |
* WAMP (The WebSocket Application Messaging Protocol) - http://wamp.ws | |
* | |
* Provides asynchronous RPC/PubSub over WebSocket. |