Skip to content

Instantly share code, notes, and snippets.

View oneingan's full-sized avatar

Juanjo Presa oneingan

  • nadanix
  • Madrid, Spain
  • 02:00 (UTC +02:00)
View GitHub Profile
@masaeedu
masaeedu / init-haskell.sh
Last active May 20, 2021 15:24
Basic nix haskell setup
#!/usr/bin/env bash
set -Eeuxo pipefail
# Set up git
git init
gitignore haskell
echo '*.cabal' >> .gitignore
# Set up niv
niv init
@Christoph-Wagner
Christoph-Wagner / circadianlights.py
Last active December 13, 2016 12:01
custom component that provides a service to set home-assistant.io lights according to the circadian rythm
# Color Temperature & Brightness calculations adapted from
# https://github.com/KristopherKubicki/smartapp-circadian-daylight
# Sorry if this code sucks, I've never used Python before ;)
import logging
import datetime
import math
@acolyer
acolyer / service-checklist.md
Last active July 10, 2024 05:13
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@n0ts
n0ts / get_oracle_jdk_x64.sh
Last active September 16, 2023 12:07
Get latest Oracle JDK package bash shell script for linux/osx/windows
#!/bin/bash
# You must accept the Oracle JDK License Update
# https://www.oracle.com/java/technologies/javase-downloads.html
# usage: get_oracle_jdk_x64.sh <jdk_version> <platform> <ext>
# jdk_version: 14
# platform: linux or osx or windows
# ext: rpm or dmg or tar.gz or exec
jdk_version=${1:-14}