Skip to content

Instantly share code, notes, and snippets.

Avatar

Wellington Domiciano wldomiciano

View GitHub Profile
View vector.c
// compiles with
// gcc vector.c -Wall -Wextra -Wpedantic `sdl2-config --cflags --libs` -lm
#include <SDL.h>
#include <math.h>
const double PI = 3.14159265358979323846264338327950288;
typedef struct {
double x, y;
@wldomiciano
wldomiciano / install-vscode-and-chrome.sh
Last active Aug 31, 2019
Script para instalar os Visual Studio Code e o Google Chrome no Ubuntu
View install-vscode-and-chrome.sh
#!/usr/bin/env sh
# Baixa a chave da Microsoft
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
# Baixa a chave do Google
wget -qO- https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# Move a chave da Microsoft pro lugar certo e remove arquivo temporário
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/ && rm packages.microsoft.gpg
@wldomiciano
wldomiciano / list-tables-with-a-column-in-a-db.sql
Last active May 15, 2020
Lista todas as tabelas que contenham colunas com um certo nome em um banco de dados em MySQL
View list-tables-with-a-column-in-a-db.sql
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME = 'your_column_name'
AND TABLE_SCHEMA = 'your_database_name';
View keybase.md

Keybase proof

I hereby claim:

  • I am wldomiciano on github.
  • I am wldomiciano (https://keybase.io/wldomiciano) on keybase.
  • I have a public key ASDtxbksQZwI0YAHq0qYy8axno683HxmgtPIHZyVSDHmngo

To claim this, I am signing this object: