Skip to content

Instantly share code, notes, and snippets.

Always learning..

Carl J du Preez carljdp

Always learning..
View GitHub Profile
carljdp /
Last active Apr 23, 2018
Docker Installation Scripts
# Removes all Docker cintainers, images, and Docker itself.
# see
echo "Removing all containers and images.."
sudo docker stop $(sudo docker ps -aq)
sudo docker rm $(sudo docker ps -aq)
sudo docker rmi $(sudo docker images -q)
carljdp / meteorDevHelpers.js
Created Feb 13, 2018
Get Meteor server URL/IP when serving or testing from localhost
View meteorDevHelpers.js
import { Meteor } from 'meteor/meteor';
import os from 'os';
// If this were production env var ROOT_URL would have had a value
let rootUrl = Meteor.absoluteUrl();
if ((Meteor.isDevelopment) && (rootUrl === 'http://localhost:3000/')) {
rootUrl = _getServerUrlFromOs();
function _getServerUrlFromOs() {
carljdp / Android Tools for
Last active May 15, 2019
Installing Android Tools for Meteor
View Android Tools for
carljdp / JS Snippets
Last active Nov 17, 2017
Revive Adserver Tests
View JS Snippets
Profile Sponsor snippet: Oversized on purpose to observe behaviour
<!-- Revive Adserver Asynchronous JS Tag - Generated with Revive Adserver v4.1.1 -->
<ins data-revive-zoneid="5" data-revive-id="0d09779faf0e727ed2fa5a8af943194d"></ins>
<script async src="//"></script>
// Revive Adserver Asynchronous JS Tag - Generated with Revive Adserver v4.1.1
ins(data-revive-zoneid='5', data-revive-id='0d09779faf0e727ed2fa5a8af943194d')
script(async='', src='//')
carljdp / D1 Mini
Last active Apr 4, 2022
Getting started with the D1 mini (ESP8266)
View D1 Mini

D1 Mini (ESP8266)

Wesmos D1 Mini

1. Getting Started

1.1. Install the IDE:

In any web browser:

  • From the Arduino website, download & install the latest Arduino IDE (v1.8 or later). Available for Windows, Mac, Linux & ARM.

1.2. Add the ESP8266 module libraries: