Skip to content

Instantly share code, notes, and snippets.

View d2s's full-sized avatar

Daniel Schildt d2s

View GitHub Profile
@d2s
d2s / settings.json
Last active March 2, 2017 08:14
Visual Studio Code configuration
// 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

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 May 10, 2023 22:45
Installing Go with command line

NOTE: This is heavily outdated Gist snippet from 2017.


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

@d2s
d2s / afp.conf
Last active May 6, 2018 10:57 — 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.
[TimeMachine]
path = /store/time-machine
time machine = yes
valid users = @timemachine
@d2s
d2s / installing-node-with-nvm.md
Last active March 13, 2024 12:09
Installing Node.js to Linux & macOS & WSL with nvm

Installing Node.js with nvm to Linux & macOS & WSL

A quick guide on how to setup Node.js development environment.

Install nvm for managing Node.js versions

nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

  1. Open new Terminal window.
@d2s
d2s / keybase.md
Created July 20, 2015 15:51
keybase.md

Keybase proof

I hereby claim:

  • I am d2s on github.
  • I am d2s (https://keybase.io/d2s) on keybase.
  • I have a public key whose fingerprint is 5D9D 5733 EF76 D23E 9A02 BA2F A051 40E1 02DF 6F6F

To claim this, I am signing this object:

@d2s
d2s / terminal-log-2015-05-15.txt
Created May 15, 2015 09:38
ruby-install ruby 2.2.2 (error log)
d2s@d2s-VirtualBox:~$ ruby-install ruby 2.2.2
>>> Installing ruby 2.2.2 into /home/d2s/.rubies/ruby-2.2.2 ...
>>> Installing dependencies for ruby 2.2.2 ...
[sudo] password for d2s:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
libffi-dev is already the newest version.
libgdbm-dev is already the newest version.
@d2s
d2s / terminal-error-log.txt
Created March 31, 2012 19:58
Install error: brew install redis-php
ada:~ d2s$ brew install redis-php
==> Downloading https://github.com/nicolasff/phpredis/tarball/2.1.3
Already downloaded: /Users/d2s/Library/Caches/Homebrew/redis-php-2.1.3.tgz
==> phpize
==> ./configure --prefix=/usr/local/Cellar/redis-php/2.1.3
==> make
/bin/sh /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/libtool --mode=compile /usr/bin/clang -I. -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/include -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/main -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -I/usr/local/Cellar/php/5.3.10/include/php -I/usr/local/Cellar/php/5.3.10/include/php/main -I/usr/local/Cellar/php/5.3.10/include/php/TSRM -I/usr/local/Cellar/php/5.3.10/include/php/Zend -I/usr/local/Cellar/php/5.3.10/include/php/ext -I/usr/local/Cellar/php/5.3.10/include/php/ext/date/lib -DHAVE_CONFIG_H -Os -w -pipe -march=nat
Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libassuan-pth.a
/usr/local/lib/libassuan.a
Unbrewed .la files were found in /usr/local/lib.
~ > brew install imagemagick
/usr/local/git/bin/git
==> Cloning https://github.com/adamv/ImageMagick.git
M www/api/animate.html
M www/api/annotate.html
M www/api/attribute.html
M www/api/blob.html
M www/api/cache-view.html
M www/api/cache.html
M www/api/cipher.html