>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OCTANE_SERVER=swoole | |
| OCTANE_HTTPS=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Helpers; | |
| class NamespaceHelper | |
| { | |
| /** | |
| * Get the namespace of a class. | |
| * | |
| * @param string $className |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Alta Floresta D'Oeste"); | |
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Ariquemes"); | |
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Cabixi"); | |
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Cacoal"); | |
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Cerejeiras"); | |
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Colorado do Oeste"); | |
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Corumbiara"); | |
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Costa Marques"); | |
| insert into cities (cod, uf_name, city) values (11, "Rondônia", "Espigão D'Oeste"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Cities::create([ | |
| 'cod' => '11', | |
| 'uf_name' => 'Rondônia', | |
| 'city' => "Alta Floresta D'Oeste", | |
| ]); | |
| Cities::create([ | |
| 'cod' => '11', | |
| 'uf_name' => 'Rondônia', | |
| 'city' => "Ariquemes", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| exec('openssl enc -aes-256-cbc -pbkdf2 -k 102030 -in /mnt/c/Lixo/a.enc.txt -out /mnt/c/Lixo/b.txt');// Encrypt | |
| exec('openssl enc -aes-256-cbc -pbkdf2 -k 102030 -d -in /mnt/c/Lixo/a.enc.txt -out /mnt/c/Lixo/b.txt');// Decrypt | |
| /** | |
| É nescessário possuir o OpenSSL no computador, se for windows, basta realizar o download dos seguintes arquivos e adicionar a um diretório que esteja na path do sistema. | |
| https://host.sisecf.app/arquivos/openssl/msys-crypto-1.1.dll | |
| https://host.sisecf.app/arquivos/openssl/msys-ssl-1.1.dll | |
| https://host.sisecf.app/arquivos/openssl/openssl.exe | |
| ou |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo Preparando...... | |
| sudo mkdir /home/downloads | |
| cd /home/downloads | |
| sudo chmod -R 777 /home/downloads | |
| #echo Google Chrome | |
| get https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| sudo dpkg -i ./google-chrome-stable_current_amd64.deb | |
| sudo rm ./google-chrome-stable_current_amd64.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use admin/pass as user/password credentials to login to openemr (from OE_USER and OE_PASS below) | |
| # MYSQL_HOST and MYSQL_ROOT_PASS are required for openemr | |
| # FLEX_REPOSITORY and (FLEX_REPOSITORY_BRANCH or FLEX_REPOSITORY_TAG) are required for flex openemr | |
| # MYSQL_USER, MYSQL_PASS, OE_USER, MYSQL_PASS are optional for openemr and | |
| # if not provided, then default to openemr, openemr, admin, and pass respectively. | |
| version: '3.1' | |
| services: | |
| mysql: | |
| restart: always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers\Api; | |
| use App\Model; | |
| use Illuminate\Http\Request; | |
| use App\Http\Controllers\Controller; | |
| use Illuminate\Pagination\LengthAwarePaginator as Paginator; | |