Skip to content

Instantly share code, notes, and snippets.

View onedr0p's full-sized avatar
💫
The More You Know

Devin Buhl onedr0p

💫
The More You Know
  • Guessing location...
View GitHub Profile
@onedr0p
onedr0p / simple_convert.py
Last active September 27, 2023 03:43
A simple script to convert media files to MP4 for a better Plex experience
# Python 2.7
import os
import sys
import time
import platform
import subprocess
import urllib2
import logging
@onedr0p
onedr0p / cleanup_rtorrent.py
Last active April 19, 2023 18:12
rtorrent - remove specific torrents (set on a cron)
# Python 2.7
import re
import xmlrpclib
import httplib, urllib
# rTorrent URL
server_url = 'http://localhost:6000'
rtorrent = xmlrpclib.Server(server_url)
@onedr0p
onedr0p / transmission-gc.sh
Last active October 21, 2023 19:04
Transmission Garbage Collector
#!/bin/sh
#
# INFO
#
# This works if sonarr and radarr are set up to have a Category of sonarr and radarr respectively
# If you are using other Categories to save your automated downloads, update the script where you see:
# "radarr"|"sonarr")
# This script will not touch anything outside those Categories
@onedr0p
onedr0p / washing_machine.yaml
Created October 3, 2018 18:28
packages/washing_machine.yaml
homeassistant:
customize:
package.node_anchors:
customize: &customize
package: 'Washing Machine'
expose: &expose
<<: *customize
hidden: false
@onedr0p
onedr0p / read_write_speed.md
Created November 17, 2018 01:45
Hard Disk Performance

Write

dd if=/dev/zero of=./largefile bs=1M count=1024

Clear memory cache

sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
@onedr0p
onedr0p / raspbian-enable-ssh.sh
Last active September 22, 2019 17:57
Create a Raspbian image with SSH already enabled
#!/bin/bash
# raspbian-enable-ssh
#
# Purpose:
# Creates a raspbian img with ssh already enabled
#
# Note:
# This script takes one argument, either the zip or the img file
# zip file will be extracted and the image file will be used
RUN mkdir -p ~/.gnupg/private-keys-v1.d \
&& chmod 700 ~/.gnupg/private-keys-v1.d \
&& echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& /usr/bin/gpg --version \
&& curl --insecure -fsSL "${TINI_DOWNLOAD_URL}/${TINI_VERSION}/tini" -o /tini \
&& curl --insecure -fsSL "${TINI_DOWNLOAD_URL}/${TINI_VERSION}/tini.asc" -o /tini.asc \
&& GNUPGHOME="$(mktemp -d)" \
&& export GNUPGHOME \
&& gpg --keyserver hkp://ha.pool.sks-keyservers.net --recv-keys "0527A9B7" || \
gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "0527A9B7" || \
@onedr0p
onedr0p / logs
Created March 17, 2020 14:38
folding@ome
14:36:55:************************* Folding@home Client *************************
14:36:55: Website: https://foldingathome.org/
14:36:55: Copyright: (c) 2009-2018 foldingathome.org
14:36:55: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
14:36:55: Args: --web-allow=0/0:7396 --allow=0/0:7396 --user=Devin_Buhl
14:36:55: --team=241985 --gpu=false --smp=true --power=full
14:36:55: Config: <none>
14:36:55:******************************** Build ********************************
14:36:55: Version: 7.5.1
14:36:55: Date: May 11 2018
@onedr0p
onedr0p / starship.toml
Last active January 29, 2021 14:40
starship.toml
add_newline = true
prompt_order = ["username", "kubernetes", "directory", "git_branch", "git_status", "character"]
[character]
symbol = "\n(∩`-´)⊃ "
error_symbol = "\n(ง •̀_•́)ง "
style_success = "bold green"
use_symbol_for_status = true
[username]
@onedr0p
onedr0p / vars.yaml
Last active September 3, 2020 20:00
vars.yaml
---
#
# Vars for my role
#
# Ansible user to ssh into servers with
ansible_user: "devin"
# Timezone for the servers