Skip to content

Instantly share code, notes, and snippets.

View SkySails's full-sized avatar
💻
Working from home

Malte Hallström SkySails

💻
Working from home
View GitHub Profile
@SkySails
SkySails / secret2env.sh
Last active April 19, 2022 16:24
A shell-script that aids developers in converting secrets from AWS Secrets Manager into `.env`-files for local use, such as with Docker.
#!/bin/bash
BLUE='\033[0;34m'
GREEN='\033[0;32m'
CYAN='\033[0;36m'
RED='\033[0;31m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color
function print_secret() {
@SkySails
SkySails / colors.py
Created January 9, 2023 22:43
Image watermarker
class LightColors:
ONE_COLOR=(254, 254, 254)
ZERO_COLOR=(253, 253, 253)
BG_COLOR=(255, 255, 255)
class DarkColors:
ONE_COLOR=(2, 2, 2)
ZERO_COLOR=(1, 1, 1)
BG_COLOR=(0, 0, 0)
@SkySails
SkySails / index.html
Created January 12, 2023 12:41
macOS `webContents.print` error repro
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>