Skip to content

Instantly share code, notes, and snippets.

View alsgu3rra's full-sized avatar
🌎
programador de sistemas

AlanGuerra alsgu3rra

🌎
programador de sistemas
View GitHub Profile
@alsgu3rra
alsgu3rra / index.mjs
Created April 20, 2024 01:05
Servidor Puro no NodeJS
import { createServer } from 'node:http';
const server = createServer((req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World!\n');
});
server.listen(3000, '127.0.0.1', () => {
console.log('Listening on 127.0.0.1:3000');
});
@alsgu3rra
alsgu3rra / settings.json
Created May 4, 2024 09:32
Vscode Settings
{
// Iniciar
"workbench.startupEditor": "none",
"workbench.editor.labelFormat": "short",
"workbench.editor.empty.hint": "hidden",
"workbench.activityBar.location": "bottom",
// Segurança
"security.promptForLocalFileProtocolHandling": false,
// Atualização
"update.mode": "manual",
@alsgu3rra
alsgu3rra / docker-compose.yml
Created May 12, 2024 16:18
Container Message Broker Rabbitmq
networks:
rabbitmq-net:
name: rabbitmq-net
driver: bridge
volumes:
rabbitmq-data:
name: rabbitmq-data
driver: local
@alsgu3rra
alsgu3rra / planilha-organizar.py
Last active May 12, 2024 16:23
Organizar planilha de clientes em ordem alfabética
import pandas as pd
# Carregando a planilha original
df_original = pd.read_excel('sua_planilha.xlsx', header=None)
# Criando um dicionário vazio para armazenar os DataFrames de cada letra
dfs_separados = {}
# Iterando sobre cada linha da planilha original
@alsgu3rra
alsgu3rra / docker-compose.yaml
Created May 12, 2024 16:26
Container Mongo Express + Mongodb
database-viewer:
image: mongo-express
environment:
- ME_CONFIG_MONGODB_SERVER=database
- ME_CONFIG_MONGODB_PORT=27017
ports:
- 8081:8081
depends_on:
- database
@alsgu3rra
alsgu3rra / index.md
Created May 14, 2024 18:33
Extensões que eu uso no meu navegador Web
  • AdGuard AdBlocker
  • AdGuard VPN — free & secure proxy for Chrome
  • Angular DevTools
  • Awesome Screen Recorder & Screenshot
  • Bitwarden Password Manager
  • Browser Firewall
  • Buster: Captcha Solver for Humans
  • Category Tabs for Google Keep
  • Chrome Remote Desktop
  • CodeSandbox
@alsgu3rra
alsgu3rra / index.md
Created May 14, 2024 18:34
Flags que eu utilizo no meu navegador web
  • Select HW overlay strategies
  • Experimental QUIC protocol
  • WebAssembly lazy compilation
  • Vulkan
  • Block insecure private network requests.
  • Parallel downloading
  • Back-forward cache
  • Enables Display Compositor to use a new gpu thread.
@alsgu3rra
alsgu3rra / bspwmrc
Created May 14, 2024 20:04
Configuração do meu bspwm
#!/bin/sh
#LAUNCHERS
$HOME/.config/bspwm/autostart.sh
#fix for moving spotify to specific workspace
#bspc config external_rules_command ~/.config/bspwm/scripts/external_rules_command
#BSPWM configuration
#bspc config border_radius 8
bspc config border_width 2
@alsgu3rra
alsgu3rra / config.ini
Created May 14, 2024 20:05
Configurações da Polybar
[global/wm]
;https://github.com/jaagr/polybar/wiki/Configuration#global-wm-settings
margin-top = 0
margin-bottom = 0
[settings]
;https://github.com/jaagr/polybar/wiki/Configuration#application-settings
screenchange-reload = true
compositing-background = over
compositing-foreground = over
@alsgu3rra
alsgu3rra / sxhkdrc
Created May 14, 2024 20:07
Configuração do Sxhkd
#################################################################
# KEYBOARD BINDINGS FOR ANY TWM
#################################################################
#################################################################
# SUPER + FUNCTION KEYS
#################################################################
# Navegador Web
super + F1