Skip to content

Instantly share code, notes, and snippets.

View fullmetalbrackets's full-sized avatar
🎯
Focusing

Ariel Diaz fullmetalbrackets

🎯
Focusing
View GitHub Profile
@fullmetalbrackets
fullmetalbrackets / docker-compose.yml
Created July 15, 2024 18:54
Plex + Cloudflare Tunnel
services:
plex:
restart: unless-stopped
container_name: plex
image: linuxserver/plex:latest
network_mode: host
environment:
- TZ=America/New_York
- PLEX_UID=1000
- PLEX_GID=1000
@fullmetalbrackets
fullmetalbrackets / how-to-ssh-into-windows.md
Created May 7, 2024 04:23 — forked from teocci/how-to-ssh-into-windows.md
How to SSH into Windows 10 or 11?

How to SSH into Windows 10 or 11?

The latest builds of Windows 10 and Windows 11 include a build-in SSH server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, like Linux distros. Let's see how to configure OpenSSH on Windows 10 and Windows 11, and connect to it using Putty or any other SSH client.

OpenSSH is an open-source, cross-platform version of Secure Shell (SSH) that is used by Linux users for a long time. This project is currently ported to Windows and can be used as an SSH server on almost any version of Windows. In the latest versions of Windows Server 2022/2019 and Windows 11, OpenSSH is built-in to the operating system image.

@fullmetalbrackets
fullmetalbrackets / set-static-ip-debian.md
Created August 3, 2023 03:20
Set static IP in Debian

Make a backup copy of the default network interfaces file

cp /etc/network/interfaces /etc/network/default-interfaces

Edit the interfaces file

nano /etc/network/interfaces
@fullmetalbrackets
fullmetalbrackets / docker-compose.yml
Created July 27, 2023 19:35
Pi-Hole + Cloudflared using Quad9 w/ DNS over TLS
# Use this docker-compose file to create cloudflared container configured with Quad9 DoT upstream
version: "3.6"
services:
cloudflared:
container_name: cloudflared
image: cloudflare/cloudflared
command: proxy-dns
environment:
@fullmetalbrackets
fullmetalbrackets / pi-hole.conf
Last active February 12, 2024 07:40
Pi-Hole + Unbound using Quad 9 w/ DNS over TLS
# https://www.reddit.com/r/pihole/comments/unygz9/struggiling_to_find_unbound_doh_setup_guide/i8bqf37
# These lines added to /etc/unbound/unbound.conf.d/pi-hole.conf will configure Unbound as a forwarding resolver to Quad9 using DoT
tls-cert-bundle: /etc/SSL/certs/ca-certificates.crt
forward-zone:
name: "."
forward-tls-upstream: yes
# Quad 9
forward-addr: 9.9.9.9@853#dns.quad9.net
@fullmetalbrackets
fullmetalbrackets / docker-compose.yaml
Last active March 7, 2024 01:37
Navidrome + Cloudflare Tunnel with Docker-Compose
# Before running this go to Cloudflare Zero Trust dashboard -> Access -> Tunnels -> Create new tunnel
# Copy & paste the generated token next to TUNNEL_TOKEN= env variable below
# Full guide at https://fullmetalbrackets.com/blog/setup-cloudflare-tunnel-to-access-self-hosted-apps
services:
tunnel:
container_name: cloudflare-tunnel
image: cloudflare/cloudflared
command: tunnel run
@fullmetalbrackets
fullmetalbrackets / oh-my-posh-install.md
Created July 13, 2023 07:34
Quick Guide - Install Oh-My-Posh in Windows Terminal or PowerShell with winget

Pre-Requisites

This guide will use the winget CLI tool to install and configure Oh-My-Posh. If you haven't already, I suggest installing Windows Terminal from the Microsoft Store and use Oh-My-Posh with it. If you'd rather not use Windows Terminal for some reason, you can still use Oh-My-Posh with PowerShell. Whichever you choose, check out these instructions to install winget.


Install Oh-My-Posh

winget install JanDeDobbeleer.OhMyPosh -s winget
@fullmetalbrackets
fullmetalbrackets / smb.conf
Created July 4, 2023 23:12
Samba config to access share without login
# Create new user in Linux: sudo adduser public (give it any password, it won't be used anyway)
# Give read/write permissions: sudo chmod ugo+rw /home/public
[global]
workgroup = WORKGROUP
server string = Samba %v %h
# The below should make transfers faster and is optional
strict allocate = Yes
allocation roundup size = 4096
@fullmetalbrackets
fullmetalbrackets / meslo-fonts.sh
Last active December 6, 2021 03:16
Download powerlevel10k preferred fonts directly into fonts folder
#!/bin/sh
# Stupidly simple script to download Powerlevel10k's recommended fonts from their own repo and directly into the Linux fonts directory
# Because for some reason Powerlevel10k doesn't include it on it's install script...
wget -O /usr/share/fonts/MesloLGS%20NF%20Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
wget -O /usr/share/fonts/MesloLGS%20NF%20Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
wget -O /usr/share/fonts/MesloLGS%20NF%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
wget -O /usr/share/fonts/MesloLGS%20NF%20Bold%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
@fullmetalbrackets
fullmetalbrackets / zsh-install.md
Last active June 26, 2024 17:13
Quick Guide - install zsh + oh-my-zsh w/ plugins & powerlevel10k theme

Install Zsh

sudo apt install zsh -y

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"