Skip to content

Instantly share code, notes, and snippets.


Rob Dunham Nilpo

View GitHub Profile
Nilpo / git-pushing-multiple.rst
Created Feb 2, 2019 — forked from KJoke70/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.
View git-pushing-multiple.rst

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

Nilpo /
Created Apr 24, 2019 — forked from Chaser324/
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

Nilpo / Autoloader.php
Last active Nov 11, 2019
A simple recursive PHP autoloader using the RecursiveDirectoryIterator.
View Autoloader.php
* The MIT License (MIT)
* Copyright (c) 2014 Rob Dunham
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Nilpo /
Created Oct 26, 2019 — forked from triple-j/
Download file through HTTP using and tqdm
import os.path
from urllib.request import urlopen
import requests
from tqdm import tqdm
def download_from_url(url, dst):
@param: url to download file
@param: dst place to put the file
Nilpo / animated-favicons.js
Created Oct 11, 2019
Animating Favicons with jQuery
View animated-favicons.js
var favicon_images = [
image_counter = 0; // To keep track of the current image
Nilpo / Raspberry Pi Plex Media
Last active Jun 26, 2019
Install Plex on Raspbian Stretch for Raspberry Pi 3
View Raspberry Pi Plex Media
  1. In terminal, upgrade Raspbian.

    sudo apt update && sudo apt dist-upgrade -y
  2. Next, use the raspi-config tool to change some default system settings.

    sudo raspi-config
Nilpo /
Last active May 8, 2019 — forked from bgrainger/
BibleWorks Hebrew Mapping Table
Nilpo / Installing node via windows subsystem for linux

Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL)

Windows just released the windows subsystem for linux feature to the public with its latest windows fall creator update, if you are not familiar with this feature it allows you to run linux binaries natively on windows - F.A.Q.

Enabling WSL

The feature is not enabled by default and you need to activate it, you can do it via powershell (with admin rights):

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Or you can open: Control-Panel -> Programs -> Turn Windows feature on ro off, and click the "windows subsystem for linux (beta)" button.

Nilpo /
Created Apr 1, 2019 — forked from rkristelijn/
Installing node via windows subsystem for linux


Below is a comparison from one of the resources I used. I don't think the comparison is done using the same hardware, but the big take away is that Windows without WSL is a no-go, and Windows WSL underperforms for Linux on bare metal and even Virtual Linux on a Windows Guest. I still have to do this comparison myself using my Udoo with dualboot.

System Performance
Mac Mini 2012 Core i5 10GB RAM 217.6 sec
Windows WSL 335 sec
Linux Mint Bare Metal 182.4 sec
VirtualBox 124 sec
You can’t perform that action at this time.