Skip to content

Instantly share code, notes, and snippets.

@SpaceNerden
SpaceNerden / SSHKeys.md
Last active February 18, 2023 01:18
Set up SSH keys on linux: The lazy way

This assumes a couple of things.

  1. You want more keys in the future.
  2. You are on linux.

Step 1: Generate the key.

ssh-keygen -f ~/.ssh/<Name of key, can be anything> -N ''

Step 2: Add following to ~/.ssh/config

@therealzanfar
therealzanfar / logging_snippets.py
Last active October 31, 2023 20:21
VSCode Snippets for Python Logging
"logging setup": {
"prefix": "logsetup",
"body": [
"import logging",
"from rich.logging import RichHandler",
"",
"def setup_logging(verbosity: int = 0, force: bool = False) -> None:",
"\t\"\"\"",
"\tSet up a root logger with console output.",
"",

Setup tor proxy on Arch Linux

Copied from this article.

Installation

  1. Install tor

         $ sudo pacman -S tor
         $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more.

$ sudo pacman -S nyx

@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@luciopaiva
luciopaiva / android-apk-user-certificates.md
Last active June 2, 2025 18:26
Android APK HTTPS user certificates how-to

Android APK HTTPS user certificates how-to

Starting with Android Nougat, Google changed the way apps handle user certificates:

Apps that target API Level 24 and above no longer trust user or admin-added CAs for secure connections, by default.

This means that certificates issued by applications like [Charles][charles] or [mitmproxy][mitmproxy] are no longer accepted, so these proxies won't work for HTTPS traffic.

This tutorial explains what needs to be done to overcome that restriction and be able to sniff any Android app's HTTPS requests.

@diffficult
diffficult / installing_virt_manager.md
Last active June 8, 2025 02:27
Easy instructions to get virt-manager qemuv/kvm running on Arch

Easy instructions to get QEMU/KVM and virt-manager up and running on Arch

  1. Make sure your cpu support kvm with below command:

     grep -E "(vmx|svm)" --color=always /proc/cpuinfo
    
  2. Make sure BIOS have enable “Virtualization Technology”.

  3. User access to /dev/kvm so add your account into kvm(78) group: