Skip to content

Instantly share code, notes, and snippets.

💼
I may be slow to respond due to work.

Sander Laarhoven lesander

💼
I may be slow to respond due to work.
Block or report user

Report or block lesander

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
View run-jekyll-locally.md

Running Jekyll locally

  1. Clone the repository to your local machine git clone https://github.com/Piersoncollege/nerdnight.git
  2. Go to the new directory cd nerdnight
  3. Run jekyll jekyll serve
  4. Go to your browser on http://localhost:4000
  5. Open your Atom editor and add the project folder your/path/nerdnight with CMD+Shift+O.
  6. Profit?
@lesander
lesander / ticktacktoe.py
Created Oct 9, 2017
Tic Tac Toe in Python
View ticktacktoe.py
#!/usr/bin/env/python3
#
# Tic Tac Toe in Python 3
# v1.0.0 - by Sander Laarhoven
# Licensed under the MIT License
#
# This was created as part
# of a one-hour code challenge.
import subprocess
View keybase.md

Keybase proof

I hereby claim:

  • I am lesander on github.
  • I am lesander (https://keybase.io/lesander) on keybase.
  • I have a public key ASAM445KMuh_0ZbVwe-ii2wfMXA-CKBn86UTbtIf1-cs3wo

To claim this, I am signing this object:

@lesander
lesander / git-history.sh
Created Jan 25, 2017
Get the history between two tags, commits or releases in nicely formatted markdown.
View git-history.sh
#!/bin/bash
# By Sander Laarhoven <sander@laarhoven.org>
# Usage: ./git-history.sh tag
# Where 'tag' is the previous release or version.
# This script compares with HEAD by default.
currentTag="HEAD"
previousTag=$1
fullName="John\ Doe"
userName="MyGitHubUsername"
@lesander
lesander / mac-switch.sh
Created Jan 6, 2015
MAC Address Switcher v1.1.0
View mac-switch.sh
#!/bin/bash
# MAC Address Switcher v1.1.0
# Written by lesander - http://github.com/lesander
# Licensed under GPLv3
# Tested on Ubuntu 14.04
# - Set MAC addresses and settings.
address1=""
address2=""
@lesander
lesander / hash.php
Created May 18, 2014
Hash password securely with sha512, salt and a secret key
View hash.php
<?php
// Hash file using sha512, salt and a secret key.
// By github.com/lesander
// DON'T FORGET TO EDIT YOUR $secretkey !!!
// - Hashing your Password -
// Example 1 Request:
// http://domain.com/hash.php?s=myPassword
// Example 1 Result:
You can’t perform that action at this time.