Acesse o seu arquivo app/Providers/AppServiceProvider.php, e no método register adicione o seguinte :
/**
* Register any application services.
*
* @return void
*/| OCTANE_SERVER=swoole | |
| OCTANE_HTTPS=true |
| <?php | |
| namespace App\Helpers; | |
| class NamespaceHelper | |
| { | |
| /** | |
| * Get the namespace of a class. | |
| * | |
| * @param string $className |
| 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"); |
| Cities::create([ | |
| 'cod' => '11', | |
| 'uf_name' => 'Rondônia', | |
| 'city' => "Alta Floresta D'Oeste", | |
| ]); | |
| Cities::create([ | |
| 'cod' => '11', | |
| 'uf_name' => 'Rondônia', | |
| 'city' => "Ariquemes", |
| <?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 |
| 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 |
| <?php | |
| namespace App\Http\Controllers\Api; | |
| use App\Model; | |
| use Illuminate\Http\Request; | |
| use App\Http\Controllers\Controller; | |
| use Illuminate\Pagination\LengthAwarePaginator as Paginator; | |
| #!/usr/bin/env sh | |
| # ASCII: http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Docker%20Setup%20Script | |
| # SOURCE: https://gist.github.com/Gerst20051/bf1341448bd43f430761c1f8150fb1b7 | |
| function double_echo { | |
| echo && echo | |
| } | |
| function newline { |
| <?php | |
| // Your goal is to count how many items exist that have an age equal to or greater than 50, and print this final value. | |
| $ch = curl_init('https://coderbyte.com/api/challenges/json/age-counting'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_HEADER, 0); | |
| $data = curl_exec($ch); | |
| curl_close($ch); |