Skip to content

Instantly share code, notes, and snippets.

View kristian-lange's full-sized avatar

Kristian Lange kristian-lange

View GitHub Profile
@kristian-lange
kristian-lange / caddy.sh
Last active December 15, 2018 16:22 — forked from Jamesits/caddy.sh
Install Caddy Server on Ubuntu with Systemd.
#!/bin/bash
# This shell script installs and starts Caddy (https://caddyserver.com/) on Debian based distros.
# It uses Caddy's personal license (https://caddyserver.com/products/licenses).
# This script is a fork from https://gist.github.com/Jamesits/2a1e2677ddba31fae62d022ef8aa54dc.
# It will by default install all plugins; you can customize this behavior on line 7.
apt update
apt install curl
curl https://getcaddy.com | bash -s personal
@kristian-lange
kristian-lange / gist:7605e6cd2c643313022eb796e15458fa
Created July 24, 2016 15:46
Why use Base64 encoding for JavaScript?
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />