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
  • 22:20 (UTC -07:00)
View GitHub Profile
@adrienne
adrienne / mullenweg-wpe.md
Last active May 30, 2026 23:18
The Mullenweg/WPE Thing

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@mikestecker
mikestecker / optimising-unifi-performance.md
Last active May 26, 2026 15:41
optimising-unifi-performance

optimising-unifi-performance

NOTE: Content below is written by Adrian Mace. Click here for an updated version.

Below are the key settings that I apply on any unifi installation for optimal performance.

Settings

Settings > Site

  • Ensure Enable Advanced Features is enabled
    This allows you to follow along with the guide in it's entirety.
@4np
4np / README.md
Last active April 1, 2026 02:47
How to block adware and malware using bind.

Block adware and malware using DNS

Install bind

For Gentoo Linux:

emerge bind
@bilson
bilson / install-rtl-sdr-ubuntu.sh
Last active May 2, 2024 22:34
Install script for rtl-sdr for ubuntu
#!/bin/bash
cd ~
sudo apt-get update
sudo apt-get install curl git cmake libusb-1.0-0.dev build-essential
cat <<EOF >no-rtl.conf
blacklist dvb_core
blacklist dvb_usb_rtl28xxu
@akiyoshi83
akiyoshi83 / chromedp_example.go
Last active March 14, 2023 21:21
Scraping by go using chromedp
package main
import (
"context"
"fmt"
"io/ioutil"
"log"
"time"
"github.com/chromedp/cdproto/cdp"
@kaspernissen
kaspernissen / init.sh
Last active October 18, 2019 04:17
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
@zentavr
zentavr / update_all_pools.sh
Last active July 7, 2026 23:05
Prune && Truncate unused File Media Volumes in Bacula
Hints:
* https://rem.co/blog/2015/01/15/bacula-purging-and-deleting-old-volumes/index.html
# List Volumes
list volumes
list volumes pool="File Pool one for percona-3.ti.local"
# Update pool
update pool="MySQL Pool for percona-1.ti.local"
@apokalyptik
apokalyptik / debian-jessie-kubernetes-1.3-manual-install-guide.md
Last active November 21, 2023 12:31
Set up Kubernetes on 3 Debian Jessie virtual machines -- No magic

The Goal

Set up Kubernetes on 3 Debian Jessie virtual machines: One master. Two nodes. Additionally do this without any "magic" so that what is required to be running to make everything work is plain and obvious.

We will be using flannel for the inter-machine networking layer. Mainly because it is useful and it seems to be pretty popular.

The Setup