Skip to content

Instantly share code, notes, and snippets.

View Lucky-Loek's full-sized avatar

Loek van der Linde Lucky-Loek

  • HZ University of Applied Sciences
  • Middelburg, Netherlands
View GitHub Profile
const array = ['+3', '+13', '+4', '-2', '-4', '+15', '-1', '+6', '+3', '-10', '+9', '-5', '-7', '-15', '+8', '-11', '+19', '+7', '+6', '+1', '-13', '+19', '+7', '+13', '-18', '+2', '+6', '+5', '+8', '+17', '-11', '+14', '-10', '-7', '-9', '-9', '+11', '+15', '-4', '+6', '+13', '-18', '+7', '+4', '+16', '-6', '-7', '+14', '+3', '-15', '+1', '-9', '-21', '-2', '+9', '-11', '-8', '-10', '-11', '+16', '+8', '-12', '+8', '+7', '+1', '+19', '-5', '-3', '-29', '-7', '+11', '+22', '+14', '-13', '+19', '+19', '-6', '+15', '+20', '+6', '+9', '+4', '-9', '-8', '-19', '+14', '-5', '+7', '-8', '+17', '-4', '-3', '+6', '+14', '-16', '-18', '+1', '-12', '-4', '-15', '+24', '+3', '-5', '+11', '-16', '+4', '-14', '-3', '+6', '+19', '+3', '-23', '+19', '-8', '+21', '+13', '+11', '+5', '-18', '-13', '+21', '-14', '+9', '+21', '+12', '-5', '-16', '+14', '-13', '+6', '-18', '-20', '+27', '+9', '-6', '+18', '+8', '-3', '-3', '-4', '+8', '+1', '+7', '+15', '+13', '-2', '-4', '-16', '+7', '-10', '-7', '+12', '-6', '-1', '+13', '+2',
@Lucky-Loek
Lucky-Loek / docker-workflow.sh
Last active October 6, 2021 09:54
Docker workflow (also works in powershell)
# After creating a Dockerfile
docker build -t {tag-name} .
# Run one-off commands that are visible on host in current directory:
# docker run
# --rm [remove container after done]
# -it [with an interactive shell]
# -v ${pwd}:/opt [with volume of present working directory mounted in /opt]
# -w [with container working directory of /opt]
# {container} [the container name]
@Lucky-Loek
Lucky-Loek / settings.json
Last active August 24, 2020 11:14
My VS Code settings
{
// Prevent Microsoft from spying on me
"workbench.enableExperiments": false,
"workbench.settings.enableNaturalLanguageSearch": false,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"npm.fetchOnlinePackageInfo": false,
// I use "scoop" for updates, so disable auto-updates
"update.enableWindowsBackgroundUpdates": false,
@Lucky-Loek
Lucky-Loek / Vagrantfile
Last active October 26, 2018 13:47
Vagrantfile for Ubuntu 18.04 and an inline provisioner
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "generic/ubuntu1804"
@Lucky-Loek
Lucky-Loek / install.sh
Last active November 27, 2018 15:41
Things to do when installing Ubuntu Linux for the 2^nth time
#!/usr/bin/env sh
# Update
sudo apt update
# Upgrade
sudo apt upgrade -y
# Install fonts and Z-shell
sudo apt install xfonts-terminus zsh -y
@Lucky-Loek
Lucky-Loek / .zshrc
Last active August 25, 2021 23:09
Basic .zshrc for GNU/Linux with Syntax Highlighting and TheFuck
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/loek/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="amuse"