Skip to content

Instantly share code, notes, and snippets.

View u1i's full-sized avatar

Uli u1i

View GitHub Profile
@u1i
u1i / prompt.txt
Created July 24, 2025 01:45
godzilla-sg.txt
Aerial drone photo of Godzilla breaching Marina Bay, shot from directly overhead. The monster's massive dorsal plates slice through the bay's turquoise water, leaving a violent wake that crashes against the Esplanade's glass domes. Marina Bay Sands' three towers and SkyPark are perfectly framed in the upper right, giving scale to the creature's enormity. Below, traffic has stopped on the Helix Bridge as tiny figures scatter. Saltwater sprays in crystalline arcs under harsh midday sun, creating prismatic light effects. The beast's charcoal-black hide shows battle scars and barnacles, with realistic water beading and streaming off its ridged back. Helicopters hover at a safe distance, their rotors whipping up additional spray patterns. The entire scene maintains photojournalistic authenticity – motion blur on fleeing crowds, accurate shadows and reflections, heat haze rising from the monster's body.
@u1i
u1i / prompt.txt
Created July 22, 2025 05:15
Singapore 2049 Image Prompt
Ultra-realistic aerial photograph of Singapore in 2049, shot from the height of a 15th-storey apartment. The familiar Marina Bay Sands still stands, its once-pristine infinity pool now edged by a discreet sea-wall. Victoria and Clifford Piers have become a dense lattice of timber boardwalks on reclaimed concrete pylons, connecting to new three-storey stilt houses painted in the same pastel palette as HDB blocks—just higher. The Singapore River, now tidal, laps at the base of Raffles Place; glass towers still glint, but their ground floors have been retro-fitted with roll-down flood barriers in brushed aluminium. Across the bay, Gardens by the Bay remains instantly recognisable, yet the Supertree Grove is crowned with thin photovoltaic canopies angled against stronger sun. To the left, the ArtScience Museum’s lotus petals are half-submerged; a new pedestrian bridge—simple precast concrete segments on galvanized piles—cuts straight from its steps to Merlion Park, now relocated a few metres up-slope on a modest
@u1i
u1i / guacamole_complete_setup.md
Last active June 1, 2025 04:50
Guacamole RDP Web

Apache Guacamole Multi-User Setup Guide

Complete setup for 20 concurrent users with web-based remote desktop access via Apache Guacamole, RDP, and Cloudflare tunnel on Ubuntu 24.04 LTS.

Prerequisites

  • Bare Ubuntu 24.04 LTS server
  • SSH access as root
  • Domain configured with Cloudflare DNS
  • Minimum 8GB RAM, 4+ CPU cores recommended for 20 concurrent users
@u1i
u1i / info.txt
Created June 1, 2025 04:11
Linux Multi-User VNC Setup
# Multi-User VNC Setup Guide
Complete setup for 20 concurrent VNC sessions with web access via Cloudflare tunnel on Ubuntu 24.04 LTS.
## Prerequisites
- Bare metal Ubuntu 24.04 LTS server
- SSH access as root
- Domain configured with Cloudflare
@u1i
u1i / doit.sh
Created May 24, 2025 09:16
Create Multi-Part Zip Archives
#!/bin/bash
# --- Configuration ---
# Define the maximum size for each zip file in bytes (4 GB)
# 1 GB = 1024 * 1024 * 1024 bytes
MAX_SIZE_BYTES=$((4 * 1024 * 1024 * 1024))
# Define the prefix for the zip file names (e.g., archive_001.zip, archive_002.zip)
ZIP_PREFIX="archive"
@u1i
u1i / README.md
Created May 23, 2025 00:30
s3cmd Linode

Configuring s3cmd with Linode Object Storage

This guide explains how to set up s3cmd to work with Linode Object Storage and make objects publicly accessible.

Installation

# Create a Python virtual environment
python3 -m venv s3cmd-env
@u1i
u1i / info.txt
Created May 3, 2025 12:17
UI.Vision Mac
The XModules are add-ons for the UI.Vision browser extensions. If you open the browser extension now, the XModules should be displayed as “Installed”.
macOS Catalina/Big Sur: Please note that you need to allow the XModules to take screenshots (etc) in the Mac's Privacy settings. For more details see: https://ui.vision/rpa/x/download#install-mac
If you have any question, please ask in the user forum athttps://forum.ui.vision/
Uninstall UI.Vision XModules
Run the following command to uninstall UI.Vision XModules.  
$ sudo bash /Library/uivision-xmodules/2.2.2/uninstall.sh
@u1i
u1i / info.txt
Created May 3, 2025 00:50
anthropic computer use
export ANTHROPIC_API_KEY=sk-XXXX
docker run \
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
-v $HOME/.anthropic:/home/computeruse/.anthropic \
-p 5900:5900 \
-p 8501:8501 \
-p 6080:6080 \
-p 8080:8080 \
-it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest
@u1i
u1i / generate.sh
Created December 30, 2024 10:21
Draw Things API
curl --location 'localhost:7860/sdapi/v1/txt2img' \
--header 'Content-Type: application/json' \
--data '{
"height": 576,
"width": 1024,
"seed": -1,
"prompt": "Futuristic abandoned city, taken by plants, rust, green, destroyed robots, rain, heavy clouds, 8k, realistic",
"negative_prompt": ""
}'
#!/bin/bash
# Check if correct number of arguments is provided
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <USER_ID> <MESSAGE_TEXT>"
exit 1
fi
# Assign input arguments to variables
TOPIC="projects/yopa-433507/topics/backend_messages"