Skip to content

Instantly share code, notes, and snippets.

View apolzek's full-sized avatar

Vinícius Batista apolzek

View GitHub Profile
@apolzek
apolzek / w10commands.txt
Created April 13, 2019 12:16
comandos windows 10
winver: Exibe informaçõe sobre a versão do Windows instalado no computador
appwiz.cpl: Abre a janela para adicionar ou remover programas
msinfo32: Abre a janela de informações do sistema, onde é possível obter um resumo dos componentes do PC, bem como obter detalhes sobre conflitos
wiaacmgr: Abre o assistente de câmera ou scanner
migwiz: Abre o assistente de transferência de definições e arquivos
fsquirt: Abre o assistente de transferência de arquivo Bluetooth
hdwwiz.cpl: Abre o gerenciador de dispositivos do Windows
calc: Calculadora
wscui.cpl: Abre a central de segurança e manutenção do Windows, onde é possível ver se está tudo bem com o Firewall
wscui.cpl no Prompt ou na janela Executar
@apolzek
apolzek / token-discord.js
Last active June 5, 2023 18:03
Hack get token discord
CRTL + SHIFT + I
var iframe = document.createElement('iframe');iframe.style.display = 'none';document.body.prepend(iframe);window.localStorage = iframe.contentWindow.localStorage;console.log("\n"+window.localStorage.token);
F5 + ENTER
@apolzek
apolzek / stop-apport.sh
Last active June 5, 2023 18:04
Disable Apport Ubuntu
#!/bin/bash
sudo service apport stop
sudo echo "enabled=0" > /etc/default/apport
----------------------------OU--------------------------------
sudo sed -i 's/enabled=0/enabled=1/g' /etc/default/apport
@apolzek
apolzek / printAsm.asm
Last active November 10, 2019 20:06
Print my name asm
section .text
global _start ;must be declared for using gcc
_start: ;tell linker entry point
mov edx, len ;message length
mov ecx, msg ;message to write
mov ebx, 1 ;file descriptor (stdout)
mov eax, 4 ;system call number (sys_write)
int 0x80 ;call kernel
mov eax, 1 ;system call number (sys_exit)
int 0x80 ;call kernel
@apolzek
apolzek / check_depend.sh
Created July 9, 2020 17:30
Checks and installs dependencies
#!/bin/bash
requires=(helm kubectl testscript anothertest)
function check_dependencies() {
for item in "${requires[@]}"; do
if [ -z $(which $item) ]; then
echo "[Alert] $item: not found"
else
echo "$item: installed"
@apolzek
apolzek / docker-compose.yaml
Last active June 5, 2023 18:05
COMPOSE - Elasticsearch, Kibana and APM Server
version: '2.2'
services:
apm-server:
image: docker.elastic.co/apm/apm-server:7.9.0
depends_on:
elasticsearch:
condition: service_healthy
kibana:
condition: service_healthy
cap_add: ["CHOWN", "DAC_OVERRIDE", "SETGID", "SETUID"]
@apolzek
apolzek / listen_port.py
Last active January 7, 2021 19:27
Listen port Python3
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('0.0.0.0', 50000))
s.listen(1)
conn, addr = s.accept()
while 1:
data = conn.recv(1024)
print(data)
if not data:
break
@apolzek
apolzek / docker-compose.yml
Last active June 5, 2023 18:07 — forked from pantsel/docker-compose.yml
COMPOSE - Kong, Postgres and Konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@apolzek
apolzek / Makefile
Last active July 15, 2021 11:29 — forked from gomex/Makefile
Makefile example
# import env config
cnf ?= .env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# Get the latest tag
TAG=$(shell git describe --tags --abbrev=0)
GIT_COMMIT=$(shell git log -1 --format=%h)
@apolzek
apolzek / rmhash.sh
Last active March 31, 2022 14:31
Remove files with the same hash
# by: apolzek
md5sum * | sort -n > .file
filename='.file'
n=1
x=1
while read line; do
current_hash=$(echo $line | awk {'print $1'})
echo "[debugging] current_hash: $current_hash"
x=$(($n + 1))