Skip to content

Instantly share code, notes, and snippets.

View fatihmert's full-sized avatar
🥳

Fatih Mert Doğancan fatihmert

🥳
View GitHub Profile
@fatihmert
fatihmert / README.md
Created October 7, 2026 12:56
DigitalOcean Recovery Console Paste Fix — noVNC Keyboard Layout & Shift Keys

DigitalOcean Recovery Console Paste Fix (Legacy noVNC)

Paste shell commands into the DigitalOcean Recovery Console when copy and paste is not working or a Turkish keyboard produces incorrect special characters.

This JavaScript helper types text through an existing legacy noVNC connection and sends explicit Shift key events for symbols and uppercase letters.

The problem

Commands can arrive with the wrong characters:

@fatihmert
fatihmert / gist:83380537d079d4a616cca993599bd19d
Created July 25, 2024 06:57
ffmepg cuda installer v0.1
#!/bin/bash
# HOMEPAGE: https://github.com/markus-perl/ffmpeg-build-script
# LICENSE: https://github.com/markus-perl/ffmpeg-build-script/blob/master/LICENSE
PROGNAME=$(basename "$0")
FFMPEG_VERSION=7.0
SCRIPT_VERSION=1.52
CWD=$(pwd)
PACKAGES="$CWD/packages"
// @ts-check
import { APIWrapper, API_EVENT_TYPE } from "./api.js";
import { addMessage, animateGift, isPossiblyAnimatingGift, isAnimatingGiftUI } from "./dom_updates.js";
const api = new APIWrapper();
// const api = new APIWrapper(null, true, false);
// const api = new APIWrapper(null, true, true);
// show logs