Skip to content

Instantly share code, notes, and snippets.

View dacoffey's full-sized avatar
😎
BLAZING FAST!! 😂

David Adam Coffey dacoffey

😎
BLAZING FAST!! 😂
View GitHub Profile
@dacoffey
dacoffey / CLOCK.h
Created September 20, 2022 20:23
ESPHOME: AdaFruit LED Backpack Integration: ht16k33
#include <Adafruit_LEDBackpack.h>
Adafruit_7segment LEDSEG;
esphome::time::ESPTime DTNOW;
char DTSTR[17];
time_t DT;
@dacoffey
dacoffey / app.js
Created March 23, 2021 05:58
NODE: Bare Minimum Web Server
require('http').createServer((req,res)=>{ res.writeHead(200); res.end('HELLOWORLD'); }).listen(80,'0.0.0.0');
@dacoffey
dacoffey / git-undo.sh
Last active April 11, 2021 06:17
GIT: Undo Last Commit
git reset HEAD~1
@dacoffey
dacoffey / settings.json
Last active August 26, 2021 13:53
VSCODE: Colors
"editor.tokenColorCustomizations": { "comments": "#c0c0c0" }
"workbench.colorCustomizations": {
"terminal.foreground" : "#ffffff",
"terminal.background" : "#000000",
"terminal.ansiRed": "#ff8888",
"terminal.ansiBrightBlack": "#aaaaaa"
}
@dacoffey
dacoffey / dnsmasq.conf
Last active March 17, 2021 02:48
DNSMASQ: Block HIBP API HX Home Assistant
address=/api.pwnedpasswords.com/
@ThePredators
ThePredators / readme-mde.md
Last active March 12, 2024 19:29
Setup Mobile Development Environment

⭐ Setup Mobile Development Environment

⚠️ The following configuration has been tested on Intel, M1 & M2 Ships ⚠️

Pre-requisit :

If you have any issues with macOS, or need anything related to it check this documentation

Install Xcode Command Line tools :

@brgaulin
brgaulin / Readme.md
Last active January 13, 2024 11:48
ESP32-S2 Keyboard on Arduino
@ianfinch
ianfinch / rpi4-usb.sh
Last active March 5, 2024 17:55
Raspberry Pi 4 USB Gadget
#!/bin/bash
# Set up a Raspberry Pi 4 as a USB-C Ethernet Gadget
# Based on:
# - https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/
# - https://pastebin.com/VtAusEmf
if ! $(grep -q dtoverlay=dwc2 /boot/config.txt) ; then
echo "Add the line dtoverlay=dwc2 to /boot/config.txt"
exit
fi
@nhtua
nhtua / 00.install-android-sdk.sh
Last active March 23, 2024 20:36
Run a Headless Android Device on Ubuntu server (no GUI)
#!/bin/bash -i
#using shebang with -i to enable interactive mode (auto load .bashrc)
set -e #stop immediately if any error happens
# Install Open SDK
apt update
apt install openjdk-8-jdk -y
update-java-alternatives --set java-1.8.0-openjdk-amd64
java -version
@Jiab77
Jiab77 / ntopng-install-on-ubuntu-server-18.04.md
Last active October 16, 2022 05:06
Ntop-ng Install on Ubuntu Server 18.04 (written for Raspberry Pi but can be used on any other platforms)

Ntop-ng Install on Ubuntu Server 18.04

Instructions are written for Raspberry Pi but can be used on any other platforms.

As there is no pre-built packages for ARM platforms I've found some packages but you might have no other choices than do the compilation yourself... 😅

Pre-Built packages

I've finally been able to get the hand on their pre-built packages... I've just read too fast their documentation... :face_palm:

You could find their packages here: http://packages.ntop.org/