Deploys FreeBSD on a Hetzner cloud server
- A Hetzner Cloud API Token (Pass in via APIKEY)
- jq
- sshpass
Replace server_id variable with your hetzner server Id
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# addnote.py by JP Mens (September 2015), inspired by Martin Schmitt | |
# Usage: addnote subject "body (may be empty") [image ...] | |
# Adds a Notes.app (OSX and iOS) compatible message to the "Notes" | |
# IMAP folder. The IMAP store is configured from a file called | |
# `creds': | |
# | |
# [imap] | |
# hostname = |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
Die Geschichte von der Steinsuppe
Vor langer Zeit, irgendwo in Osteuropa, gab es in einem Dorf eine große Hungersnot. Die Menschen im Dorf wurden selbstsüchtig, horteten alle Lebensmittel, die sie finden konnten, und versteckten sie sogar vor ihren eigenen Freunden und Nachbarn.
Eines Tages kam ein Wanderer mit einem großen Kessel auf dem Rücken in das Dorf und wollte dort die Nacht verbringen.
"Es gibt nicht einen Happen in der ganzen Provinz zu essen", wurde ihm gesagt. "Du solltest lieber weiterziehen."
"Oh, ich habe alles was ich brauche", sagte er. "Tatsächlich wollte ich eine Steinsuppe kochen und mit euch allen teilen." Er nahm seinen Kessel vom Rücken, füllte ihn mit Wasser, stellte ihn in die Mitte des Marktplatzes und entzündete ein Feuer darunter. Dann, mit einer großen Zeremonie, zog er einen gewöhnlich aussehenden Kieselstein aus einem Samtbeutel und warf ihn in das Wasser.
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
//knoten.js Netzdiener-Beispiel in DEUTSCHskript | |
var Http = FordereAn('http'); | |
Http.ErstelleDiener(Funktion (Anf, Ant) { | |
Ant.SchreibeKopf(200, { "Inhalts-Art" : "text/blank"}); | |
Ant.Beenden("Hallo Welt \n"); | |
}).höre(1337, "LokalerGastgeber"); | |
package main | |
import ( | |
"fmt" | |
) | |
type Node struct { | |
Value int | |
} |