This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.
⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.
<?php | |
class Log { | |
private $handle, $dateFormat; | |
public function __construct($file, $mode = "a") { | |
$this->handle = fopen($file, $mode); | |
$this->dateFormat = "d/M/Y H:i:s"; | |
} | |
public function dateFormat($format) { | |
$this->dateFormat = $format; |
#!/bin/bash | |
# by Luis Rodriguez (developer0606@gmail.com) | |
PREV_TOTAL=0 | |
PREV_IDLE=0 | |
while true; do | |
# Get the total CPU statistics, discarding the 'cpu ' prefix. | |
CPU=(`sed -n 's/^cpu\s//p' /proc/stat`) | |
IDLE=${CPU[3]} # Just the idle CPU time. |
Engagement
Start in shell WebSocket server: php -q websockets.php
.
Start in shell WebSocket client: php -S 127.0.00.1:8000 websockets.html
please use separated tab in terminal.
Test
Open in browser URL: http://0.0.0.0:8000/
you will see current timestamp which will continuously updating! Hence, it works!
Conclusion This is just super simple PHP WebSocket example. Yes, it isn’t real world example, but it is as simple as possible sample
#!/bin/bash | |
## Install SQL Server on Ubuntu | |
## https://docs.microsoft.com/pt-br/sql/linux/quickstart-install-connect-ubuntu | |
## Run as root (sudo su) | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | |
add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list)" | |
add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list)" |
#!/bin/bash | |
### Install PHP 7.1 on OPenSUSE 42.2 64Bits | |
### https://build.opensuse.org/package/view_file/devel:languages:php/php7/php7.spec?expand=1 | |
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ | |
### http://www.shaunfreeman.name/compiling-php-7-on-centos/ | |
zypper in openssl-devel | |
zypper in gcc gcc-c++ libxml2-devel pkgconfig libbz2-devel curl-devel libwebp-devel |
Step 1: Install Apache 2 | |
sudo apt update | |
sudo apt install apache2 | |
Step 2: Install MySQL | |
sudo apt install mysql-server mysql-client | |
sudo /usr/bin/mysql_secure_installation |