Skip to content

Instantly share code, notes, and snippets.

View carljdp's full-sized avatar
🇿🇦
Always learning..

Carl J du Preez carljdp

🇿🇦
Always learning..
View GitHub Profile
@carljdp
carljdp / D1 Mini ESP8266.md
Last active October 1, 2024 06:59
Getting started with the D1 mini (ESP8266)

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:

@carljdp
carljdp / Relay 4 channel 5V.md
Last active October 28, 2017 08:17
Relay 4 channel 5V
@carljdp
carljdp / OLED 0.96" Display I2C Interface White.md
Created October 27, 2017 17:27
OLED 0.96" Display I2C Interface White
@carljdp
carljdp / Temperature Sensor - 18B20 - 1M Lead.md
Created October 27, 2017 17:30
Temperature Sensor - 18B20 - 1M Lead
@carljdp
carljdp / JS Snippets
Last active November 17, 2017 13:09
Revive Adserver Tests
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="//ads.ultimateaim.co.za/www/delivery/asyncjs.php"></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='//ads.ultimateaim.co.za/www/delivery/asyncjs.php')
@carljdp
carljdp / Android Tools for Meteor.md
Last active May 15, 2019 16:31
Installing Android Tools for Meteor
@carljdp
carljdp / meteorDevHelpers.js
Created February 13, 2018 13:42
Get Meteor server URL/IP when serving or testing from localhost
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
carljdp / clean-host.sh
Last active April 23, 2018 11:40
Docker Installation Scripts
#!/bin/bash
# Removes all Docker cintainers, images, and Docker itself.
# see http://blog.baudson.de/blog/stop-and-remove-all-docker-containers-and-images
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
carljdp / README.md
Created July 27, 2023 01:04
@carljdp's Github Profile Page