Ubuntu/Debian
sudo apt install -y pkg-config build-essential autoconf bison re2c \
libxml2-dev libsqlite3-dev libonig-dev libssl-dev \
zlib1g-dev libcurl4-openssl-dev libedit-dev libreadline-dev
| <?xml version="1.0"?> | |
| <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PSR12" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd"> | |
| <description>The PSR-12 coding standard.</description> | |
| <arg name="tab-width" value="4"/> | |
| <!-- 2. General --> | |
| <!-- 2.1 Basic Coding Standard --> | |
| <!-- Code MUST follow all rules outlined in PSR-1. --> |
| [Desktop Entry] | |
| Name=PopSQL | |
| Comment=Pop SQL | |
| GenericName=Database Manager | |
| Exec=/home/matheus.andrade/Applications/PopSQL-1.0.48.AppImage | |
| Icon=/home/matheus.andrade/Applications/popsql.png | |
| Type=Application | |
| StartupNotify=true |
| const form = document.getElementById('form'); | |
| const inputs = { | |
| nome: document.getElementById('nome'), | |
| idade: document.getElementById('idade'), | |
| descricao: document.getElementById('descricao'), | |
| conteudo: document.getElementById('conteudo'), | |
| }; | |
| form.addEventListener('submit', (e) => { | |
| e.preventDefault(); |
| <?xml version="1.0" encoding="utf-8" ?> | |
| <!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ --> | |
| <!-- Active URL: https://ondras.zarovi.cz/sql/demo/?keyword=default --> | |
| <sql> | |
| <datatypes db="mysql"> | |
| <group label="Numeric" color="rgb(238,238,170)"> | |
| <type label="Integer" length="0" sql="INTEGER" quote=""/> | |
| <type label="TINYINT" length="0" sql="TINYINT" quote=""/> | |
| <type label="SMALLINT" length="0" sql="SMALLINT" quote=""/> | |
| <type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/> |
| FROM php:7.2-fpm | |
| # Copy composer.lock and composer.json | |
| COPY composer.lock composer.json /var/www/ | |
| # Set working directory | |
| WORKDIR /var/www | |
| # Install dependencies | |
| RUN apt-get update && apt-get install -y \ |
Open-Cobol, the compiler:sudo apt install open-cobol
Install the vscode extension Cobol for highlighting cobol syntaxe and other things.
Write a program in .cob or .cbl
| <?php | |
| function load($namespace) { | |
| $namespace = str_replace("\\"."/", $namespace); | |
| $absolutePath = __DIR__ . "/" . $namespace . ".php"; | |
| return require_once $absolutePath; | |
| } | |
| spl_autoload_register(__NAMESPACE__ . "\load"); |
| #!/bin/bash | |
| # xrandr funciona apenas com xorg, não com wayland | |
| [ "$XDG_SESSION_TYPE" = x11 ] || exit 0 | |
| xrandr --newmode "1360x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync | |
| xrandr --addmode VGA-1 "1360x768_60.00" | |
| #lembre-se de dar permissões de executar o script e colocar no campo 'comandos' em aplicações de inicialização: | |
| # /bin/bash /path-do-arquivo/set_resolution.sh |
Primeiramente baixe o código fonte da versão do PHP que quiser, irei usar a mais recente(data que estou escrevendo) 7.4.0.
Extraia e entre na pasta via terminal.
1 - Instalar dependências(usando Ubuntu 19.10)
sudo apt install autoconf automake bison build-essential curl flex \