Skip to content

Instantly share code, notes, and snippets.

View tomesparon's full-sized avatar

Tom Esparon tomesparon

View GitHub Profile
@thomasht86
thomasht86 / setup.sh
Last active January 3, 2026 17:12
Claude code on mobile
#!/bin/bash
#
# Mobile Claude - One-command setup for running Claude Code remotely
# Supports: Arch, Ubuntu/Debian, Fedora, macOS
#
# Usage: curl -fsSL https://gist.github.com/thomasht86/86f0f8f62db1839054abd8a7e501ff7d/raw/935bbfa0957cd5926751742189441cf10fbe2ba0/setup.sh | bash
#
set -e
@andredlam
andredlam / setup_KVM.md
Created June 25, 2025 00:27
Setup KVM

KVM/QEMU Setup Guide for Ubuntu 24.04

Overview

This guide covers the complete setup of KVM (Kernel-based Virtual Machine) with QEMU and libvirt on Ubuntu 24.04 LTS. KVM provides near-native performance virtualization on Linux systems and is ideal for homelab environments.

Prerequisites

Hardware Requirements

@ndraiman
ndraiman / ssh_into_wsl2.md
Last active June 10, 2026 12:42
SSH Into WSL2

Guide: How to SSH Into WSL2

Install WSL2 SSH server

  1. Open your wsl ubuntu terminal

  2. install open-ssh server

    sudo apt update 

sudo apt install openssh-server

@leblocks
leblocks / Watch-Files.ps1
Last active November 14, 2025 10:39
multi file tail for powershell core
<#
.SYNOPSIS
Watches text files for changes and prints the specified number of lines from the end of the file.
.DESCRIPTION
This function monitors a set of text files for changes and prints the content to the console.
Each line printed is prefixed by the filename.
.PARAMETER Paths
An array of paths to text files to monitor. This parameter is mandatory.
@BaksiLi
BaksiLi / install_zellij.sh
Created August 9, 2023 10:48
Install Zellij (latest release) on Linux (incl. Ubuntu) and Darwin
#!/bin/bash
# Get the architecture of the machine
arch=$(uname -m)
os=$(uname -s)
# Download the Zellij binary
if [ "$os" == "Darwin" ]; then
filename="zellij-${arch}-apple-darwin.tar.gz"
url="https://github.com/zellij-org/zellij/releases/latest/download/$filename"
@Raj9039852537
Raj9039852537 / urltracker.json
Last active November 10, 2025 13:20
privacy redirector for urlcleaner app
{
"Warning! Non ascii characters found": {
"regex": ".*[^\\p{ASCII}].*",
"enabled": "true"
},
"Http link, consider using https": {
"regex": "^http:\/\/(.*)",
"replacement": "https:\/\/$1",
"enabled": "true"
},
@juliyvchirkov
juliyvchirkov / annotation.rst
Last active March 10, 2026 19:26
bash: backup of live kvm machines

Backup of live kvm machines

Note

Work on routine update and annotation in progress

  • apparmor.d - /etc/apparmor.d/local/{usr.sbin.libvirtd,libvirt-qemu,usr.lib.libvirt.virt-aa-helper}, root:root 0644 (-rw-r--r--)
  • kvmbackup.cron - /etc/cron.d/kvmbackup.cron, root:root 0644 (-rw-r--r--)
@githubfoam
githubfoam / powershell cheat sheet
Last active April 30, 2026 20:01
powershell cheat sheet
=========================================================================================================
#powershell editor in windows
PowerShell ISE,Visual Studio Code,Notepad++
==========================================================================================================
Example 3: Modify your prompt function
This command changes the prompt function so that it displays the time before the path.
PowerShell
Set-Item -Path function:prompt -Value {'PS '+ (Get-Date -Format t) + " " + (Get-Location) + '> '}
@Barry1
Barry1 / AdobeCS2Free.md
Last active June 16, 2026 10:47
Adobe CreativeSuite 2 for free
# ██████╗ ███████╗███╗ ███╗ ██████╗ ██╗ ██╗███████╗ ██╗ ██╗██████╗
# ██╔══██╗██╔════╝████╗ ████║██╔═══██╗██║ ██║██╔════╝ ██║ ██║██╔══██╗
# ██████╔╝█████╗ ██╔████╔██║██║ ██║██║ ██║█████╗ ███████║██████╔╝
# ██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██║██╔═══╝
# ██║ ██║███████╗██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗ ██║ ██║██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ ╚═╝ ╚═╝╚═╝
#
# ██████╗ ██╗ ██████╗ █████╗ ████████╗██╗ ██╗ █████╗ ██████╗ ███████╗
# ██╔══██╗██║ ██╔═══██╗██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██████╔╝██║ ██║ ██║███████║ ██║ ██║ █╗ ██║███████║██████╔╝█████╗