Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Lucas Macedo lucassmacedo

🎯
Focusing
Block or report user

Report or block lucassmacedo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lucassmacedo
lucassmacedo / InstallJetBrain.sh
Created May 30, 2019
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
View InstallJetBrain.sh
#!/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
View gist:df286181f1c601283305150ac4a7a756
#!/bin/bash
# Thanks @ketos @krishjun @denis111
## declare array of tools
declare -a tools=(
# "DataGrip"
# "CLion"
# "Rider"
"PhpStorm"
View gist:865045e98a1e9cffd982affac574672d
https://www.linuxuprising.com/2018/08/gpaste-is-great-clipboard-manager-for.html
https://github.com/KELiON/cerebro
View v
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/
View gist:deebace1dad9a428b412643aada61825
# 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)
View gist:572a262739e2c36d10b35f10543de9ee
<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>
View gist:9746525879ed238123d30999ba2734ef
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/
View gist:ca88ed650edc1ad63f2cda1e71315ca7
select * from "table" where "field" @> '[{"key": "value"}]' limit 100
View gist:4a7f7eddaec99315608e3e4b7a7103c1
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)
You can’t perform that action at this time.