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 / rate-limiter.spec.ts
Created June 19, 2024 01:54
testar rate limiter no jest
import { INestApplication } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import * as request from 'supertest';
import { AppModule } from './app.module';
describe('Rate Limit', () => {
let app: INestApplication;
beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
[user]
name =
username =
email =
signingkey =
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
#!/usr/bin/env bash
# ▬▬▬.◙.▬▬▬
# ═▂▄▄▓▄▄▂
# ◢◤ █▀▀████▄▄▄▄▄▄◢◤
# █▄ █ :) ██▀▀▀▀▀▀▀╬
# ◥█████◤
# ══╩══╩══
#
# Um bspwmrc personalizado para o gerenciador de janelas bspwm.
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
lastUpdateCheck 1675360382814
yarn-offline-mirror "./.config/yarn/cache"
yarn-offline-mirror-pruning true
disable-self-update-check true
--[[
#=====================================================================================
# arcolinux
# Date : 16/09/2017
# Author : Erik Dubois at http://www.erikdubois.be
# Version : v1.2.0
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation : http://erikdubois.be/category/linux/aureola/
#======================================================================================
# Pretty much copied from Axarva's configs
#################################
# Corners #
#################################
# requires: https://github.com/sdhand/compton
corner-radius = 12;
rounded-corners-exclude = [
#"window_type = 'toolbar'",
"class_g = 'eww-bar'",
@alsgu3rra
alsgu3rra / .shellrc
Created May 14, 2024 20:10
Padronizando Bash e Zsh
export EDITOR='nano'
export VISUAL='nano'
export HISTCONTROL=ignoreboth:erasedups
export PAGER='most'
[[ $- != *i* ]] && return
if [ -d "$HOME/.bin" ] ;
then PATH="$HOME/.bin:$PATH"
fi
source $HOME/.shellrc
source $HOME/.aliasesrc
export ZSH=/usr/share/oh-my-zsh/
ZSH_THEME="kafeitu"
plugins=(git)
if [ -f $ZSH/oh-my-zsh.sh ]; then
source $HOME/.shellrc
source $HOME/.aliasesrc
PS1='[\u@\h \W]\$ '
bind "set completion-ignore-case on"
shopt -s autocd
shopt -s cdspell
shopt -s cmdhist
# Systemd
alias start='sudo systemctl start'
alias stop='sudo systemctl stop'
alias disable='sudo systemctl disable'
alias enable='sudo systemctl enable'
# Pacman
alias install='sudo pacman -S --noconfirm'
alias uninstall='sudo pacman -R --noconfirm'
alias update='sudo pacman -Syy --color auto'