Skip to content

Instantly share code, notes, and snippets.

View cedced19's full-sized avatar

Cédric JUNG cedced19

View GitHub Profile
@jakehwll
jakehwll / README.md
Last active November 10, 2024 15:45
🕳 A docker compose for bore.

bore Docker Compose

This is a version of bore written as a docker-compose.yml file.

Instructions

To get started, follow the instructions below.

  1. touch docker-compose.yml
  2. nano docker-compose.yml
@crazy-max
crazy-max / Caddy.env
Last active January 1, 2025 13:39
Proxmox web interface through Caddy as reverse proxy with Let's Encrypt
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_HOSTED_ZONE_ID=
@byjg
byjg / NoVNC_Paste.js
Last active November 19, 2024 21:20
How to Paste code to NoVNC.
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
window.sendString = function (str) {
f(str.split(""));
function f(t) {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/);
@johan
johan / resolveURL.js
Created October 19, 2012 00:17
Resolves a relative url against a base_url using browser internals not exposed to you in API form.
function resolveURL(url, base_url) {
var doc = document
, old_base = doc.getElementsByTagName('base')[0]
, old_href = old_base && old_base.href
, doc_head = doc.head || doc.getElementsByTagName('head')[0]
, our_base = old_base || doc_head.appendChild(doc.createElement('base'))
, resolver = doc.createElement('a')
, resolved_url
;
our_base.href = base_url;