Skip to content

Instantly share code, notes, and snippets.

View crisog's full-sized avatar
⛓️
Building

CrisOG crisog

⛓️
Building
View GitHub Profile
@crisog
crisog / .env
Created October 14, 2023 13:34 — forked from Layoric/.env
Files used for GitHub Action Docker Deployment via SSH to stand alone Linux server
# Autogenerated .env file
HOST_DOMAIN=web.web-templates.io
[email protected]
APP_NAME=web
IMAGE_REPO=netcoretemplates/web
RELEASE_VERSION=latest
@crisog
crisog / .deploy\nginx-proxy-compose.yml
Created October 14, 2023 12:58 — forked from gistlyn/.deploy\nginx-proxy-compose.yml
Files used for GitHub Action Docker Deployment via SSH to stand alone Linux server
version: "3.9"
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
@crisog
crisog / docker-compose.prod.yml
Created October 14, 2023 12:46 — forked from gistlyn/docker-compose.prod.yml
Files used for GitHub Action Docker Deployment via SSH to stand alone Linux server
version: "3.9"
services:
app:
image: ghcr.io/${IMAGE_REPO}:${RELEASE_VERSION}
restart: always
ports: !reset ["80"]
container_name: ${IMAGE_REPO}-app
environment:
VIRTUAL_HOST: ${HOST_DOMAIN}
LETSENCRYPT_HOST: ${HOST_DOMAIN}
@crisog
crisog / nginx-reverse-proxy.yml
Created October 14, 2023 12:42 — forked from Layoric/nginx-reverse-proxy.yml
Docker compose for Nginx Reverse Proxy and Lets Encrypt Companion
version: "3.9"
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
sudo chmod 666 /var/run/docker.sock
import { Pocket, HttpRpcProvider, RpcError, JailedStatus, StakingStatus } from '@pokt-network/pocket-js';
import axios, { AxiosResponse } from 'axios';
const DISPATCH_URL = new URL("https://mainnet-1.nodes.pokt.network:4201")
const POCKET_RPC_URL = new URL("https://mainnet-1.nodes.pokt.network:4201")
async function main() {
const pocket = new Pocket([DISPATCH_URL], new HttpRpcProvider(POCKET_RPC_URL))
const queryNodesResponse = await pocket?.rpc()?.query.getNodes(StakingStatus.Staked, JailedStatus.NA, 74060n, "", 1, 30000, 60000, true)
@crisog
crisog / aws-ec2-redis-cli.md
Created July 15, 2022 03:26 — forked from todgru/aws-ec2-redis-cli.md
AWS redis-cli on EC2
function isHex(str) {
return /^[A-F0-9]+$/i.test(str)
}
@crisog
crisog / logs.txt
Created September 22, 2020 20:38
Multi-token AMB Bridge Extension
Bridge mode: MULTI_AMB_ERC_TO_ERC
[Home] Deploying Bridge Mediator storage
pending txHash 0xea0284c23078dbb3aa8c351546eea6e84a403a0543dcf9bb2446b126e144e767
[Home] Bridge Mediator Storage: 0x920D59E4F79478D8A188b6736333535c765d50cd
[Home] Deploying Bridge Mediator implementation
pending txHash 0x8de2b923c19a97d3dfeb4a6747b6946b2a16d438b9ee873deb4841560cf3fa4b
@crisog
crisog / logs.txt
Created September 18, 2020 10:34
AMB Contracts - IDChain <-> Mainnet
Bridge mode: ARBITRARY_MESSAGE
========================================
Deploying Arbitrary Message Bridge at Home
========================================
deploying storage for home validators
pending txHash 0x25de1b0afaf8672a30d3c43109057fc79f4a83c6920d86829aa7b15ae8cd688b
[Home] BridgeValidators Storage: 0x965769C9CeA8A7667246058504dcdcDb1E2975A5
deploying implementation for home validators