Skip to content

Instantly share code, notes, and snippets.

View ddewaele's full-sized avatar

Davy De Waele ddewaele

View GitHub Profile
#!/bin/bash
# Fail early if AWS credentials are missing or invalid
if ! aws sts get-caller-identity >/dev/null 2>&1; then
echo "❌ AWS credentials not found or invalid. Please configure them using 'aws configure' or your SSO/profile setup."
exit 1
fi
echo "Fetching ECS clusters and services..."
@ddewaele
ddewaele / nifi.service
Created January 29, 2017 19:09
Nifi systemd service defintiion
[centos@ip-172-30-0-249 system]$ cat /etc/systemd/system/nifi.service
[Unit]
Description=Apache NiFi
After=network.target
[Service]
Type=forking
User=nifi
Group=nifi
ExecStart=/opt/nifi-latest/bin/nifi.sh start
@ddewaele
ddewaele / index.js
Created October 7, 2023 18:27
NodeJS MQTT Proxy
const mqtt = require('mqtt');
const fs = require('fs');
// Source broker details
const sourceBrokerUrl = "mqtts://somebroker.com";
const sourceOptions = {
port: 8883,
ca: [fs.readFileSync('/home/ubuntu/keys/server/server.crt')],
key: fs.readFileSync('/home/ubuntu/keys/client.key'),
cert: fs.readFileSync('/home/ubuntu/keys/client.crt'),
@ddewaele
ddewaele / edison-output.txt
Last active September 21, 2022 23:56
Edison Linux boot output
******************************
PSH KERNEL VERSION: b0182727
WR: 20104000
******************************
SCU IPC: 0x800000d0 0xfffce92c
PSH miaHOB version: TNG.B0.VVBD.0000000c
microkernel built 23:15:13 Apr 24 2014
@ddewaele
ddewaele / aws-mounting.md
Last active October 31, 2020 02:16
AWS Mounting
sudo lsblk --output NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,LABEL

NAME    TYPE SIZE FSTYPE MOUNTPOINT LABEL
xvda    disk   8G                   
└─xvda1 part   8G xfs    /          
xvdf    disk  30G                   
└─xvdf1 part  30G xfs             
@ddewaele
ddewaele / edison-blinking-led.md
Last active June 21, 2019 12:51
Intel Edison blinking LED
@ddewaele
ddewaele / aks-ssh.yml
Last active July 7, 2018 08:25
Azure Kubernetes Ingress Files
apiVersion: v1
kind: Service
metadata:
name: aks-ssh
spec:
selector:
app: aks-ssh
type: LoadBalancer
ports:
- protocol: TCP
@ddewaele
ddewaele / adafruit-config.txt
Created April 25, 2018 12:48
AdaFruit BLE Friend
ATI
BLEFRIEND32
nRF51822 QFACA10
33BB824D91D1F092
0.6.2
0.6.2
Apr 30 2015
S110 8.0.0, 0.2
OK
@ddewaele
ddewaele / reactjs-notes.md
Last active February 6, 2018 19:15
ReactJS Notes
@ddewaele
ddewaele / multitech-output.txt
Last active October 30, 2017 19:19
MultiTech firmware upgrade
Files are on my mac tftp server
ls -ltr /private/tftpboot/oe_rootfs.jffs2
-rwxrwxrwx 1 root wheel 65788832 Oct 30 19:46 /private/tftpboot/oe_rootfs.jffs2
ls -ltr /private/tftpboot/oe_uImage.bin
-rwxrwxrwx 1 root wheel 2801179 Oct 30 19:46 /private/tftpboot/oe_uImage.bin
Setting uboot variables via sample script (http://git.multitech.net/cgi-bin/cgit.cgi/meta-multitech.git/plain/contrib/uboot-setenv-mtcdt.minicom)