Skip to content

Instantly share code, notes, and snippets.

💎
Looking for work projects.

Daniel Schildt d2s

💎
Looking for work projects.
Block or report user

Report or block d2s

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@d2s
d2s / index.html
Created Sep 12, 2019
Kokonaisarvio datan hyötypotentiaalista (Heat Map with Plotly.js)
View index.html
<head>
<!-- Plotly.js -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<header>
<h1>Heat Map with Plotly.js</h1>
</header>
@d2s
d2s / pull-changes-from-upstream.sh
Created Jun 20, 2019
Pull changes from an upstream Git repository
View pull-changes-from-upstream.sh
#!/usr/bin/env bash
# Add `upstream` Git repository
# git remote add upstream https://github.com/d2s/companies.git
# Merge latest changes from the `upstream` Git repository
git fetch upstream
git checkout master
git merge upstream/master
@d2s
d2s / readme.md
Last active Jun 20, 2019
Working with 3rd party Git repositories
View readme.md

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 https://github.com/d2s/companies.git
@d2s
d2s / install-spell-checker-to-vs-code.md
Last active Jul 29, 2017
Installing spell checker to VS Code
View install-spell-checker-to-vs-code.md

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
d2s / hugo.md
Last active Jul 17, 2017
Installing Hugo
View hugo.md
@d2s
d2s / docker-basics.md
Last active Mar 8, 2019
Tips on how to learn Docker
View docker-basics.md

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.

@d2s
d2s / settings.json
Last active Mar 2, 2017
Visual Studio Code configuration
View settings.json
// Place your settings in this file to overwrite the default settings
{
// ==================================
// PRIVACY SETTINGS
// Disable crash reporting
// https://code.visualstudio.com/Docs/supporting/faq#_how-to-disable-crash-reporting
"telemetry.enableCrashReporter": false,
// Disable telemetry reporting
// https://code.visualstudio.com/Docs/supporting/faq#_how-to-disable-telemetry-reporting
View fix-ubuntu-package-cache.md

Fix Ubuntu package cache

Had problem with Ubuntu package cache.

➜  sources.list.d sudo apt-get update                   
Hit:1 http://fi.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://fi.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                                   
Hit:3 http://fi.archive.ubuntu.com/ubuntu xenial-backports InRelease                                                                 
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
@d2s
d2s / install-go-to-with-bash-script.md
Last active Aug 13, 2019
Installing Go with command line
View install-go-to-with-bash-script.md

Install Go language with a Bash script

Another alternative to installing Go is to use a simple Bash script. It will download and install Go language under of your own user account.

Note that a system-wide installation might be better for some things (for example, better protected from accidental modifications etc.), but this was a bit simpler to setup.

For this example, we are using:

@d2s
d2s / afp.conf
Last active May 6, 2018 — forked from dinigo/afp.conf
Install netatalk (afp) in Ubuntu with service announcing and provide a Time Machine share. Users must belong to `timemachine` group to be allowed to use it.
View afp.conf
[TimeMachine]
path = /store/time-machine
time machine = yes
valid users = @timemachine
You can’t perform that action at this time.