Skip to content

Instantly share code, notes, and snippets.

View jasonseparovic's full-sized avatar

Jason jasonseparovic

  • us-west-2
  • 07:43 (UTC -07:00)
View GitHub Profile
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTokenAccountsByOwner",
"params": [
"3vorE98S5Wi4kDAxUoxnLSwvF34L1Ph3rMc1N5CC3asH",
{
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
{
Solana {
BalanceUpdates(
where: {BalanceUpdate: {Account: {Owner: {is: "42Ej8W75Nppau3emKAjxXB8UgBuQvPK1tERNJ9vezM4M"}}}}
) {
BalanceUpdate {
Account {
Owner
}
AmountInUSD
@jasonseparovic
jasonseparovic / gist:559b023e0bfb4b0d9c022f1647a40a80
Last active November 4, 2024 04:28
Solana Balance TjCZGWnVCroSwQrfKRRpSKE3g5aoBudCjCUFhPUNbWP
{
Solana {
BalanceUpdates(
where: {BalanceUpdate: {Account: {Owner: {is: "TjCZGWnVCroSwQrfKRRpSKE3g5aoBudCjCUFhPUNbWP"}}}}
) {
BalanceUpdate {
Account {
Owner
}
AmountInUSD
This file has been truncated, but you can view the full file.
1.242 seconds ago
{
"Solana": {
"DEXTrades": [
{
"Block": {
"Height": "277769586",
"Time": "2024-11-02T23:03:45Z"
},
"Trade": {
@jasonseparovic
jasonseparovic / Dockerfile
Created August 29, 2023 06:45
nginx-certbot with fancyindex
FROM jonasal/nginx-certbot:4.3.0-nginx1.25.2 AS builder
ENV NGINX_VERSION 1.25.2
ENV FANCY_INDEX_VERSION 0.5.2
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
gnupg1 \
ca-certificates \
gcc \
libc-dev \
@jasonseparovic
jasonseparovic / systemd_service_restart_forever.service
Created January 26, 2023 01:32
This systemd service configuration will ensure that your service will attempt to restart your service FOREVER instead of the systemd default of 5 failed retries within 10 seconds and then giving up forever.
# This systemd service configuration will ensure that your service will
# attempt to restart your service FOREVER instead of the systemd default
# of 5 failed retries within 10 seconds and then giving up forever.
[Unit]
Description=MY AMAZING SERVICE
After=multi-user.target
# NOTES ABOUT THE StartLimitBurst OPTION:
# systemd default is StartLimitBurst=5 (give up after 5 failed attempts)
@jasonseparovic
jasonseparovic / TransformDateTime.java
Last active November 8, 2022 00:26
Kafka Connect transforms mysql datetime(6) - microsecond precision
package io.raasify.kafka.connect.transform.datetime;
import org.apache.kafka.common.cache.Cache;
import org.apache.kafka.common.cache.LRUCache;
import org.apache.kafka.common.cache.SynchronizedCache;
import org.apache.kafka.common.config.ConfigDef;
import org.apache.kafka.connect.connector.ConnectRecord;
import org.apache.kafka.connect.data.Field;
import org.apache.kafka.connect.data.Schema;
@jasonseparovic
jasonseparovic / all_email_provider_domains.txt
Created April 12, 2022 22:27 — forked from ammarshah/all_email_provider_domains.txt
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org