Skip to content

Instantly share code, notes, and snippets.

import express from 'express';
import { ApolloServer, gql } from 'apollo-server-express';
import { Neo4jGraphQL } from "@neo4j/graphql";
import cors from 'cors';
import neo4j from 'neo4j-driver';
const app = express();
const corsOptions = {
origin: '*',
# 1. Use the Iron Bank Neo4j 4.4.12 base image
FROM registry1.dso.mil/ironbank/opensource/neo4j/neo4j:4.4.12
# 2. Set Neo4j credentials
ENV NEO4J_AUTH=neo4j/testMe1234!
# (Optional) If you want APOC automatically:
# ENV NEO4JLABS_PLUGINS='["apoc"]'
# 3. Expose ports (only documents them; no volumes used)
version: '3'
services:
api:
build: api/
command: node server.js
ports:
- "4000:4000"
- "8085:8085"
# Uses the node base image with the latest LTS version
FROM registry1.dso.mil/ironbank/opensource/nodejs/debian/nodejs:18.19.1
RUN mkdir -p /home/node/app
WORKDIR /home/node/app
COPY package.json /home/node/app/
USER node
COPY --chown=node:node server.js /home/node/app/
TThread.CreateAnonymousThread(procedure ()
var
I: Integer;
begin
TThread.Synchronize(nil,
procedure
begin
{ Update UI components at begining }
end
@an01f01
an01f01 / rabbitmq-docker-compose.yaml
Last active February 26, 2025 22:09
Docker compose for a rabbitmq Docker image
version: "3.7"
services:
rabbitmqqtt:
build: rabbitmq/
ports:
- "5672:5672" # AMQP port
- "1883:1883" # MQTT port
- "15672:15672" # Management UI port
volumes:
@an01f01
an01f01 / Dockerfile
Last active February 26, 2025 22:10
RabbitMQ Docker File
# Use the official RabbitMQ image as the base image
FROM rabbitmq:latest
# Set environment variables for configuration
ENV RABBITMQ_DEFAULT_USER=utest
ENV RABBITMQ_DEFAULT_PASS=test1234
# Add labels for better maintainability
LABEL version="1.0"
LABEL description="Dockerfile for running RabbitMQ"
unit AsyncThread;
interface
uses
{Delphi}
System.SysUtils
{Project}
;
unit PlatformColorMode;
interface
uses
FMX.Platform
{$IFDEF MSWINDOWS}
, System.SysUtils, System.Win.Registry, Winapi.Windows
{$ENDIF}
;
procedure TFrmMain.OnPyModuleLoad(Sender: TObject);
begin
with Sender as TPythonModule do
begin
AddDelphiMethod( 'printme',
ConsoleModule_Print,
'printme(handle,val1,val2,val3)');
end;
end;