Skip to content

Instantly share code, notes, and snippets.

@namidairo
namidairo / pppd-cve.py
Last active January 25, 2022 08:05
Xiaomi RM2100 1.0.14 vs. CVE-2020-8597
from scapy.all import *
from socket import *
interface = "enp0s31f6"
def mysend(pay,interface = interface):
sendp(pay, iface = interface)
def packet_callback(packet):
@matthewdowns
matthewdowns / docker-automatic-media-server.md
Last active December 23, 2024 15:41
Docker Automatic Media Server - Setup Guide

Introduction

This guide is focused on building a completely autonomous request-based media server using individual docker containers.

Most of the images we will be using are maintiained by linuxserver.io. They maintain many up-to-date versions of the most popular tools used for media servers.

Our full stack includes:

  • Plex Media Server - Plex Media Server is the back-end component to Plex, a self-hosted media platform.
  • Transmission - A lightweight torrent downloading client.
LOGFILE="/var/log/snipeit-backup.log"
echo "**************START*************************" >> $LOGFILE
#---------1. Asset Management backup starting---------
echo "Start Asset Management backup process" >> $LOGFILE
#---------2. Navigate to Asset Management directory ---------
cd /var/www/snipeit/
@phischl
phischl / snipe-it.docker-compose.env
Last active January 21, 2020 16:44
snipe-it.env for docker-compose
# Mysql Parameters
MYSQL_PORT_3306_TCP_ADDR=snipe-mysql
MYSQL_PORT_3306_TCP_PORT=3306
MYSQL_ROOT_PASSWORD=YOUR_SUPER_SECRET_PASSWORD
MYSQL_DATABASE=snipeit
MYSQL_USER=snipeit
MYSQL_PASSWORD=YOUR_snipeit_USER_PASSWORD
# Email Parameters
# - the hostname/IP address of your mailserver
@NightyKnight
NightyKnight / Install SnipeIT from Scratch
Created October 2, 2019 16:51
Install Snipe-IT from scratch on a CentOS 7 machine behind a corporate proxy server
Install SnipeIT From Scratch on CentOS 7
1) Setup Proxy
proxy setup:
/etc/yum.conf
proxy=http://proxy.dev:8080/
/etc/profile
#proxy
MY_PROXY_URL="http://proxy.dev:8080/"
@NightyKnight
NightyKnight / Restore Snipe-IT From Backup
Created October 1, 2019 14:29
Restore Snipe-IT From Backup on Linux Server
Migrate Production Data
a) Login to production SnipeIT and go to Admin -> Backups -> Generate Backups
b) Either download the backup locally or connect from the new machine via SFTP
i) SFTP Method - Assuming a starting directory of root's home /root or ~/ when logged in as root
sftp [email protected]
cd /var/www/snipeit/storage/app/backups
get lastest_backup.zip
exit
@IvanArjona
IvanArjona / raspberrypi-mediacenter.md
Last active April 19, 2025 18:32
Configuración mediacenter raspberry pi con Plex, Sonarr y Jackett

Flashear SD

Descargar imagen Raspbian Lite.

Flashear imagen a la SD con Balena Etcher (Windows).

Activar ssh

Añadir carpeta /ssh a la raíz de la sd.

@apizz
apizz / docker_snipeit_dbbackup.sh
Last active September 25, 2024 23:43
Backup a specified Snipe-IT Docker container and cleanup any old backups
#!/bin/bash
#
# Script for running automated backups for Snipe-IT Docker containers and removing old backups
#
# Mean to be used as part of a crontab
#
# Limits its search for backups to clean up to those in the 'BACKUP_DIR' folder, so
# you can create folders in this location to keep any manual backups for historical purposes
#
@ihciah
ihciah / README.md
Last active April 8, 2020 06:09
小米路由器 Pro (R3P) 配置shadowsocks透明代理

小米路由器 Pro (R3P) 配置shadowsocks透明代理

新入了一个小米路由器,记录一下折腾过程。

首先自动分流科学上网是必须的。

因为小米的ROM本身就是基于openwrt的,所以第一步只需要先走官方途径拿到root权限。

有了权限就只需要找一个别人造的轮子部署一下即可。

@kriegalex
kriegalex / speedtest.sh
Created February 13, 2018 15:51
Speedtest from any Docker command line
#!/bin/bash
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -