Skip to content

Instantly share code, notes, and snippets.

@santaklouse
santaklouse / mac-docker-gui.txt
Created August 6, 2025 10:52 — forked from roaldnefs/mac-docker-gui.txt
Running GUI application in Docker on MacOS
# Install XQuartz
brew cask install xquartz
# Restart MacOS
# Open XQuartz
open -a XQuartz
# Ensure the "Allow connections from network clients" option in Preferences >> Security is turned on
@santaklouse
santaklouse / iframe-loader.js
Created September 8, 2025 16:50 — forked from uangsl/iframe-loader.js
load webpage by XMLHttpRequest, and insert HTML into iframe by DOMParser. then the main page can visit iframe's context without cross-domain problem
const IFRAME_READY_MESSAGE = "IFRAME_READY";
export default {
id: null,
$el: null,
iframeBaseUrl: null,
targetDocument: document,
style:{'position':'fixed', 'top': '0', 'right':'20px', 'width':'300px', 'height':'400px'},
/***
* {id: '', url: '', iframeBaseUrl:'' , style:{}, targetDocument: null}
*/