Skip to content

Instantly share code, notes, and snippets.

View crisog's full-sized avatar
⛓️
Building

CrisOG crisog

⛓️
Building
View GitHub Profile
@crisog
crisog / k9s.txt
Created February 14, 2025 20:13 — forked from BigNerd/k9s.txt
K9s column descriptions
View: Pods(<namespace>)[number of pods listed]
NAME pod name
READY number of pods in ready state / number of pods to be in ready state
RESTARTS number of times the pod has been restarted so far
STATUS state of the pod life cycle, such as Running | ... | Completed
CPU current CPU usage, unit is milli-vCPU
MEM current main memory usage, unit is MiB
%CPU/R current CPU usage as a percentage of what has been requested by the pod
%MEM/R current main memory usage as a percentage of what has been requested by the pod
@crisog
crisog / CFG.html
Created January 14, 2025 01:49 — forked from tresf/CFG.html
FGL Printing Examples
<F3>
<RC10,10>Serial Number = <VA1>
<RC60,10>Firmware = <VA7>
<RC110,10>Special Head = <VA18>
<RC160,10>Font File = <VA2>
<RC210,10>Printer Type = <VA11>
<RC260,10>DPI = <VA17>
<RC310,10>Expansion Mem = <VA50>
<RC360,10>Path Type = <VA19>
<RC410,10>Ticket Type = <VA13>
@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)
}