sudo apt-get install php7.0 php7.0-cli php7.0-common php7.0-curl
sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
sudo php composer-setup.php
sudo php -r "unlink('composer-setup.php');"
version: '3' | |
volumes: | |
db_data: | |
driver: local | |
grafana_data: | |
driver: local | |
networks: | |
app_net: |
# For Ubuntu 18.04 | |
# If you dont have one, create personal font dir | |
mkdir ~/.fonts | |
# Clone FiraCodeiScript | |
git clone https://github.com/kencrocken/FiraCodeiScript.git /tmp/FiraCodeiScript | |
mv /tmp/FiraCodeiScript/*.ttf ~/.fonts | |
# Rebuild font cache |
#!/bin/bash | |
for my_files in *; do mv -v "$my_files" "${my_files/my pattern to remove/}";done |
SELECT | |
relname as "Table", | |
pg_size_pretty(pg_total_relation_size(relid)) As "Size", | |
pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as "External Size" | |
FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC; |
#!/bin/bash | |
# ARQUIVO A SER FEITO O DOWNLOAD | |
# FONTE: https://www.thinkbroadband.com/download | |
download='http://ipv4.download.thinkbroadband.com/10MB.zip' | |
# EXECUTA DONWLOAD | |
# --report-speed=bits = APRESENTA A INFORMAÇÃO EM BITS/SEGUNDO | |
# -o /dev/stdout = SAÍDA DE INFORMAÇÃO PARA O SCRIPT |
#!/usr/bin/python3.5 | |
import os | |
def importa_ssl(): | |
""" | |
Importa certificados SSL | |
""" | |
# CentOS 7.5 | |
if os.path.exists("/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt"): |
FROM php:7.2-apache | |
MAINTAINER Pierre Cheynier <pierre.cheynier@gmail.com> | |
ENV PHPIPAM_SOURCE https://github.com/phpipam/phpipam/ | |
ENV PHPIPAM_VERSION 1.3.1 | |
ENV PHPMAILER_SOURCE https://github.com/PHPMailer/PHPMailer/ | |
ENV PHPMAILER_VERSION 5.2.21 | |
ENV PHPSAML_SOURCE https://github.com/onelogin/php-saml/ | |
ENV PHPSAML_VERSION 2.10.6 | |
ENV WEB_REPO /var/www/html |
version: '2' | |
volumes: | |
db_data: | |
driver: local | |
pgadmin_data: | |
driver: local | |
services: | |
db: |
<?php | |
use Illuminate\Support\Facades\DB; | |
$query = "SELECT tables.table_name, columns.column_name, columns.data_type, columns.udt_name FROM information_schema.tables AS tables JOIN information_schema.columns AS columns ON tables.table_name = columns.table_name WHERE tables.table_type = 'BASE TABLE' AND tables.table_schema NOT IN ('pg_catalog', 'information_schema')"; | |
$data = json_decode(collect(DB::select($query))); |