Skip to content

Instantly share code, notes, and snippets.

View limone-eth's full-sized avatar

limone.eth limone-eth

View GitHub Profile
@limone-eth
limone-eth / gist:15fa907a02e2c1f1158b9cbdbac3c15c
Created December 17, 2023 11:00
Alchemy Webhook - Tracking Uniswap Pool events
# With Alchemy GraphQL Webhooks you can ingest real-time updates for every block
# in a reliable, scalable, and secure way!
#
# If you're new to GraphQL, this editor has autocomplete enabled and will magically
# suggest fields as you start typing. If you get lost, you can always search the
# available queries in the docs tab on the right!
#
# To get you started, here's a GraphQL query that will get you all log events for
# every new block. Each log also includes a full transaction receipt!
#
@limone-eth
limone-eth / docker-compose.yml
Last active October 16, 2020 08:07
docker-compose file for Medium article
version: '3.7'
services:
nodejs:
image: localhost:5000/docker-zero-downtime-deployment
ports:
- "3000:3000"
command: node index.js
deploy:
replicas: 4
@limone-eth
limone-eth / Dockerfile
Created October 14, 2020 13:30
Dockerfile for Medium Tutorial
FROM node:12
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package*.json ./
RUN npm install
'use strict';
const os = require('os');
const express = require('express');
// Constants
const PORT = 3000;
const HOST = '0.0.0.0';
// App
const app = express();