Skip to content

Instantly share code, notes, and snippets.

@ishad0w
ishad0w / README.md
Last active May 4, 2025 19:02
Debian 12 on Oracle Cloud (Free Tier) - (AMD64/ARM64)

Requirements:

⚠️ Only FRESH and CLEAN instances are supported. Ubuntu 22.04 (Minimal) images ONLY ⚠️

⚠️ Also you NEED to temporarily open the connection to the 1022 port in Security List / Ingress Rules for your VCN ⚠️

⚠️ After transformation YOU get a clean Debian 12 instance. All other data will be lost. ⚠️

The tmpfs partition is limited to 700m for x86_64 (free tier) compatibility.

@lucis
lucis / fetch-and-parse.js
Created August 13, 2019 19:56
Fetchs a ISO-8859-1 HTML page and parse it
const fetchAndParse = url => fetch(url)
.then(response => response.arrayBuffer())
.then(buffer => { const decoder = new TextDecoder("ISO-8859-1"); return decoder.decode(buffer) })
.then(content => { const parser = new DOMParser(); return parser.parseFromString(content, 'text/html') })
// I'll probably improve it later in the matter of compatibility
@markus-willems
markus-willems / xubuntu-natural-scrolling.md
Created January 3, 2019 19:23
Enable natural scrolling in Xubuntu 18.04.1

Enable natural scrolling in Xubuntu 18.04.1

  1. Uncheck Reverse scroll direction in Settings > Mouse and Touchpad
  2. Open Terminal and enter sudo mousepad /usr/share/X11/xorg.conf.d/70-synaptics.conf
  3. Append the following snippet:
Section "InputClass"
    Identifier "touchpad"
    Driver "synaptics"
 MatchIsTouchpad "on"