Skip to content

Instantly share code, notes, and snippets.

View richardokonicha's full-sized avatar
:octocat:
learning to ask the right questions

r.e.e.c.h.e.e richardokonicha

:octocat:
learning to ask the right questions
View GitHub Profile
@richardokonicha
richardokonicha / rescue-tokens.ts
Created July 11, 2024 17:42 — forked from ezynda3/rescue-tokens.ts
Flashbots Rescue Tokens
import { ethers, providers, Wallet, utils, Transaction } from "ethers";
import {
FlashbotsBundleProvider,
FlashbotsBundleResolution,
} from "@flashbots/ethers-provider-bundle";
import { exit } from "process";
const FLASHBOTS_URL = "https://relay-goerli.flashbots.net";
const TOKEN_ADDRESS = "0x4E5d67a73bdb6BF68fADa7BDD7F455A7aA02C8ab";
@richardokonicha
richardokonicha / rescue-tokens.ts
Created July 11, 2024 17:42 — forked from ezynda3/rescue-tokens.ts
Flashbots Rescue Tokens
import { ethers, providers, Wallet, utils, Transaction } from "ethers";
import {
FlashbotsBundleProvider,
FlashbotsBundleResolution,
} from "@flashbots/ethers-provider-bundle";
import { exit } from "process";
const FLASHBOTS_URL = "https://relay-goerli.flashbots.net";
const TOKEN_ADDRESS = "0x4E5d67a73bdb6BF68fADa7BDD7F455A7aA02C8ab";
@richardokonicha
richardokonicha / builder.docker-compose.yml
Created August 10, 2023 03:01
docker compose for coolify v4
version: '3'
services:
coolify-builder:
image: ghcr.io/coollabsio/coolify-builder
volumes:
- /data/coolify/source:/data/coolify/source
- /var/run/docker.sock:/var/run/docker.sock
environment:
- LATEST_IMAGE=${LATEST_IMAGE:-}
# Add your environment variables here
@richardokonicha
richardokonicha / TorusKnot-webgl
Last active January 25, 2022 12:28
Torus Knot rendered with threejs
<main>
<h1>This is a Torus Knot rendered on the browser with the help of WebGL
</h1>
</main>
@richardokonicha
richardokonicha / App.js
Created January 20, 2021 12:26
React Amplify minimal custom authentication flow
// import logo from './logo.svg';
import './App.css';
import React, { useEffect, useState } from 'react'
// import Routes from './router/Routes'
import { Auth, Hub } from 'aws-amplify'
const initialFormState = {
username: '',
password: '',
email: '',
@richardokonicha
richardokonicha / file.py
Created July 14, 2020 13:07
Package and import all files from directory
import importdir
importdir.do("features", globals())
<?php
/**
* Customer completed order email
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-completed-order.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@richardokonicha
richardokonicha / template-telebot.py
Created June 30, 2020 16:12
A Telegram bot flask template - webhook, getMessage, Debug setu
import telebot
import os
from config import *
from flask import Flask, request
server = Flask(__name__)
@server.route('/'+ TOKEN, methods=['POST'])
def getMessage():
request_object = request.stream.read().decode("utf-8")
@richardokonicha
richardokonicha / template-telebot.py
Created June 30, 2020 16:12
A Telegram bot flask template - webhook, getMessage, Debug setu
import telebot
import os
from config import *
from flask import Flask, request
server = Flask(__name__)
@server.route('/'+ TOKEN, methods=['POST'])
def getMessage():
request_object = request.stream.read().decode("utf-8")
@richardokonicha
richardokonicha / Home.vue
Created November 11, 2019 09:14
A vue js component to demostrate the power of v-for and flex box. Try adding another "0" in 100 and watch it crash your pc.
<template>
<v-container>
<v-row v-for="j in 100" :key="j" :class="j === 1 ? '' : 'mt-6'" no-gutters>
<v-col v-for="i in j + 1" :key="i">
<v-card class="pa-5" outlined>
{{ i }} of {{j + 1 }}
</v-card>
</v-col>
</v-row>
</v-container>