Skip to content

Instantly share code, notes, and snippets.


Viktor Eriksson vikeri

  • Stockholm, Sweden
View GitHub Profile
stchris / Dockerfile
Created Jun 17, 2019
Alpine Linux Dockerfile to install magic-wormhole
View Dockerfile
# This installs (a nifty
# utility to securely send stuff from one computer to another) on
# Alpine Linux
FROM alpine
RUN apk update && apk add build-base python3-dev libffi-dev openssl-dev && pip3 install magic-wormhole
rtorr /
Last active Aug 20, 2021
Visual Studio Code fish shell shortcut

Put this in your


code path/to/project

john2x /
Last active Sep 3, 2022
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

larrybotha / A.markdown
Last active Feb 18, 2022
Fix SVGs not scaling in IE9, IE10, and IE11
View A.markdown

Fix SVG in <img> tags not scaling in IE9, IE10, IE11

IE9, IE10, and IE11 don't properly scale SVG files added with img tags when viewBox, width and height attributes are specified. View this codepen on the different browsers.

Image heights will not scale when the images are inside containers narrower than image widths. This can be resolved in 2 ways.

Use sed in bash to remove width and height attributes in SVG files

As per this answer on Stackoverflow, the issue can be resolved by removing just the width and height attributes.

brandonb927 /
Last active Sep 27, 2022
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see
# Alot of these configs have been taken from the various places
# on the web, most from here