Skip to content

Instantly share code, notes, and snippets.

View kevinrodriguez-io's full-sized avatar
🚰
Be water

Kevin kevinrodriguez-io

🚰
Be water
View GitHub Profile
@crypt0miester
crypt0miester / sol_devnet_airdroper.sh
Created January 25, 2023 13:26
solana devnet airdropper. airdrops 199.991 sols to the receiver address.
#!/bin/bash
# Airdrop amount
amount=2
# Number of addresses to generate
num_addresses=10
# Address to transfer all tokens to
receiver_address="CHANGE ME"
@Jomy10
Jomy10 / rust_in_swift.md
Last active July 15, 2026 18:49
Calling Rust library from Swift code (creating executable)

Calling a Rust library from Swift

This gist shows a quick overview of calling Rust in a Swift project, with Swift Package Manager configured.

Let's go ahead and create a folder containing all our sources:

mkdir swift-rs && cd $_
@getify
getify / simplest-monad.js
Last active July 20, 2022 19:18
what's the simplest monad implementation we could express in JS?
function Identity(v) {
return { val: v };
}
function chain(m,fn) {
return fn(m.val);
}
// ^^^ that's it!
function createWrappedSolAccount(){
const balanceNeeded = await Token.getMinBalanceRentForExemptAccount(connection,);
// Create a new account
const newAccount = Keypair.generate(); //todo this is not an associated token account????
const transaction = new Transaction();
transaction.add(
SystemProgram.createAccount({
fromPubkey: wallet?.publicKey as PublicKey,
newAccountPubkey: newAccount.publicKey,
lamports: balanceNeeded,
@witmin
witmin / ffmpeg-mp4-to-animated-webp.md
Last active June 24, 2026 22:49
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation:

@kevinrodriguez-io
kevinrodriguez-io / 1.dependencies.sh
Last active January 20, 2020 04:26
You can use the following hook to upload images, encode them and correct their orientation.
yarn add blueimp-load-image
@kevinrodriguez-io
kevinrodriguez-io / docker-compose.yaml
Created August 27, 2019 19:36
docker-compose file for wordpress stack
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: PASSWORD_HERE
@kevinrodriguez-io
kevinrodriguez-io / eslint-prettier-ts-react-setup.conf
Created July 29, 2019 07:23
NextJS / React ESLINT + TS + PRETTIER SETUP
// .eslintrc.js
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'react-app',
'plugin:prettier/recommended',
],
@kevinrodriguez-io
kevinrodriguez-io / colors.js
Created July 22, 2019 06:42
Colors picked from iOS Chameleon Framework
const colors = {
flatRed: {
light: '#E74C3C',
dark: '#C0392C',
},
flatOrange: {
light: '##E67E23',
dark: '#D35400',
},
flatYellow: {
@sarahsturgeon
sarahsturgeon / bis.md
Last active May 30, 2026 06:20
World of Warcraft 3.3.5a Warmane Complete PvE BiS (Best In Slot) List