Skip to content

Instantly share code, notes, and snippets.

View kevinrodriguez-io's full-sized avatar
🌎
To control your destiny start by controlling yourself

Kevin Rodríguez kevinrodriguez-io

🌎
To control your destiny start by controlling yourself
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"
@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 November 5, 2024 20:50
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: {
@brandonsturgeon
brandonsturgeon / bis.md
Last active October 23, 2024 20:26
World of Warcraft 3.3.5a Warmane Complete PvE BiS (Best In Slot) List
@azanium
azanium / jwtRS512.sh
Last active May 15, 2024 18:03 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS512 key
ssh-keygen -t rsa -b 4096 -e SHA512 -f jwtRS512.key
# Don't add passphrase
openssl rsa -in jwtRS512.key -pubout -outform PEM -out jwtRS512.key.pub
cat jwtRS512.key
cat jwtRS512.key.pub