Skip to content

Instantly share code, notes, and snippets.

View lucassmacedo's full-sized avatar
🎯
Focusing

Lucas Macedo lucassmacedo

🎯
Focusing
View GitHub Profile
library(sf)
library(ggplot2)
library("tmap")
library("tmaptools")
library (leaflet)
library (dplyr)
options (scipen =999)
library(DBI)
con <- dbConnect(RMariaDB::MariaDB(), host = "xx", user = "xx",dbname="xx",password = "xx")
@lucassmacedo
lucassmacedo / InstallJetBrain.sh
Created May 30, 2019 11:36
Install or update jetbrains products like PhpStorm, WebStorm, IntelliJ Idea, PyCharm, CLion, ReSharper on Ubuntu and fix problems with non latin hotkeys in gui java application
#!/bin/bash
# installation jetbrains
j_url="https://data.services.jetbrains.com/products/download"
tmp_dir="$HOME/tmp_jb"
install_dir="/opt"
if [ "$(whoami)" != "root" ]
then
echo "Sorry, you are not root."
exit 1
fi
Viagem: http://www.melhoresdestinos.com.br/
https://www.linuxuprising.com/2018/08/gpaste-is-great-clipboard-manager-for.html
https://github.com/KELiON/cerebro
@lucassmacedo
lucassmacedo / v
Last active February 27, 2019 20:45
Go
https://jtemporal.com
https://gopher.pro.br
https://greatercommons.com
https://github.com/avelino/awesome-go
https://golang.org/
https://golang.org/doc/
https://github.com/golang/go/wiki
https://tour.golang.org
https://gobyexample.com/
https://tour.golang.org/
@lucassmacedo
lucassmacedo / gist:deebace1dad9a428b412643aada61825
Last active February 22, 2019 11:35
Recursive Parent ID PGSQL
# https://wiki.postgresql.org/wiki/Getting_list_of_all_children_from_adjacency_tree
# https://www.depesz.com/2009/03/23/getting-list-of-all-children-in-adjacency-list-tree-structure/
CREATE OR REPLACE FUNCTION get_all_children_array(use_parent INT4) RETURNS INT4[] AS
$$
DECLARE
process_parents INT4[] := ARRAY [ use_parent ];
children INT4[] := '{}';
new_children INT4[];
BEGIN
WHILE (array_upper(process_parents, 1) IS NOT NULL)
<VirtualHost *:80>
ProxyPreserveHost On
ProxyErrorOverride On
ProxyPass /http-bind/ http://172.16.202.110:7070/http-bind/
ProxyPassReverse /http-bind/ http://172.16.202.110:7070/http-bind/
</VirtualHost>
https://www.phproundtable.com/
https://www.functionalgeekery.com/
http://www.fullstackradio.com/
https://changelog.com/podcast
http://thewebahead.net/
https://syntax.fm/
https://spec.fm/podcasts/
https://github.com/guipdutra/awesome-geek-podcasts#in-english
https://www.diolinux.com.br/search/label/DioCast
http://databasecast.com.br/wp/databasecast-3-not-only-sql/
select * from "table" where "field" @> '[{"key": "value"}]' limit 100
Nomes das Tabelas
SX1 Manutenção de Perguntas de parametrização (movimentações, consultas e relatórios)
SX2 Manutenção dos Arquivos
SX3 Manutenção dos Campos
SX4 Configuração de Agenda de Relatórios e Processos
SX5 Manutenção de Tabelas
SX6 Manutenção de Parâmetros
SX7 Manutenção de Gatilhos de Campos (SX3)
SX9 Manutenção de Relacionamento entre Arquivos (SX2)
SXA Manutenção de Pastas Cadastrais dos Arquivos (SX2)