Skip to content

Instantly share code, notes, and snippets.

View xor-gate's full-sized avatar
👽

Jerry Jacobs xor-gate

👽
View GitHub Profile
@xor-gate
xor-gate / gist:2ff75c639345800aec96b335fddad76f
Created May 14, 2026 19:39 — forked from j0uni/gist:443c6e1f2e60a01c22091746fe1692cf
Control Ubuntu Desktop from macOS via VNC
# Control Ubuntu Desktop from macOS via VNC
A step-by-step guide to remotely control an Ubuntu 22.04 desktop from macOS using x11vnc.
## Prerequisites
- Ubuntu 22.04 (or similar) with a desktop environment
- macOS with built-in Screen Sharing
- Both machines on the same network
@xor-gate
xor-gate / Gnome NoVnc - Browser Based Remote Desktop Protocol.txt
Created May 14, 2026 19:34 — forked from 0xAungkon/Gnome NoVnc - Browser Based Remote Desktop Protocol.txt
Gnome Vnc Server setup over NoVnc Protocol - Ubuntu 24.1 , Kali 24, Debian 12 Tested
# Replace {user} with your linux username
# e.g. @reboot /home/{user}/.start_vnc.sh -> @reboot /home/lenevo/.start_vnc.sh
sudo apt install task-gnome-desktop #debian
sudo apt install ubuntu-gnome-desktop #ubuntu
sudo apt install kali-desktop-gnome #ubuntu
#install gnome
sudo apt install tigervnc-standalone-server tigervnc-common git dbus-x11
#install tigervnc
@xor-gate
xor-gate / yubikey+gpupgp+ssh_howto.md
Created April 25, 2025 08:27 — forked from xirkus/yubikey+gpupgp+ssh_howto.md
Security Adventures 1. How to get yubikey+gpg+ssh+gitbhub working on MacOS

I've spent the day trying to get this setup working with GitHub and given the number of gotcha's I encountered, it seemed like a good idea to document how I finally got this working with as few hacks as possible. There's a lot of documentation out there (some of it old and misleading) and committing here for posterity will help me remember this when I inevitably need to do this again.

Rationale

Passwords are simply not enough these days. Regardless of the company, breaches (and the associated Personally Identifiable Information harvested) are a matter of not if, but when. There are a number of things you can do to protect yourself, but being on the tin-foil-hat side of paranoia, means there are a few Commandents that I adhere to (and recommend for other folks)[Insert link to Fight Club Rules for the Secure Internet].

That being said, if you use 2-factor authentication and have committed to using a hardware token such as the Yubikey, then you're already ahead of the curve. The problem is that wh

From: http://web.archive.org/web/20160904174444/http://andreafrancia.it/2010/03/understanding-the-output-of-rsync-itemize-changes.html
As you may know the rsync's --delete options if misused could make severe damage.
To prevent this you can use the --itemize-change and the --dry-run options to figure out how the command will behave before launching the real one.
The output will be something like that:
.d..t..g... ./
.f...p.g... Something.pdf
@xor-gate
xor-gate / HTTrack.md
Created October 16, 2024 14:57 — forked from tmslnz/HTTrack.md
Nice command line for HTTrack

Commands

httrack example.com -O ./example.com -N100 −%i0 -I0 --max-rate 0 --disable-security-limits --near -v
httrack example.com -O ./example.com-3 -N100 -I0 -N "%p/%n%[month].%t" --max-rate 0 --disable-security-limits --near  -v
@xor-gate
xor-gate / client.go
Last active August 18, 2024 06:21 — forked from cyantarek/client.go
Golang AES-CFB encrypted TCP stream
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
"net"
)
@xor-gate
xor-gate / go-ssh-reverse-tunnel.go
Created August 12, 2024 16:54 — forked from codref/go-ssh-reverse-tunnel.go
Go SSH reverse tunnel implementation (SSH -R)
/*
Go-Language implementation of an SSH Reverse Tunnel, the equivalent of below SSH command:
ssh -R 8080:127.0.0.1:8080 operatore@146.148.22.123
which opens a tunnel between the two endpoints and permit to exchange information on this direction:
server:8080 -----> client:8080
@xor-gate
xor-gate / 0-README.txt
Created January 20, 2024 12:49 — forked from yan-foto/0-README.txt
DeDRM Adobe Digital Edition Books
Convenient DeDRM Scripts
-------------------------
**NOTE**: read https://blog.quaintous.com/2021/02/16/remove-drm-from-ebooks/ to find out what this gist is good for.
* ./init.sh: extracts Adobe Digital Editions private key and required files to DeDRM.
* ./dedrm: removes DRM from given ebook (pdf/epub)
If you are using this for the first time, make sure that you have authenticated your Adobe Digital Editions (ADE) and run './init.sh'. Import any DRM-protected file into ADE and run 'dedrm.sh':
#include <WiFi.h>
#include <SPIFFS.h>
#include <ESPAsyncWebServer.h>
#include <WebSocketsServer.h>
// Constants
const char *ssid = "ESP32-AP";
const char *password = "LetMeInPlz";
const char *msg_toggle_led = "toggleLED";
const char *msg_get_led = "getLEDState";