Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

ᗪєνιη ᗷυнʟ onedr0p

🏠
Working from home
  • Guessing location...
View GitHub Profile
View vars.yaml
---
#
# Vars for my role
#
# Ansible user to ssh into servers with
ansible_user: "devin"
# Timezone for the servers
@onedr0p
onedr0p / starship.toml
Last active Sep 16, 2020
starship.toml
View 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 / logs
Created Mar 17, 2020
folding@ome
View logs
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
View tini
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 / raspbian-enable-ssh.sh
Last active Sep 22, 2019
Create a Raspbian image with SSH already enabled
View raspbian-enable-ssh.sh
#!/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
@onedr0p
onedr0p / read_write_speed.md
Created Nov 17, 2018
Hard Disk Performance
View read_write_speed.md

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 / washing_machine.yaml
Created Oct 3, 2018
packages/washing_machine.yaml
View washing_machine.yaml
homeassistant:
customize:
package.node_anchors:
customize: &customize
package: 'Washing Machine'
expose: &expose
<<: *customize
hidden: false
@onedr0p
onedr0p / transmission-gc.sh
Last active Nov 16, 2020
Transmission Garbage Collector
View transmission-gc.sh
#!/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 / cleanup_rtorrent.py
Last active Nov 22, 2019
rtorrent - remove specific torrents (set on a cron)
View cleanup_rtorrent.py
# Python 2.7
import re
import xmlrpclib
import httplib, urllib
# rTorrent URL
server_url = 'http://localhost:6000'
rtorrent = xmlrpclib.Server(server_url)
@onedr0p
onedr0p / simple_convert.py
Last active Nov 10, 2020
A simple script to convert media files to MP4 for a better Plex experience
View simple_convert.py
# Python 2.7
import os
import sys
import time
import platform
import subprocess
import urllib2
import logging