Skip to content

Instantly share code, notes, and snippets.

Avatar
🏡
Working from home

Yrjö Kari-Koskinen ykarikos

🏡
Working from home
  • Tomorrow Tech
  • Helsinki
View GitHub Profile
@jchandra74
jchandra74 / openssl.MD
Last active May 8, 2021
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window
View openssl.MD

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

@amalloy
amalloy / .gitattributes
Created Apr 10, 2017
Clojure-aware git-diff hunk headers
View .gitattributes
*.clj diff=clojure
*.cljs diff=clojure
*.cljx diff=clojure
@ohanhi
ohanhi / joy-of-composition.md
Last active Feb 3, 2021
The Joy of Composition - Why stateless rendering is pure bliss
View joy-of-composition.md

This is a proposal for a lightning talk at the Reactive 2015 conference.

NOTE: If you like this, star the Gist - the amount of stars decides whether it makes the cut!

The Joy of Composition

Why stateless rendering is pure bliss

React just got stateless components, meaning that they are in essence pure functions for rendering. Pure functions make it dead simple - even fun - to refactor your views

@smockle
smockle / gif.sh
Last active Jul 25, 2020
Convert .mov to .gif in OS X with ffmpeg & imagemagick
View gif.sh
ffmpeg -i in.mov -vf scale=800:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -layers Optimize -loop 0 - out.gif
@ohanhi
ohanhi / frp.md
Last active Feb 22, 2021
Learning FP the hard way: Experiences on the Elm language
View frp.md

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@pyrtsa
pyrtsa / year_workdays.py
Last active Oct 13, 2015
Workdays in 2013
View year_workdays.py
# Install dateutil with "pip dateutil install"
from datetime import date, timedelta as td
from itertools import count, takewhile
def holiday(d): # See https://gist.github.com/pyrtsa/3525697
"""Check whether the given dateutil.date is a Finnish national holiday"""
import dateutil.easter
from datetime import date, timedelta as td
assert isinstance(d, date)