Skip to content

Instantly share code, notes, and snippets.

View jmikedupont2's full-sized avatar
😀
Thanks for the follows! Have a nice day.

Mike DuPont jmikedupont2

😀
Thanks for the follows! Have a nice day.
View GitHub Profile
inner: [
"/usr/local/bin/agave-validator",
"--identity",
"/data/validator-keypair.json",
"--known-validator",
"7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2",
"--known-validator",
"GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ",
"--known-validator",
"DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ",
@iamvon
iamvon / deploy-an-open-clockwork-worker.md
Last active May 22, 2025 23:11
Deploy an Open Clockwork worker

Prerequisites

Solana

Go here to install Solana.

Deploy an Open Clockwork worker

1. Download and install the Open Clockwork Geyser plugin

@FounderDAO
FounderDAO / gist:a615b3d875430788c3ea5c12353783cf
Created January 27, 2024 18:06
SOLANA AND JITO RELAYER
# RELAYER SERVICE
[Unit]
Description=Solana transaction relayer
#Requires=network-online.target chrony.service
After=network-online.target
StartLimitIntervalSec=0
ConditionPathExists=/root/solana/relayer-keypair.json
ConditionPathExists=/root/solana/private.pem
ConditionPathExists=/root/solana/public.pem
@kinoc
kinoc / llama4openai-api.py
Created March 24, 2023 22:35
Flask based endpoint to emulate OpenAI API enpoints using llama/alpaca and HF models
# a simple Flask API to emulate OpenAI's using llama models and/or transformers
# runs on 3080
import sys
import time
import torch
import json
from peft import PeftModel
from flask import Flask, make_response, request, abort
[2022-07-23T17:17:37.975415248Z INFO solana_validator] solana-validator 1.10.31 (src:77a40cd8; feat:4192065167)
[2022-07-23T17:17:37.975464778Z INFO solana_validator] Starting validator with: ArgsOs {
inner: [
"solana-validator",
"--gossip-port",
"8001",
"--dynamic-port-range",
@mcarilli
mcarilli / nsight.sh
Last active July 8, 2025 06:40
Favorite nsight systems profiling commands for Pytorch scripts
# This isn't supposed to run as a bash script, i named it with ".sh" for syntax highlighting.
# https://developer.nvidia.com/nsight-systems
# https://docs.nvidia.com/nsight-systems/profiling/index.html
# My preferred nsys (command line executable used to create profiles) commands
#
# In your script, write
# torch.cuda.nvtx.range_push("region name")
# ...
@adam-hanna
adam-hanna / systemd-cloudwatch-logs-tutorial.md
Last active June 3, 2025 21:33
Forward systemd service logs to AWS Cloudwatch

Introduction

I often find myself ssh'ing into my servers and checking my systemd service logs with $ journalctl -f -u {name}.service. One day I got tired of this and wanted all of my important logs in once place (Amazon AWS Cloudwatch). To my dismay, there weren't any real good tutorials on how to do so. So, voilà.

Steps

Overall, it's a fairly simple process consisting of the following few steps.

1. Modify the service file

Open the service file with $ sudo vi /lib/systemd/system/{name}.service

Modify the [Service] section:

@mcarilli
mcarilli / commands.md
Last active June 11, 2024 20:13
Single- and multiprocess profiling workflow with nvprof and NVVP (Nsight Systems coming soon...)

Ordinary launch commands (no profiling):

Single-process:

python main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/

Multi-process:

python -m torch.distributed.launch  --nproc_per_node=2 main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/
@apokalyptik
apokalyptik / debian-jessie-kubernetes-1.3-manual-install-guide.md
Last active November 21, 2023 12:31
Set up Kubernetes on 3 Debian Jessie virtual machines -- No magic

The Goal

Set up Kubernetes on 3 Debian Jessie virtual machines: One master. Two nodes. Additionally do this without any "magic" so that what is required to be running to make everything work is plain and obvious.

We will be using flannel for the inter-machine networking layer. Mainly because it is useful and it seems to be pretty popular.

The Setup

@paladini
paladini / The HEX and RGB code for the Bitcoin orange color
Last active November 21, 2024 04:55
The HEX / RGB code for the orange color from Bitcoin logo
Do you want know what's the orange color from Bitcoin logo? Here's the colours:
Hexadecimal:
#FF9900
RGB
(255,153,0)
Any suggestions are welcome!
Fonts: http://www.color-hex.com/color/ff9900 and https://bitcointalk.org/index.php?topic=224522.0