Skip to content

Instantly share code, notes, and snippets.

View DoctorOgg's full-sized avatar
💭
Finding the 7 layers of Awesome

Dr. Ogg DoctorOgg

💭
Finding the 7 layers of Awesome
  • Bay Area, California
  • 20:20 (UTC -07:00)
View GitHub Profile
@DoctorOgg
DoctorOgg / .screenrc
Last active January 9, 2023 21:12 — forked from jctosta/screen_cheatsheet.markdown
Screen Cheatsheet
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
# 256 colors
@DoctorOgg
DoctorOgg / airtag-to-gpx-sync.sh
Created October 5, 2022 16:41 — forked from henrik242/airtag-to-gpx-sync.sh
Read AirTag data from the FindMy.app cache and convert to GPX
#!/usr/bin/env bash
#
# Reads AirTag data from the FindMy.app cache and converts it to a daily GPX file
#
# Rsyncs the data to a web accessible folder that can be displayed with e.g.
# https://gist.github.com/henrik242/84ad80dd2170385fe819df1d40224cc4
#
# This should typically be run as a cron job
#
@DoctorOgg
DoctorOgg / setupgpg.sh
Last active November 17, 2019 02:20
Setup gpg on *unix for yubikey
if [ -z ${KEYID+x} ]; then
echo "KEYID is unset, Please Set $KEYID to your pgp keyID"
exit 1
fi
if [ -z ${KEYSERVER+x} ]; then
echo "KEYSERVER is unset, Please Set $KEYSERVER to your were your public key is stored"
exit 1
fi
today=$(date '+%Y-%m-%d')
@DoctorOgg
DoctorOgg / gpg.conf
Last active November 17, 2019 17:13
# https://github.com/drduh/config/blob/master/gpg.conf
# https://www.gnupg.org/documentation/manuals/gnupg/GPG-Configuration-Options.html
# https://www.gnupg.org/documentation/manuals/gnupg/GPG-Esoteric-Options.html
# Use AES256, 192, or 128 as cipher
personal-cipher-preferences AES256 AES192 AES
# Use SHA512, 384, or 256 as digest
personal-digest-preferences SHA512 SHA384 SHA256
# Use ZLIB, BZIP2, ZIP, or no compression
personal-compress-preferences ZLIB BZIP2 ZIP Uncompressed
# Default preferences for new keys
@DoctorOgg
DoctorOgg / ppolicy.ldif
Created July 4, 2018 16:12
ppolicy.ldif
# $OpenLDAP$
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
## Copyright 2004-2014 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
##
@DoctorOgg
DoctorOgg / init.sh
Last active April 15, 2018 01:58 — forked from kaspernissen/init.sh
init.sh
#!/bin/sh
# Install Docker
curl -sSL get.docker.com | sh && \
sudo usermod pi -aG docker
# Disable Swap
sudo dphys-swapfile swapoff && \
sudo dphys-swapfile uninstall && \
sudo update-rc.d dphys-swapfile remove