Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import requests
import json
import sys
import os
import socket
# --- settings ---
@mmichaelb
mmichaelb / Telegram_SSH_Login_notifier.md
Last active November 5, 2025 08:53
"Intelligent" Telegram SSH Login notifier on Linux using PAM

"Intelligent" Telegram SSH Login notifier on Linux using PAM

This login notifier uses IP information to send silent telegram notifications if the login source seem to be trustable.

Telegram Bot setup

First, please read this awesome Medium tutorial on how to setup the Telegram bot.

Telegram Linux setup

@2niuhe
2niuhe / termux_mxrig.md
Last active December 30, 2025 17:10
install XMRig on termux

Monero XMR mining via termux ;ubuntu

  1. install ubuntu in termux command; (ubuntu is optional)
pkg install update && upgrade
apt install git
apt install wget
apt install proot
@thbe
thbe / alias.plugin.zsh
Created January 1, 2020 23:22
Local custom plugins
# Custom plugin for zsh
#
# Common aliases
#
# Author: Thomas Bendler <code@thbe.org>
# Date: Wed Jan 1 23:54:03 CET 2020
#
### Command enhancements aliases ###
alias ls='ls -GFh' # Preferred 'ls' implementation
@SeppoTakalo
SeppoTakalo / Tune Mac OS X terminal.md
Last active December 3, 2024 05:49
Tune Mac OS X terminal

This page lists my personal preferences to set up proper command line for Mac OS X.

Change default shell to ZSH

Current default for Mac OS X Catalina, offers much better customizations that Bash.

chsh -s /bin/zsh

Install Homebrew

@cherts
cherts / how-to-install-telegram-send
Last active August 29, 2022 11:19
Fail2ban + Telegram using telegram-send
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.9 (jessie)
Release: 8.9
Codename: jessie
Installing telegram-send
# pip install telegram-send
@troyfontaine
troyfontaine / readme.md
Last active July 17, 2025 02:01
Resize root partition (or how to remove the default /home partition) on CentOS 7 online

Resize root partition (or how to remove the default /home partition) on CentOS 7 online

This process requires that you are able to ssh OR log in locally using the root user account and that no services be running as users out of /home on the target machine.

The examples are from a default installation with no customization-you NEED to know what you're working with for volumes/partitions to not horribly break things.

By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and swap.

NOTE: If you want to be sure that nothing is writing to /home you can either modify the host to boot into single-user mode OR try to use the systemctl isolate runlevel1.target command to switch (not tested! should work).

@tonyerskine
tonyerskine / README.MD
Last active October 2, 2025 17:32
Windows Script to Convert Excel Files to CSV

Instructions

  1. Copy both files into the directory containing the files you want converted
  2. Run excel-to-csv.bat

Note: This script requires Excel to be installed.

@esurdam
esurdam / web_server_setup.md
Last active December 2, 2021 02:42
Knowledge base for secure server setup.
@esurdam
esurdam / install_nginx_alpn.md
Last active December 2, 2021 02:42
Install nginx with alpn support

Install nginx 1.11 with ALPN

Test your web server for HTTP/2 and ALPN support KeyCDN

Test SSL strength of your setup SSL LABS

install openssl with ALPN support