Skip to content

Instantly share code, notes, and snippets.

@timothyham
timothyham / ipv6guide.md
Last active September 19, 2024 14:53
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@LM1LC3N7
LM1LC3N7 / Readme.md
Last active August 29, 2024 02:34
Automating application install on a fresh Windows 10/11 using Microsoft Store and winget

FASIC

Fast and Automatic Software Install and Configuration (on Windows)

Need

Install my common apps on Windows as fast as possible and mostly automatically, after a reimaging or reset of my OS. Also change some settings on Windows, like disabling the bing search in the start menu.

How it works?

This PowerShell script uses Microsoft Store and winget to download and install a list of application, configured at the top of the file.

@LM1LC3N7
LM1LC3N7 / README.md
Last active June 21, 2024 02:57
Tmux configuration

Tmux compilation & config

tmux

Tested on CentOS 8 and Oracle Linux 8, should work on CentOS 7 by replacing dnf with yum.

Before all, edit /etc/environment and set:

TERM=screen-256color
@LM1LC3N7
LM1LC3N7 / README.md
Last active August 27, 2024 09:54
SSH PAM module - Telegram Alert on connect and disconnect, with IP exceptions.

SSH Telegram configuration

telegram

Bot creation

  1. Open your app and search for @BotFather, or open this link: https://telegram.me/botfather.
  2. Type /newbot
  3. Name your new bot (this is the contact name, like "Bot My server")
  4. Give it a unique Telegram name, ending with bot(like "my_server_bot")
  5. Now, you should see a token: keep it safe!
@huksley
huksley / docker-compose.yml
Last active August 31, 2018 17:04
Launches fully configured Graylog 2.3.1 instance
#
# Launches configured Graylog 2.3.1 instance
#
# - Docker-compose 1.16 required
# - Please configure following according to your network:
# * gelf-address URL (for each container)
# * GRAYLOG_WEB_ENDPOINT_URI
# - After launch define GELF tcp and GELF udp inputs in graylog web ui
# - Containers send logging to the graylog itself
# - By default tuned to 30 days retention
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>