Skip to content

Instantly share code, notes, and snippets.

View isman-usoh's full-sized avatar
🏠
Working from home

Isman Usoh isman-usoh

🏠
Working from home
View GitHub Profile

Nginx ingress

Add Helm Repo

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update

Install

aws-load-balancer-controller

Add Helm Repo

helm repo add eks https://aws.github.io/eks-charts
helm repo update

Prerequest

[Unit]
Description=Geth Archive Node
After=network.target auditd.service
Wants=network.target
[Service]
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment NODE_NAME=$(hostname -s) && /usr/bin/systemctl set-environment PRIVATE_IP=$(hostname -i)"
ExecStart=/usr/bin/geth --identity "${NODE_NAME}" --ethstats "${NODE_NAME}:helloWorld@10.104.8.107:3000" --config /bkc-node/mainnet/config.toml --cache 10240 --txlookuplimit 0 --syncmode full --snapshot=true --gcmode=archive --nat extip:${PRIVATE_IP}
User=root
Group=root
@isman-usoh
isman-usoh / README.md
Last active October 4, 2023 05:33
Testnet

Helloworld

[Eth]
NetworkId = 96
SyncMode = "full"
NoPruning = false
NoPrefetch = false
LightPeers = 100
UltraLightFraction = 75
DatabaseCache = 1024
DatabaseFreezer = ""
TrieCleanCache = 1024
export interface Question {
id: string
title: string
categoryId: string
order: number
}
// Collection(name=uppeople_quizzes)
export interface Quiz {
id: string
@isman-usoh
isman-usoh / firebase.json
Created August 4, 2019 11:32
Firebase next.js SSR
// firebase.json
{
"functions": {
"source": "functions"
},
"hosting": {
"public": "public",
"rewrites": [
{
"source": "**",
// ./next.config.js
module.exports = {
distDir: './functions/next'
}
// ./functions/index.js
const functions = require('firebase-functions');
const next = require('next')
const app = next({ dev: false, conf: { distDir: "next" } })
const handle = app.getRequestHandler()
exports.nextApp = functions.https.onRequest((request, response) => {
console.log("[Function] RequestUrl", request.originalUrl)
return app.prepare().then(() => handle(request, response))
})
@isman-usoh
isman-usoh / firebase-nextjs-preact.js
Last active August 4, 2019 09:42
Firebase next.js SSR
/// ./pages/preact.js
import React from 'react'
import Link from 'next/link'
import 'isomorphic-unfetch'
export default class Preact extends React.Component {
static async getInitialProps () {
// eslint-disable-next-line no-undef
const res = await fetch('https://api.github.com/repos/developit/preact')
const json = await res.json()