Skip to content

Instantly share code, notes, and snippets.

View uplime's full-sized avatar
👻
Spooky

Nicholas Chambers uplime

👻
Spooky
View GitHub Profile
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active September 11, 2025 02:08
Hyperlinks in Terminal Emulators
@Thermi
Thermi / Best Practices.md
Last active May 20, 2022 09:01
Summary page of the Netfilter related resources

Best Practices:

  1. Don't use iptables to apply your rules one at a time, use iptables-restore to apply a whole ruleset in one action.
  2. Set your INPUT and FORWARD policy to DROP.
  3. Don't set your OUTPUT policy to DROP unless you really know what you're doing.
  4. If you're going to implement a blacklist or whitelist, you should look at using ipsets if that list is going to be more than two or three addresses, and if it might be dynamic.
  5. Allow all traffic on lo.
  6. You should ALLOW traffic in ctstates of RELATED and ESTABLISHED near the beginning of your rules
  7. Don't use iptables -L
  8. DON'T USE IPTABLES -L
  9. Use iptables-save instead of iptables -L.
@tristanwagner
tristanwagner / dbdump.py
Last active July 14, 2025 17:39
CSV list of items id and names Vanilla WoW 1.12.1 from https://github.com/LightsHope/database
# encoding=utf8
import sys
import csv
import mysql.connector
# Connect to MSSQL Server
try:
conn = mysql.connector.connect(host="", user="",password="", database="")
@xsot
xsot / instructions.md
Last active March 3, 2024 13:42
sed maze solver

Usage

sed -E -f solver.sed input where input is a file containing the maze.

For best results, resize your terminal to match the height of the maze. To disable animations, delete the lines containing p.

Maze format

The solver assumes the following:

  • The maze only contains the characters # \nSE
  • Every line has the same number of characters
  • There is only one start (S) and end (E)
m=(3{0,2,4,7}\;4{0,2,4,7}) w=(0 1111 47f3 0fa 0ea cbb 1 1514 47f3 3ea caa0f bb0c 1 0101 0457 03fec 3faa2 3b88b3 2 0{011,57f7,0fa,caa} f88bb 4 1111 57f3 0eb 0ea cbb 5 1514 47f3 0eb 0ae0f bb0c 5 0{101,457,0efc,0ae3} 3b88b3 6 0{011,57f7,0fa,0ae} f88bb);for((i=0;i<75;x=++i/8*8+w[i%8*6])){ sleep .1;tput cup 0;for r in {1..5};{ printf %$x.s;eval printf %b▀ '\\e[${m[0x${w[i%8*6+r]:'{0..6}:1}]}m;echo;};}
#!/bin/bash
# file base64_encode.sh
# author mknod @ freenode
# license none
# bash version 3.2+
# description a beautifully slow implementation of base64 encoding in pure Bash
# synopsis ./base64_encode.sh
# stdin raw data
# stdout base64 encoded data
@macdja38
macdja38 / Confirm-gitlab-email.md
Created July 26, 2018 20:14
Confirm gitlab email by CLI

On your gitlab server run gitlab-rails console production

Find your user via user = User.find_by(email: "[email protected]")

Optionally change the user's email with user.email = "[email protected]" Then run user.save!

Get the user's token with user.confirmation_token

https://PutYourGitlabHere/users/confirmation?confirmation_token=PutYourTokenHere

@wybiral
wybiral / noscript-tracking.go
Last active October 28, 2024 23:01
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
@davidsword
davidsword / wpcli-media-count.php
Last active October 2, 2019 19:47
WordPress WPCLI - Count Media Library by Types
<?php
/**
* Implements `media-count` command.
*/
class WPCLI_Media_Library_Count {
/**
* Get total count of all media and break down counts for each media type.
*
* ## EXAMPLES
*
@John-Paul-R
John-Paul-R / FabricModList.md
Last active September 3, 2025 07:46
A list of (almost all) mods for Fabric

Fabric Mod List

This page contains a list of the current Minecraft Fabric mods. (As of 2021-08-19 08:05:23 Timezone: UTC+0000 (GMT))

To search for mods by name, category, or download count, visit the website, fibermc.com!

Note: You can view a mod's source files by following the "Source" link on its CurseForge page, assuming that the mod's creator has made such files public.

There are currently 2954 mods in this list.