Skip to content

Instantly share code, notes, and snippets.

@monik3r
monik3r / tubenails.py
Last active August 17, 2022 02:18
Tubearchivist thumbnail extractor
#!/bin/python
import asyncio, glob, os, subprocess, time
async def getNFO():
while True:
videos = set([os.path.splitext(val)[0] for val in glob.glob('tube/*/*.mp4')])
thumbnails = set([os.path.splitext(val)[0] for val in glob.glob('tube/*/*.png')])
for video in videos.difference(thumbnails):
subprocess.run('ls')
@allenyllee
allenyllee / install_tools.sh
Last active June 16, 2024 06:19
mount vhdx in linux
#!/bin/bash
# install qemu utils
sudo apt install qemu-utils
# install nbd client
sudo apt install nbd-client
@zenxedo
zenxedo / TrueNAS Setup.md
Last active April 21, 2023 17:36 — forked from jacobblock/FreeNAS.md
Ultimate FreeNAS 11.3 iocage Setup

TrueNAS

I will be moving from FreeNAS jails to ubuntu with docker, docker compose, and portainer. FreeNAS support and updates are lacking. There are many advantages to making the switch and with ZFS on linux I think FreeNAS may be a thing of the past. Stay tuned for a new guide of my latest setup. Check out my other gists for progress on the switch. https://gist.github.com/mow4cash/626275e095f7f90898944a85d66b3be6

WARNING READ THIS: This page contains incomplete and possibly incorrect info. The page is constantly being edited and worked on. Many of these should work but some may be broken. Read the code carefully to understand what you are doing, stuff may be need to be changed for your own use. This includes but not limited too JAIL AND ROUTER IPs, YOUR FREENAS MAIN VOLUME,THE MOST RECENT RELEASE OF DOWNLOADED FILES Use at your own risk.There may be helpful info in the comments.

Find me in the FreeNAS forums

@renjithsraj
renjithsraj / siteworking.py
Created September 17, 2015 09:14
Python Script for whether the given website us down or not if the site is down , script will send the mail to the corresponding admin email , internet need for sending email
from threading import Thread
import requests ## pip install requests
import time
import smtplib
## email sending function
def email_sender(input_message, email_to, client):
''' function to send email '''
to = email_to
gmail_user = '' ## email of sender account