Skip to content

Instantly share code, notes, and snippets.

@ichibsah
ichibsah / netpps.sh
Created October 7, 2022 19:09 — forked from joemiller/netpps.sh
shell: quick linux scripts for showing network bandwidth or packets-per-second
#!/bin/bash
if [ -z "$1" ]; then
echo
echo usage: $0 network-interface
echo
echo e.g. $0 eth0
echo
echo shows packets-per-second
version: '3'
services:
plex:
image: plexinc/pms-docker:beta
container_name: plex
restart: always
network_mode: host
volumes:
- $PWD/plex/config:/config
@ichibsah
ichibsah / 01-server-config-in-git.md
Created November 9, 2021 07:27 — forked from juzna/01-server-config-in-git.md
Server Configuration in git

Server Configuration in git

With git you can have anything versioned. You're used to version your code, which is a bunch of files. Your server configuration (on Linux) is also just a bunch of files, so it can be versioned as well.

The idea is simple: create a git repository in /etc/ and commit everytime you change any configuration of your server. Written in code:

cd /etc
git init
git add .
@ichibsah
ichibsah / whatsappspam.js
Created July 21, 2021 08:51 — forked from rebootcode/whatsappspam.js
Whatsapp Spam Bot
/*
WhatsApp Web Spam Script written by flaredragon.
====================================================================================
DISCLAIMER: I do not take any responsibility for any damage caused with this script.
====================================================================================
Usage: Copy all of this script (Ctrl+A, Ctrl+C).Visit WhatsApp Web, select your
desired contact and Press Ctrl+Shift+I to and paste it in the console and press Enter.
(Imp Note - Whatsapp Controls the message sending rate so sending ~500 together may
cause your Whatsapp to hang so use the script smartly)
====================================================================================
@ichibsah
ichibsah / SiteMonitor.py
Created September 6, 2018 11:53 — forked from davetromp/SiteMonitor.py
A simple website monitor in python
#!/usr/bin/env python
## Check out: https://github.com/davetromp/SiteMonitor for the complete and current code
import urllib
import smtplib
import time
import datetime
import sys
@ichibsah
ichibsah / UpOrDown.sh
Created September 6, 2018 11:35 — forked from davetromp/UpOrDown.sh
Bash script that checks if a site is up or down and emails notifications
#!/bin/bash
################################################################################
# This script will check to see if a website is up/down by pinging the url
# If there is no response an email wil be send via an external smtp mail server
# If the site status is down an email will be send when the site is up again
# set your check interval here :-) #############################################
interval=3600 # hour
@ichibsah
ichibsah / hosts
Created July 10, 2017 12:25 — forked from Fishdrowned/hosts
how to make the internet not suck (as much)
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#
# See below for acknowledgements.
# Please forward any additions, corrections or comments by email to
# [email protected]