Skip to content

Instantly share code, notes, and snippets.

View rizalgowandy's full-sized avatar
🎧
Focusing

Rizal Gowandy rizalgowandy

🎧
Focusing
View GitHub Profile
@rizalgowandy
rizalgowandy / eslint_prettier_airbnb.md
Created December 28, 2019 13:50 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@rizalgowandy
rizalgowandy / docker-help.md
Created December 28, 2019 13:51 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

redis-cli keys "*" > keys
cat keys | xargs -n 1 -L 1 redis-cli ttl > ttl
paste -d " " keys ttl | grep .*-1$ | cut -d " " -f 1 > without_ttl
# We can create a script for deleting the keys
cat without_ttl | awk '{print "redis-cli del "$1}' > redis.sh
@rizalgowandy
rizalgowandy / psql_get_table_schema.sql
Created May 3, 2020 10:15
PostgreSQL Get Table Schema
select nsp.nspname as object_schema,
cls.relname as object_name,
rol.rolname as owner,
case cls.relkind
when 'r' then 'TABLE'
when 'm' then 'MATERIALIZED_VIEW'
when 'i' then 'INDEX'
when 'S' then 'SEQUENCE'
when 'v' then 'VIEW'
when 'c' then 'TYPE'
package main
import (
"net/http"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
_ "github.com/rizalgowandy/go-swag-sample/docs/echosimple" ### replace line with your own path
echoSwagger "github.com/swaggo/echo-swagger"
)
@rizalgowandy
rizalgowandy / gist:064c977223a0072a1eb54c97ebf9cee7
Created July 18, 2020 13:23 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@rizalgowandy
rizalgowandy / result.txt
Last active April 24, 2021 11:33
Fastest Redis Client Library forΒ Go
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ GET β”‚ iteration β”‚ ns/op β”‚ B/op β”‚ allocs/op β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ gomodule/redigo-pool:100 β”‚ 3750 β”‚ 2581283 β”‚ 11564 β”‚ 65 β”‚
β”‚ go-redis/redis/v8-pool:100 β”‚ 15184 β”‚ 83180 β”‚ 389 β”‚ 9 β”‚
β”‚ mediocregopher/radix/v3-pool:100 β”‚ 13754 β”‚ 91094 β”‚ 618 β”‚ 16 β”‚
β”‚ joomcode/redispipe-pool:100 β”‚ 1687 β”‚ 1381936 β”‚ 808 β”‚ 30 β”‚
β”‚ go-redis/redis/v8/cluster-pool:100 β”‚ 80394 β”‚ 89093 β”‚ 229 β”‚ 8 β”‚
β”‚ mediocregopher/radix/v3/cluster-pool:100 β”‚ 73596 β”‚ 99571 β”‚ 311 β”‚ 9 β”‚