gaiety / update_with_from_join.sql

0 curtidas
0 bifurcações
1 arquivos
Última atividade 2 days ago
https://neon.com/postgresql/postgresql-tutorial/postgresql-update-join
sql
1 UPDATE table1
2 SET table1.c1 = new_value
3 FROM table2
4 WHERE table1.c2 = table2.c2;

gaiety / Git Alias - Merge latest main

0 curtidas
0 bifurcações
1 arquivos
Última atividade 1 month ago
Git Alias to Merge Main into Current Branch
1 [alias]
2 update = "!update() { git fetch && git merge main --no-edit; }; update"

gaiety / Simple nginx static site docker compose

0 curtidas
0 bifurcações
1 arquivos
Última atividade 3 months ago
No build steps or anything fancy, easy to throw into a static project
1 name: nginx-static-site
2 services:
3 client:
4 image: nginx
5 ports:
6 - 80:80
7 volumes:
8 - ./:/usr/share/nginx/html

gaiety / dotfiles-link.sh

0 curtidas
0 bifurcações
1 arquivos
Última atividade 3 months ago
Links need to be absolute, which is hard when you don't know where a git repo will be cloned to. This helps with that!
1 # Link current directory instead of having to always do absolute
2 ln -s "$(pwd)/cool-tool" ~/.config/cool-tool

gaiety / ecto-dynamic-list-within-list-query.sh

0 curtidas
0 bifurcações
1 arquivos
Última atividade 3 months ago
Adding a check of an elixir list compared to a PostgreSQL array
1 def query(filters, dynamic) do
2 dynamic(
3 [features],
4 ^dynamic and fragment("? && ?::varchar[]", ^features, item.features)
5 )
6 end
Próximo Anterior