Consolisa SISAN
- PHP >= 7.1.3
- MySQL ou MariaDB
- Apache ou Nginx
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
| #!/bin/sh | |
| # wait-for-migration.sh | |
| set -e | |
| cmd="$@" | |
| echo "cmd: $cmd" | |
| until npx sequelize db:migrate; do |
| { | |
| "files.autoSave": "onFocusChange", | |
| "workbench.startupEditor": "newUntitledFile", | |
| "window.zoomLevel": 0, | |
| "editor.fontFamily": "Fira Code", | |
| "editor.fontSize": 18, | |
| "editor.fontLigatures": true, | |
| "editor.renderLineHighlight": "gutter", | |
| "editor.tabSize": 2, | |
| "editor.rulers": [ |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| MapUtils.openMap(-3.823216,-38.481700); |
| import 'package:url_launcher/url_launcher.dart'; | |
| class MapUtils { | |
| static openMap(double latitude, double longitude) async { | |
| String googleUrl = 'https://www.google.com/maps/search/?api=1&query=$latitude,$longitude'; | |
| if (await canLaunch(googleUrl)) { | |
| await launch(googleUrl); | |
| } else { | |
| throw 'Não foi possível abrir o mapa.'; | |
| } |
| #!/bin/bash | |
| HOST='localhost' | |
| PORT='5432' | |
| USERNAME='postgres' | |
| PASSWORD='postgres' | |
| DATABASE='postgres' | |
| while test $# -gt 0; do | |
| case "$1" in | |
| --help) |
| # flutter create --org <Seu Domínio invertido> <Nome do App> | |
| # Exemplo | |
| flutter create \ | |
| --org br.com.clairtonluz \ # domain | |
| --androidx \ # create android project using androidx | |
| -a kotlin \ # use kotlin language to android project (default: java) | |
| -i swift \ # use swift language to iOS project (default: Objetive C) | |
| firstapp # app name |
| import okhttp3.ConnectionSpec; | |
| import okhttp3.OkHttpClient; | |
| import org.junit.Test; | |
| import retrofit2.Call; | |
| import retrofit2.Response; | |
| import retrofit2.Retrofit; | |
| import retrofit2.converter.gson.GsonConverterFactory; | |
| import retrofit2.http.GET; | |
| import retrofit2.http.Path; |
| // faz uma requisiço do tipo post e o response dessa requisição é o PDF | |
| this.fetch(`blog.clairtonluz.com.br/gerarPDF`, {method: 'POST'}) | |
| .then(response => response.blob()) | |
| .then(file => { | |
| // Criar uma url local para o arquivo baixado. | |
| const url = window.URL.createObjectURL(blob); | |
| // Criar um link | |
| const a = document.createElement('a'); | |
| // define o href do link para a url criada | |
| a.href = url; |