Skip to content

Instantly share code, notes, and snippets.

Kevin Smets kevin-smets

Block or report user

Report or block kevin-smets

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
@kevin-smets
kevin-smets / 1_kubernetes_on_macOS.md
Last active Apr 3, 2020
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry
View 1_kubernetes_on_macOS.md

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@kevin-smets
kevin-smets / one-line-asset-servers.md
Last active Oct 21, 2017
One liners for CLI asset servers
View one-line-asset-servers.md

Https / Http2

Caddy

macOS: brew install caddy

caddy --conf=<( echo -e ':8080\ntls self_signed' )

Make sure to use https://, otherwise you'll download a.. download file. Since it's self signed, you'll need to ignore any security warnings in order to continue.

@kevin-smets
kevin-smets / macos-virtualbox-ubuntu-server-docker.md
Last active Jan 28, 2020
macOS VirtualBox headless Ubuntu Server and Docker setup
View macos-virtualbox-ubuntu-server-docker.md

Get started

Install virtualbox and the extension pack:

brew cask install docker virtualbox virtualbox-extension-pack

Download the ubuntu server image and create a VBox for it, the rest of the readme assumes it is named "Ubuntu Server".

Enable SSH

@kevin-smets
kevin-smets / ..homeSync.md
Last active Apr 3, 2020
Feeling homeSync? Sync your home dir to a git repo with launchd every 30 minutes (macOS)
View ..homeSync.md

Feeling homeSync?

  1. Place homeSync.sh and homeSync.plist in your home dir
  2. It's recommended to place the .gitignore in your home dir as well, to prevent checking in all your things :)

After doing that, run the following commands in ~/.

cd ~
git init
git remote add origin <https://your/git/repo.git>
@kevin-smets
kevin-smets / svgo.md
Last active Oct 13, 2017
svgo all the things
View svgo.md
# NO sudo
npm i -g svgo

# Go to a directory with svg's (also searches subdirectories)
find . -name '*.svg' -exec svgo -i {} \
@kevin-smets
kevin-smets / README.md
Last active Jul 26, 2019
Private ÐApps - Embark + IPFS (MacOS)
View README.md

Private ÐApps

With these instructions, you can test a fully local and private ÐApp. Obviously it's not distributed into the cloud here, so it's more like a .. PApp? But we do simulate the full stack locally, so you can push changes to your hearts content!

Prerequisites (software)

  • Node.js (brew install node)
  • IPFS (brew install ipfs)
  • Embark (npm i -g embark)
  • TestRPC (npm i -g ethereumjs-testrpc)
@kevin-smets
kevin-smets / README.md
Last active Jun 4, 2018
Install TensorFlow @ MacOS
View README.md

Instructions

# Install python 3.x
brew ugrade python

# Install TF - see https://github.com/tensorflow/tensorflow/issues/17369
pip3 install grpcio==1.9.1 tensorflow
View feed.en.json
[
{
"imageUrl": "http://placekitten.com/2000/200",
"title": "Article 2",
"date": "20/02/2018",
"body": "Bacon ipsum dolor amet shankle drumstick tenderloin, leberkas tri-tip corned beef jowl. Short ribs cupim biltong, kielbasa filet mignon brisket sirloin prosciutto pork belly shank pig."
},
{
"title": "Article 1",
"date": "19/02/2018",
View creating-a-self-signed-ssl-certificate.md

Create a secrets file:

touch ~/.secret

Make sure it looks like this:

#!/bin/bash
You can’t perform that action at this time.