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
@XueshiQiao
XueshiQiao / gource.sh
Last active November 10, 2019 15:56 — forked from cgoldberg/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
@nijicha
nijicha / install_nodejs_and_yarn_homebrew.md
Last active June 20, 2024 13:06
Install NVM, Node.js, Yarn via Homebrew
@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
@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
@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: {
@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 / 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 / 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
@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:

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,