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 / 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 / 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
@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]
blueprint:
name: Appliance monitor
description: Do something when an appliance (like a washing machine or dishwasher)
has finished as detected by a power sensor.
domain: automation
input:
power_sensor:
name: Power Sensor
description: Power sensor entity (e.g. from a smart plug device).
selector:
---
# Source: cilium/templates/cilium-agent-serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: "cilium"
namespace: kube-system
---
# Source: cilium/templates/cilium-operator-serviceaccount.yaml
apiVersion: v1
@onedr0p
onedr0p / devin.aur-list.pkg
Last active February 25, 2022 14:48
AUR package list.
clusterctl-bin
go-task-bin
gojq
google-chrome
hadolint-bin
java-openjdk-bin
kubelogin
kubie-bin
kustomize-bin
lens-bin