Skip to content

Instantly share code, notes, and snippets.

@goofball222
goofball222 / readme.md
Created November 19, 2023 00:22 — forked from ChipCE/readme.md
Klipper bed mesh on print area only macro install guide

Klipper mesh on print area only install guide

What this macro do

  • This macro will dynamically changing the bed mesh area based on the size of the parts will be printed. The fw will only probe on the area that the part will be printed (plus mesh_area_offset value)

Setup guide

  • (1) Add the following macro to your printer config, this will replace the default BED_MESH_CALIBRATE command.
@goofball222
goofball222 / single-blocklist.sh
Created November 29, 2018 23:26
Script to download and format the https://github.com/StevenBlack hosts list for Unbound
#!/bin/bash
/usr/bin/curl -sSL https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts -o hosts1
cat hosts1 | awk '{ sub("\r$", ""); print }' | grep '^0\.0\.0\.0' | awk '{print $2}' | grep -v '^0\.0\.0\.0' > hosts1.clean
cat hosts1.clean \
| tr A-Z a-z \
| sort -u > hosts1.sort
@goofball222
goofball222 / multi-blocklist.sh
Created November 29, 2018 23:23
Script to download and format the Pi-Hole default adblock list for Unbound
#!/bin/bash
/usr/bin/curl -sSL https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts -o hosts1
/usr/bin/curl -sSL https://mirror1.malwaredomains.com/files/justdomains -o domains1
/usr/bin/curl -sSL http://sysctl.org/cameleon/hosts -o hosts2
/usr/bin/curl -sSL https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist -o domains2
/usr/bin/curl -sSL https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt -o domains3
/usr/bin/curl -sSL https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt -o domains4
/usr/bin/curl -sSL https://hosts-file.net/ad_servers.txt -o hosts3
@goofball222
goofball222 / unbound.conf
Last active December 16, 2020 12:58
Unbound config for Android Private DNS ad filtering
server:
verbosity: 1
statistics-interval: 86500
statistics-cumulative: yes
extended-statistics: no
num-threads: 3
interface: 0.0.0.0@53
@goofball222
goofball222 / docker-compose.yml
Created November 29, 2018 23:17
Pi-Hole stack docker-compose.yml for Android Private DNS ad filtering
version: '3'
services:
dns-over-https-client:
image: goofball222/dns-over-https
container_name: dns-over-https-client
restart: unless-stopped
networks:
external:
internal:
@goofball222
goofball222 / doh-server.conf
Last active April 1, 2019 21:43
DNS-over-HTTPS Server Pi-Hole config for Android Private DNS ad filtering
# HTTP listen port
listen = [
"[::]:8053",
]
# Local address and port for upstream DNS
# If left empty, a local address is automatically chosen.
local_addr = ""
# TLS certification file
@goofball222
goofball222 / doh-client.conf
Last active December 1, 2019 02:07
DNS-over-HTTPS Client Pi-Hole/Unbound config for Android Private DNS ad filtering
# DNS listen port
listen = [
"[::]:5380",
]
# HTTP path for upstream resolver
[upstream]
# available selector: random or weighted_round_robin or lvs_weighted_round_robin
@goofball222
goofball222 / doh-server.conf
Last active April 1, 2019 21:44
DNS-over-HTTPS Server Unbound config for Android Private DNS ad filtering
# HTTP listen port
listen = [
"[::]:8053",
]
# Local address and port for upstream DNS
# If left empty, a local address is automatically chosen.
local_addr = ""
# TLS certification file
@goofball222
goofball222 / docker-compose.yml
Created November 29, 2018 23:06
Unbound stack docker-compose.yml for Android Private DNS ad filtering
version: '3'
services:
unbound:
image: mvance/unbound
container_name: unbound
restart: unless-stopped
networks:
external:
ports:

Keybase proof

I hereby claim:

  • I am goofball222 on github.
  • I am goofball (https://keybase.io/goofball) on keybase.
  • I have a public key whose fingerprint is 4F6F CC5C 185E C432 BA35 A690 87E1 1ED7 25D3 8A78

To claim this, I am signing this object: