Skip to content

Instantly share code, notes, and snippets.

View alistairhenderson's full-sized avatar

Alistair Henderson alistairhenderson

View GitHub Profile
@alistairhenderson
alistairhenderson / json
Last active August 1, 2023 09:15
Example Node-Red Sparkplugb MQTT read
[
{
"id": "943c3fea54fbba52",
"type": "tab",
"label": "get-test-flow",
"disabled": false,
"info": "",
"env": []
},
{
@alistairhenderson
alistairhenderson / json
Created August 1, 2023 09:05
Example Node-red Sparkplub MQTT write
[
{
"id": "7b0afdd8dfe283b2",
"type": "tab",
"label": "put-Test-Flow",
"disabled": false,
"info": "",
"env": []
},
{
@alistairhenderson
alistairhenderson / json
Created July 25, 2023 14:05
create remote server date get and MariaDB insert
[
{
"id": "4857a264a8d2ea44",
"type": "tab",
"label": "Sync Server Time",
"disabled": false,
"info": "",
"env": []
},
{
@alistairhenderson
alistairhenderson / json
Last active August 1, 2023 09:02
This will create a Node-Red flow. The information for this can be seen at https://open-source.blog/2023/07/21/getting-node-red-ready-for-aws-s3-access/
[
{
"id": "2dd7c4b1fdb409ab",
"type": "tab",
"label": "Sync Files to S3",
"disabled": false,
"info": "# USE\r\nThis syncs all of the Live_data files every 30 minutes to the S3 bucket",
"env": []
},
{
@alistairhenderson
alistairhenderson / createcertificate
Last active November 19, 2021 02:11
Create Wildcard self signed certificate
#!/bin/bash
read -p "Enter the domain name: " domainname
read -p "Enter the domain e.g. local not .local: " domain
read -p "Enter country for csr:" country
read -p "Enter county for csr:" county
read -p "Enter city for csr:" city
read -p "Enter company name for csr:" company
read -p "Enter department for csr e.g IT:" department
read -p "Enter password for certificate greater than 5 characters:" PASS
read -p "Enter howmany years for the certificate to last:" certyears
@alistairhenderson
alistairhenderson / PentahoTraceDebugTransformation
Created February 10, 2016 16:02
Pentaho Trace Debug Transformation
<?xml version="1.0" encoding="UTF-8"?>
<transformation-steps>
<steps>
<step>
<name>Mapping Input</name>
<type>MappingInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
@alistairhenderson
alistairhenderson / PentahoCallGenericLogging.xml
Created February 10, 2016 15:52
Pentaho Call Generic Logging
<?xml version="1.0" encoding="UTF-8"?>
<transformation-steps>
<steps>
<step>
<name>Trace Debug</name>
<type>SimpleMapping</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
@alistairhenderson
alistairhenderson / tomcat
Last active February 3, 2016 13:37
Startup script for Tomcat 6.0 for project.net installation
#!/bin/sh
#
# Startup script for Tomcat 6.0, the Apache Servlet Engine
#
# chkconfig: - 80 20
# description: Tomcat 6
# processname: tomcat
# pidfile: /var/run/tomcat6.pid
# config:
#
@alistairhenderson
alistairhenderson / catalina.sh
Last active February 3, 2016 11:44
catalina.sh for the project.net software
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@alistairhenderson
alistairhenderson / fcgio.h.patch
Created February 2, 2016 15:24
Patch file for fixing fcgio.cpp:50: error: 'EOF' was not declared in this scope
--- fcgio.h 2016-02-02 14:44:41.303164708 +0000
+++ fcgio.h_chg 2016-02-02 14:49:05.053189399 +0000
@@ -31,7 +31,7 @@
#define FCGIO_H
#include <iostream>
-
+#include <stdio.h>
#include "fcgiapp.h"