Skip to content

Instantly share code, notes, and snippets.

View apolzek's full-sized avatar

Vinícius Batista apolzek

View GitHub Profile
@apolzek
apolzek / post-inst-endeavouros-desktop.sh
Created October 19, 2024 11:22
Post install EndeavourOS i3wm Desktop
#!/bin/bash
sudo -v
###################################
# Updating repositories
# Installin Timeshift
# Creating a system snapshot
#################################
@apolzek
apolzek / LazyVIM.md
Created June 18, 2024 01:23 — forked from danielkec/LazyVIM.md
LazyVIM

Default shortcuts

Ctrl+h        select file tree
Ctrl+l        select file editor
Shift+h       left editor tab
Shift+l       right editor tab
Alt+j         move current line up
Alt+k         move current line down
double space  filename search(telescope) - `Ctrl+d` and `Ctrl+u` to scroll preview
@apolzek
apolzek / grafana-postgres-datasource.yml
Created February 13, 2024 18:51 — forked from wwerner/grafana-postgres-datasource.yml
Example grafana datasource provisioning for postgreSQL
apiVersion: 1
datasources:
- name: Postgres
type: postgres
url: localhost:5432
database: grafana
user: grafana
secureJsonData:
password: "Password!"
@apolzek
apolzek / using-uuid-as-pk.md
Created February 5, 2024 09:22 — forked from rponte/using-uuid-as-pk.md
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

@apolzek
apolzek / 00-installer-config.yaml
Created January 10, 2024 20:57
Ubuntu network file configuration
network:
renderer: networkd
ethernets:
enp0s3:
dhcp4: false
addresses:
- 192.168.100.110/24
nameservers:
addresses: [1.1.1.1, 8.8.8.8]
routes:
@apolzek
apolzek / matrix.sh
Last active July 31, 2023 19:00
Show matrix in terminal linux
#!/usr/bin/env bash
while :;do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(printf "\U$(($RANDOM % 500))");sleep 0.05;done|gawk '{a[$3]=0;for (x in a){o=a[x];a[x]=a[x]+1;printf "\033[%s;%sH\033[2;32m%s",o,x,$4;printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,$4;if (a[x]>=$1){a[x]=0;}}}'
@apolzek
apolzek / labs.txt
Created August 1, 2022 22:27
FREE LABS TO TEST YOUR REDTEAM/BLUETEAM and CTF SKILLS
Share with your network and friends.
· Attack-Defense - https://attackdefense.com
· Alert to win - https://alf.nu/alert1
· Bancocn - https://bancocn.com
· CTF Komodo Security - https://ctf.komodosec.com
· CryptoHack - https://cryptohack.org/
· CMD Challenge - https://cmdchallenge.com
· Explotation Education - https://exploit.education
· Google CTF - https://lnkd.in/e46drbz8
· HackTheBox - https://www.hackthebox.com
@apolzek
apolzek / server.py
Created November 5, 2021 19:39 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):
@apolzek
apolzek / curl-time-request.sh
Created November 4, 2021 19:01
Time request curl
# curl -w "@curl-format.txt" -o /dev/null -s "http://wordpress.com/"
time_namelookup: %{time_namelookup}s\n
time_connect: %{time_connect}s\n
time_appconnect: %{time_appconnect}s\n
time_pretransfer: %{time_pretransfer}s\n
time_redirect: %{time_redirect}s\n
time_starttransfer: %{time_starttransfer}s\n
----------\n
time_total: %{time_total}s\n
@apolzek
apolzek / sed-replace.sh
Created July 25, 2021 20:25
Replace version Helm Chart with sed
sed -i "s/^version:.*$/version: $(git describe)/" chart/Chart.yaml
sed -i "s/^appVersion:.*$/appVersion: $(git describe)/" chart/Chart.yaml
helm upgrade app ./chart