Skip to content

Instantly share code, notes, and snippets.

@PreetSangha
PreetSangha / gist:7cf9d9d8a524d674c94a5a8b86901609
Created October 1, 2023 02:52
Problem with Test Containers not starting in podman
If you have the podman mac helper
> brew install podman-mac-helper
If you see something like this:
[testcontainers.org 00:00:00.11] Connected to Docker:
Host: unix:///var/run/docker.sock
Server Version: 4.6.2
Kernel Version: 6.4.15-200.fc38.aarch64
@PreetSangha
PreetSangha / gist:c697f5a23971a2943c50f3e07d04861c
Created September 26, 2022 10:40
List of resource is used for pihole set up
Create your own secure Home Network using Pi-hole and Docker - GeeksforGeeks
https://www.geeksforgeeks.org/create-your-own-secure-home-network-using-pi-hole-and-docker/
Manual installation steps for older versions of WSL | Microsoft Learn
https://learn.microsoft.com/en-nz/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package
Is it possible install Ubuntu in Windows 10 WSL without Microsoft Store? - Stack Overflow
https://stackoverflow.com/questions/52512026/is-it-possible-install-ubuntu-in-windows-10-wsl-without-microsoft-store
Manual installation steps for older versions of WSL | Microsoft Learn
@PreetSangha
PreetSangha / set-dns-port-proxy
Created September 26, 2022 10:06
port proxy in a windows for pihole host
# show proxies
netsh interface portproxy show all
# set a proxy for port port 54 from 127.0.0.1 to IP.AD.RE.SS, where IP.AD.RE.SS is the address of the pihole container
# (get ip address by docker exec -it pihole ip route get 1.0.0.0)
nnetsh interface portproxy add v4tov4 connectport=53 connectaddress=127.0.0.1 listenport=53 listenaddress= IP.AD.RE.SS
# delete the port proxy
netsh interface portproxy delete v4tov4 listenport=53 listenaddress=127.0.0.1
@PreetSangha
PreetSangha / docker-compose.yml
Created September 26, 2022 09:46
simple pihole docker compose
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# network_mode: host
networks:
- pihole
ports:
@PreetSangha
PreetSangha / delete_youtube_subs
Last active September 20, 2022 09:34
delete all youtube subs fixed 2022-09-22
// orgininally from : https://gist.github.com/igorferreira/2f728b0b2a46abb47412f56d5af4bd55
// first access url: https://www.youtube.com/feed/channels
// then keep scrolling down until you reach the end of ALL of your channels
// then go into the developer tools | cosole and paste this script
var i = 0;
var count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)").length;
deleteChannels();
version: "3.3"
services:
wordpress:
image: wordpress
ports:
- 8080:80
networks:
- overlay
deploy:
@PreetSangha
PreetSangha / Confessions of a Car Salesman.md
Created July 30, 2019 09:08
Car buying tricks and tips

Buying Tips

Confessions of a Car Salesman

Introduction

What really goes on in the back rooms of car dealerships across America?

What does the car salesman do when he leaves you sitting in a sales office and goes to talk with his boss?

What are the tricks salespeople use to increase their profit and how can consumers protect themselves from overpaying?

;
const int NUMBOARDS = 6;
int address[NUMBOARDS] = {0x21, 0z22, 0x23 ....}
PCF857 board[NUMBOARDS] = {
PCF857(address[0]),
PCF857(address[1]),
PCF857(address[2]),