next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt| // starts a hot reload server from a folder | |
| browser-sync start --server 'public' --files '**/*.*' |
| { | |
| // Define o tema do VSCode | |
| "workbench.colorTheme": "Shades of Purple", | |
| // Configura tamanho e família da fonte | |
| "editor.fontSize": 18, | |
| "editor.lineHeight": 24, | |
| "editor.fontFamily": "Fira Code", | |
| "editor.fontLigatures": true, | |
| "explorer.compactFolders": false, |
| class MikrotikModel { | |
| // atributos do model | |
| protected $attributes = []; | |
| // instância da API | |
| protected $api; | |
| // comando base | |
| protected $baseComm = "/"; |
| :global addNetmapRules do={ | |
| :for i from=0 to ($count - 1) do={ | |
| :local pRange "$($portStart + ($i * $portsPerAddr))-$($portStart + (($i + 1) * $portsPerAddr) - 1)" | |
| /ip firewall nat add chain=src-nat action=netmap protocol=tcp \ | |
| src-address=($srcStart + ($i * 256)) to-address=$toAddr to-ports=$pRange | |
| /ip firewall nat add chain=src-nat action=netmap protocol=udp \ | |
| src-address=($srcStart + ($i * 256)) to-address=$toAddr to-ports=$pRange | |
| } | |
| } |
| #! /usr/bin/python | |
| print "\n*********************************************************************" | |
| print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version" | |
| import os | |
| import socket | |
| import hashlib | |
| import struct | |
| # get the host id and host name to calculate the hostkey | |
| hostid=os.popen("hostid").read().strip() | |
| hostname = socket.gethostname() |
| 'pusher' => [ | |
| 'driver' => 'pusher', | |
| 'key' => env('PUSHER_APP_KEY'), | |
| 'secret' => env('PUSHER_APP_SECRET'), | |
| 'app_id' => env('PUSHER_APP_ID'), | |
| 'options' => [ | |
| 'cluster' => env('PUSHER_APP_CLUSTER'), | |
| 'encrypted' => env('WS_ENCRYPTED', true), | |
| 'host' => env('WS_HOST', '127.0.0.1'), | |
| 'port' => env('WS_PORT', 6001), |
| <?php | |
| namespace Tests\Feature; | |
| use App\Client; | |
| use App\Employer; | |
| use App\Occupation; | |
| use Tests\TestCase; | |
| use Illuminate\Foundation\Testing\WithFaker; | |
| use Illuminate\Foundation\Testing\RefreshDatabase; |