Skip to content

Instantly share code, notes, and snippets.

View d2s's full-sized avatar

Daniel Schildt d2s

View GitHub Profile
d2s /
Created December 29, 2022 18:54
Default stylesheets of web browsers

CSS-related notes

Default stylesheets of web browsers

d2s / _reduced-motion.scss
Created October 5, 2022 19:46
Reduced motion for people who prefer not to see animations and transitions.
// Remove all animations and transitions
// for people who prefer not to see them
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
d2s / feed-json.njk
Created May 19, 2022 11:11
JSON Feed template for Eleventy site generator
"permalink": "/feed.json",
"eleventyExcludeFromCollections": true
"version": "",
"title": "{{ }}",
"home_page_url": "{{ config.url }}",
d2s /
Last active February 4, 2020 21:31
Bash / Zsh aliases for macOS WiFi configuration management
# -----------------------------------------------------------
# Network configuration metadata
# -
# -----------------------------------------------------------
alias macos-wifi-configuration="defaults read /Library/Preferences/SystemConfiguration/"
alias macos-wifi-configuration-backup="macos-wifi-configuration > ~/Desktop/macos-wifi-configuration-backup-$(date +%F-%H%M).txt"
alias macos-wifi-grep-ssid="macos-wifi-configuration | grep wifi.ssid | tr -d \"[:blank:]\" | sort | uniq"
alias macos-wifi-grep-SSIDString="macos-wifi-configuration | grep SSIDString | tr -d \"[:blank:]\" | sort | uniq"
alias macos-wifi-network-names="macos-wifi-grep-SSIDString"
d2s / index.html
Created September 12, 2019 23:20
Kokonaisarvio datan hyötypotentiaalista (Heat Map with Plotly.js)
<!-- Plotly.js -->
<script src=""></script>
<h1>Heat Map with Plotly.js</h1>
d2s /
Created June 20, 2019 18:56
Pull changes from an upstream Git repository
#!/usr/bin/env bash
# Add `upstream` Git repository
# git remote add upstream
# Merge latest changes from the `upstream` Git repository
git fetch upstream
git checkout master
git merge upstream/master
d2s /
Last active January 13, 2024 01:54
Working with 3rd party Git repositories

Working with 3rd party repositories

Pull changes from upstream

Steps to pull changes from an upstream repository.

Add upstream Git repository

git remote add upstream
d2s /
Last active May 20, 2024 15:10
Installing spell checker to VS Code

Spelling Checker for Visual Studio Code

  • README of the code-spell-checker VS Code extension.

Installing spell checker to VS Code

  • Open up VS Code
  • Press button F1
  • Type ext install code-spell-checker to the command promnt and press Enter key.
d2s /
Last active July 17, 2017 21:08
Installing Hugo
d2s /
Last active October 9, 2022 00:15
Tips on how to learn Docker

Good starting point for learning Docker is to read following sections from the official Docker documentation. It is mainly a series of short tutorials, together with related documentation about syntax of commands, etc..

Those are focusing mainly on how to get existing things from Docker Hub. Next thing to learn would be how to create things for running custom software on top of base Ubuntu Linux system image.