Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am oleeskild on github.
  • I am oleeskild (https://keybase.io/oleeskild) on keybase.
  • I have a public key ASBMWCUjBEPGS2Jql63V062PZK3twuThO2dXqETGyj1Tywo

To claim this, I am signing this object:

"""
Will add a custom frontmatter to all markdown files in a folder with a specific tag.
Usage: python add_yaml_frontmatter_with_tags.py <folder> <tag> <name> <value>
Example, when placed in the same folder as the markdown notes:
python add_yaml_frontmatter_with_tags.py . "myPublishTag" "dg-publish" "true"
"""
import os
import sys
import re
@oleeskild
oleeskild / inputfont.css
Created October 8, 2018 18:02
[Beautiful input font]
input{
background: #fff;
background-clip: padding-box;
border: none;
border-radius: 0;
color: inherit;
font-family: FFScalaWeb,Georgia,serif;
font-size: 14px;
font-style: inherit;
font-weight: inherit;
@oleeskild
oleeskild / docker-cheat-sheet.md
Created March 10, 2018 23:53
[Docker cheat sheet]
#!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi
# remove unused volumes:
@oleeskild
oleeskild / index.html
Created February 27, 2018 16:56
[Truncate text] If the text is longer than one line, it will be truncated and end with an ellipsis ....
<p class="truncate-text">If I exceed one line's width, I will be truncated.</p>
@oleeskild
oleeskild / index.html
Created February 27, 2018 16:55
[Triangle] Creates a triangle shape with pure CSS.
<div class="triangle"></div>
@oleeskild
oleeskild / index.html
Created February 27, 2018 16:54
[Popout menu] Reveals an interactive popout menu on hover.
<div class="reference">
<div class="popout-menu">
Popout menu
</div>
</div>
@oleeskild
oleeskild / index.html
Created February 27, 2018 16:53
[Overflow scroll gradient] Adds a fading gradient to an overflowing element to better indicate there is more content to be scrolled.
<div class="overflow-scroll-gradient">
<div class="overflow-scroll-gradient__scroller">
Content to be scrolled
</div>
</div>
@oleeskild
oleeskild / centering.css
Created February 27, 2018 16:50
[Horizontal and vertical centering] Horizontally and vertically centers a child element within a parent element.
.horizontal-and-vertical-centering {
display: flex;
justify-content: center;
align-items: center;
}