Skip to content

Instantly share code, notes, and snippets.

@Fabricio20
Fabricio20 / gist:94c227a7d6392a4efa79
Created August 30, 2015 02:31
Regras - Server Admin Chat | BR |
1: Não Divulgue Servidores
2: Não Envie Links Para Ganhar Dinheiro/Coisas (adf.ly, etc..)
3: Não Pingue O Chat. ( Enviar Imagem / Alterar O Topico / Enviar Um Contato / Enviar Um Arquivo )
4: Evite brigas, caso seja pedido para levá-las ao privado, faça-o.
Este é um chat de ajuda para administradores de servidores, adicione quem achar nescessario.
- Fabricio20 @ 2015
@Fabricio20
Fabricio20 / Combat Ships
Last active May 16, 2016 18:29
Elite: Dangerous Ship Builds By Fabricio20, alerok_147 @ Ghost Legion
http://coriolis.io/outfit/vulture/24A5E4A3A5A4E3C1e1e040400004a2b27252h.AwRj4zyA.Aw19kA==?bn=Combat%20Vulture
@Fabricio20
Fabricio20 / ufw.sh
Created January 27, 2017 05:08
UFW "fix" for anything, used over ssh
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
sudo ufw disable
@Fabricio20
Fabricio20 / Users-Service.md
Last active June 21, 2017 22:51
DiscordBans RESTful Responses

PATH: /users/{id}
METHOD: GET
Description: Returns a user profile (with all info).

{
    "heat": 10,
    "names": [
        {
            "name": "LewdBot",
            "time": {
>scheduling jitter
total measurement interval: 735.587 milliseconds
measurement latency: 0.25424 milliseconds
average above measurement: 0.477161 milliseconds
worst case (this is what matters): 50.3514 milliseconds
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: January 14th 2016
; Tutorial: https://www.tenforums.com/tutorials/37432-add-lock-drive-context-menu-bitlocker-drives-windows-10-a.html
; Needs the file below (VB file) on System32
[HKEY_CLASSES_ROOT\Drive\shell\lock-bde]
"AppliesTo"="System.Volume.BitLockerProtection:=1 OR System.Volume.BitLockerProtection:=3 OR System.Volume.BitLockerProtection:=5 NOT C:"
@Fabricio20
Fabricio20 / docker-compose.yml
Created July 9, 2018 18:38
Dockerized Sentry
version: '2'
volumes:
pgdb:
services:
sentry_redis:
image: redis
sentry_postgres:
image: postgres
environment:
POSTGRES_USER: sentry
@Fabricio20
Fabricio20 / US_INTL_BR_KEYBOARD
Last active July 12, 2020 20:12
Fix International Input on US Keyboards
### Original
https://forum.manjaro.org/t/setting-up-windows-macos-style-us-international-layout-in-manjaro-cedilla-accents-etc/133431/8
### Xcompose
https://github.com/raelgc/win_us_intl
@Fabricio20
Fabricio20 / Iptables.md
Last active December 4, 2020 11:36
Iptables cheatsheet.

Iptables cheatseet

Good to know: Iptables reads rules from top to bottom, stopping at the first rule that matches.

Terms

chain: group of rules (Default ones are INPUT, OUTPUT and FORWARD).

target: What to do with a packet (Often used are ACCEPT, DROP (No echo/"offline"), REJECT (Echoes back 'not authorized icmp')).

Targets

@Fabricio20
Fabricio20 / gist:b965c79377f87ef9cdf3
Last active February 16, 2021 16:35
Resetting Worlds Spigot - Fabricio20
// This Reset one is hand-made and may not work, but these are the methods and the sequence you need to follow.
public void reset(World world) { // Please modify to your needs
Bukkit.getServer().unloadWorld(world, false); // False = Not Save
Bukkit.getServer().runTaskLater(Main.getInstance(), new Runnable(){ // Run It Later to make sure its unloaded.
@Override
public void run() {
final File srcWorldFolder = new File("plugins/YourPluginNameCaseSensitive/" + world.getName() + "/" + world.getName()); // Backup world folder location
final File worldFolder = new File(world.getName()); // World folder name
deleteFolder(worldFolder); // Delete old folder
copyWorldFolder(srcWorldFolder, worldFolder); // Copy backup folder