Skip to content

Instantly share code, notes, and snippets.

@gpxlnx
gpxlnx / List of API endpoints & objects
Created March 26, 2025 16:01 — forked from yassineaboukir/List of API endpoints & objects
A list of 3203 common API endpoints and objects designed for fuzzing.
0
00
01
02
03
1
1.0
10
100
1000
@gpxlnx
gpxlnx / ambiente-dev-ubuntu-curso-python.sh
Created February 28, 2023 22:04 — forked from luizomf/ambiente-dev-ubuntu-curso-python.sh
Instalação ambiente dev Ubuntu 22 do curso de Python
#!/bin/bash
# Executar comandos a seguir para atualizar os pacotes
sudo apt update -y
sudo apt upgrade -y
# Só o Python
sudo apt install python3.10-full python3.10-dev -y
# Instalar pacotes a seguir
@gpxlnx
gpxlnx / Makefile
Created November 22, 2021 16:01 — forked from luzfcb/Makefile
.DEFAULT_GOAL := help
help: ## show help message
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[$$()% a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
compile: ## Compile foobar
@echo "##### Compiling foobar"
@gpxlnx
gpxlnx / gist:fec0ff4e4b8aa85a151baa981001e55f
Created July 14, 2020 13:19 — forked from sfourman/gist:6311334
FreeBSD install script
#!/bin/sh
#############################
# 2013 Sam Fourman Jr. #
# sfourman@gmail.com #
# #
# My ZFS Install script #
#############################
#The goal here is to one day, boot Gentoo and FreeBSD from the same zpool via
#BeHyve... currently this script only Installs FreeBSD...
hostname elliot-01
echo elliot-01 > /etc/hostname
bash
curl -fsSL https://get.docker.com | bash
docker version
docker ps
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
apt-get update
apt-get install kubelet kubectl kubeadm
@gpxlnx
gpxlnx / Post-RubyRails.md
Created March 21, 2020 15:33 — forked from lucasnogueira/Post-RubyRails.md
Para aprender Ruby e Rails

É difícil falar de Ruby sem mencionar seu framework web mais famoso, Ruby on Rails. Mas não adianta muito encarar o framework sem um prévio estudo da linguagem (o que de fato já observei acontecer inúmeras vezes). Esse post tem como intuito auxiliar na aprendizagem tanto da linguagem como do framework, para evitar que erros comuns como esse tornem a utilização de ambos um desastre.

Ruby

Ruby é uma linguagem de programação que apareceu para o mundo em 1995, criada por Yukihiro "Matz" Matsumoto. Tem como características o fato de ser uma linguagem de uso geral, com tipagem dinâmica e forte, orientada a objetos e que incorpora diversos paradigmas de programação, como o funcional e o imperativo.

Iniciantes

  • Ruby in Twenty Minutes - É o que o nome diz: um pequeno tutorial que promete não tomar mais do que 20 minutos do seu tempo. Se encarrega de mostrar como baixar e instalar o Ruby. Faz grande uso da IRB (Int
@gpxlnx
gpxlnx / tmux-atalhos.md
Created January 28, 2020 12:18 — forked from aalvesjr/tmux-atalhos.md
[TMUX] Atalhos

quando ler <Prefix> será o padrão Ctrl + b

Window

  • <Prefix> c => para criar uma nova 'window'
  • <Prefix> % => para dividir uma 'window' verticalmente
  • <Prefix> " => para dividir uma 'window' horizontalmente
  • <Prefix> & => para fechar uma 'window'
  • <Prefix> . => move a window para algum indice ainda não utilizado
  • <Prefix> 0 a 9 => abre a 'window' com o numero digitado
  • \ w => abre a 'window' a partir de uma lista
@gpxlnx
gpxlnx / zabbix_migration.md
Created November 7, 2019 10:40 — forked from mwalczak/zabbix_migration.md
Migrating Zabbix with MySQL backend to a new machine

Today I've solved the problem of one server being to slow to handle the growth of my zabbix configuration. I'm using zabbix-server 2.2.2 with MySQL/Debian backend and around 20 zabbix-agents with Debian installed.

Let's say old Zabbix server IP is: A.B.C.D and new is: U.X.Y.Z. The domain name for the instalation will be: http://zbx.newmachine.com

Below you will find all steps to migrate your configuration:

Ensure all agents will accept connections from the new IP Modify each agent configuration file (in debian: /etc/zabbix/zabbix_agentd.conf) and add new IP

@gpxlnx
gpxlnx / chaves.sh
Created October 24, 2019 16:28 — forked from berlotto/chaves.sh
Chaves GPG e SSH
#Chaves GPG (publica e privada) para criptografia e assinatura de emails, arquivos, etc...
#Local padrao das chaves: /home/<username>/.gnupg/
#Criar
~$ gpg --gen-key
#Listar as chaves existentes
~$ gpg --list-keys
#Importar a chave publica de alguem