Skip to content

Instantly share code, notes, and snippets.

View reply-nick's full-sized avatar
👋

Nicolae Suruceanu reply-nick

👋
View GitHub Profile
@reply-nick
reply-nick / honewell.md
Last active September 30, 2025 18:30
Honeywell Termostat Vlan Hardening

DNS Rewrites & Firewall Configuration

Below is the summary of the DNS rewrites, firewall aliases, rules, and floating rules used to control traffic from the Thermostat to the backend services.


1️⃣ DNS Rewrites

Domain IP Address
@reply-nick
reply-nick / gist:33c4fd9220b2bc66468406b11208d7c8
Created April 22, 2024 23:57
TPM2 Auto-Decrypt LUKS Full-Disk Encryption Configuration
TPM2 Auto-Decrypt LUKS Full-Disk Encryption Configuration
TLDR: Run these commands to set up TPM2 auto-decrypt LUKS full-disk encryption.
Commands:
Copy Code
@reply-nick
reply-nick / android-backup-apk-and-datas.md
Created March 12, 2024 15:48 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

Fetch application APK

@reply-nick
reply-nick / .md
Created December 10, 2023 21:21
Linux Fingerprint Laptop Lid Configuration

Linux Fingerprint Authentication Configuration Guide

Fingerprint auth in Linux works through PAM, there is pam_fprintd.so module which talks to fprintd service. When fprintd service isn't working, pam_fprintd fails to communicate with it, and PAM auth skips to the next module in the config. But another PAM module could also skip over pam_fprintd.

So suppose you have /etc/pam.d/system-auth with the following contents:

auth            sufficient      pam_fprintd.so
auth            required        pam_unix.so
@reply-nick
reply-nick / wearOS_pair.md
Last active October 29, 2023 03:09
Pair Android Wear Without Factory Resetting

Pair Android Wear Without Factory Resetting

  1. Download ADB Tools:

    Get either "Minimal ADB and Fastboot Kit" or official binaries from Google.

  2. Enable ADB Debugging:

    Go to Settings → system → about on your watch and tap "Build number" to enable Developer options, then enable "ADB debugging" or "Debug over wifi".

@reply-nick
reply-nick / modify-resolved.md
Created September 18, 2023 20:49
Modify systemd-resolved based on Network Connection

Modify systemd-resolved based on Network Connection

This script automatically changes the DNSOverTLS setting in /etc/systemd/resolved.conf based on whether you're connected to specified networks. Additionally, it sends a desktop notification to alert about the change.

Script

#!/bin/bash

# Desired network names (SSID for WiFi, connection name for other types)
# after the virtual disk has already been expanded (e.g. in proxmox)
apk add --no-cache cfdisk e2fsprogs-extra
# choose partition then "Resize" > "Write" (to finalize)
cfdisk
# replace * with partition you are resizing
resize2fs /dev/*
@reply-nick
reply-nick / LUKS_and_TPM2_with_Fedora.md
Created May 18, 2023 20:37 — forked from jdoss/LUKS_and_TPM2_with_Fedora.md
Decrypt LUKS volumes with a TPM on Fedora 35+

Decrypt LUKS volumes with a TPM on Fedora 35+

This guide allows you to use the TPM on your computer to decrypt your LUKS encrypted volumes. If you are worried about a cold boot attack on your hardware please DO NOT use this guide with your root volume!

Preflight Checks

Verify that you have a TPM in your computer:

# systemd-cryptenroll --tpm2-device=list
PATH DEVICE DRIVER