Skip to content

Instantly share code, notes, and snippets.


Michael pyrou

View GitHub Profile
pyrou / docker-compose.yml
Last active Nov 16, 2021
Use SSL certificates for local HTTPS without having to touch your /etc/hosts or your certificate CA.
View docker-compose.yml
version: '3'
restart: unless-stopped
image: traefik:v2.0.2
- "80:80"
- "443:443"
- ""
pyrou / BindableStore.swift
Last active Jul 3, 2019
SwiftUI Todo list prototype using ReSwift
View BindableStore.swift
// BindableStore.swift
// SwiftUIExperiment
// Created by Michael Hurni on 06/06/2019.
// Copyright © 2019 SwitchKit. All rights reserved.
import Combine
import SwiftUI
View CGRect+macros.h
#ifndef __CGRECT_MACROS__
#define __CGRECT_MACROS__
#define CGRectX(rect) rect.origin.x
#define CGRectY(rect) rect.origin.y
#define CGRectWidth(rect) rect.size.width
#define CGRectHeight(rect) rect.size.height
#define CGRectSetSize(rect, w, h) CGRectMake(CGRectX(rect), CGRectY(rect), w, h)
#define CGRectSetOrigin(rect, x, y) CGRectMake(x, y, CGRectWidth(rect), CGRectHeight(rect))
#define CGRectSetWidth(rect, w) CGRectSetSize(rect, w, CGRectHeight(rect))
shawnsi /
Last active Jul 28, 2021
Ansible Vault Environment Variable

Ansible Vault Environment Variable

Per you can set an environment variable to use a password file for vault access. We can use this to create an environment variable to hold the password.

Password Script

Copy vault-env from this project to ~/bin. Then add this to your ~/.bashrc:

export ANSIBLE_VAULT_PASSWORD_FILE=~/bin/vault-env
saetia / gist:1623487
Last active Jan 12, 2022
Clean Install – OS X 10.11 El Capitan
View gist:1623487

OS X Preferences

most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat