Skip to content

Instantly share code, notes, and snippets.

version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
@craysiii
craysiii / keybase.md
Last active March 23, 2023 07:52
keybase.md

Keybase proof

I hereby claim:

  • I am craysiii on github.
  • I am crayio (https://keybase.io/crayio) on keybase.
  • I have a public key ASBDRvPe3tu47wEE-Yni7bMFiG6lNhPDJC906VC9A6ojBgo

To claim this, I am signing this object:

@craysiii
craysiii / README.md
Created April 20, 2022 03:07
Setting Up Chiaki for Direct Launch on Steam Deck / Steam ROM Manager

Hello everyone,

I was really annoyed with the default setup of Chiaki through the guides I have used to get it running on my Steam Deck. I was having issues with the UI being very glitchy when starting in Gaming Mode and it failing to disappear when I woke up / selected my PS5. It would also sometimes fail to read button presses from L4, which would break the functionality of pressing the PS button. I thought that there had to be another way, and now I've figured it out and thought I would share in case it wasn't done already.

These are the steps I took:

  1. Download or build a custom AppImage that enables the additional CLI options for Chiaki.
    1. You can either download the version that I built here: Chiaki.AppImage
    2. Or, if you don't trust the AppImage (I don't blame you), you can build it by doing the following:
  2. On a linux machine with docker installed and running, as well as SELinux/AppL
@craysiii
craysiii / powershell.json
Created May 2, 2020 08:30
Powershell Snippets for VS Code
{
"Create Directory": {
"prefix": "cray-Create-Directory",
"body": [
"[System.IO.Directory]::CreateDirectory(\"$0\")"
],
"description": "Create a directory unless it already exists"
},
"Download File": {
@craysiii
craysiii / Uninstall-Chrome.ps1
Created May 2, 2020 00:25
Uninstall Chrome with Powershell Silently
$64bit = if ([System.IntPtr]::Size -eq 8) { $true } else { $false }
$RegKeys = @('HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\')
if ($true -eq $64bit) { $RegKeys += 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\'}
$Apps = $RegKeys | Get-ChildItem | Get-ItemProperty | Where-Object { $_.DisplayName -like '*Chrome*' }
$Apps | ForEach-Object {
$ExecLocation = "$($_.UninstallString.Split('"')[1])"
Start-Process -FilePath "$ExecLocation" -ArgumentList "--uninstall --system-level --force-uninstall" -Wait
}
@craysiii
craysiii / meta.rb
Last active February 11, 2018 20:32
metaprogramming awesomeness
require 'length_of_time/version'
class Numeric
SECONDS_PER_MILLISECOND = 1.0 / 1000
SECONDS_PER_SECOND = 1
SECONDS_PER_MINUTE = 60
SECONDS_PER_HOUR = 3_600
SECONDS_PER_DAY = 86_400
SECONDS_PER_WEEK = 604_800
SECONDS_PER_FORTNIGHT = 1_209_600