Skip to content

Instantly share code, notes, and snippets.

View yokawasa's full-sized avatar
:octocat:
debugging

Yoichi Kawasaki yokawasa

:octocat:
debugging
View GitHub Profile
@yokawasa
yokawasa / ghq-tips.md
Last active July 7, 2024 17:37
ghq tips

ghq tips

setup

# install 
brew install ghq

# set ghq root dir
git config --global ghq.root '~/dev/ghq'
@yokawasa
yokawasa / notion-tips.md
Created January 2, 2023 14:47
Notion Tips

Notion Tips

Commands

Open New Windows

  • MacOS: shift + cmd + n
  • Windows: shift + ctrl + n

Switch Between Windows

@yokawasa
yokawasa / running-postgres-client.md
Created September 7, 2022 11:03
Running Postgres Client in Kubernetes

First, create postgresql-client pod

cat << EOF | kubectl apply -f - 
---
apiVersion: v1
kind: Namespace
metadata:
  name: postgresql-client

---
@yokawasa
yokawasa / sysbench-mysql.md
Last active June 20, 2025 16:43
Benchmarking MySQL using Sysbench

Benchmarking MySQL using Sysbench

Setup and Start MySQL on MacOS

brew update
brew install mysql

# start mysql
mysql.server start
@yokawasa
yokawasa / java-jps.md
Last active August 15, 2022 05:06
Java Virtual Machine Process Status Tool (jps)
@yokawasa
yokawasa / iterm2.md
Created July 2, 2022 09:44
iTerm2 Configuration

Configure Transparency in Window Apperance

Preference > Profile > Window > Window Apperance Screen Shot 2022-07-02 at 18 39 55

Disable Beep sound

Preference > Profile > Terminal > Silence Bell Screen Shot 2022-07-02 at 18 40 09

@yokawasa
yokawasa / jfrog-setup.md
Created May 27, 2022 04:13
Scanning and detecting vulnerabilities with JFrog

Scanning and detecting vulnerabilities with JFrog

Here is how to start JFrog scanning with JFrog VS Code extension

  1. Install JFrog extension for VSCode - JFrog extension for VS Code IDE

  2. Setup FREE JFrog environment in the cloud and connect VS Code to it

For MacOS and Linux

@yokawasa
yokawasa / docker-cheat-sheet.md
Last active June 6, 2025 03:57
Docker Cheat Sheet

Images manipulation

Build an image

docker build <OPTIONS> <PATH|URL|->

# you can omit "." if a relevant Dockerfile is in the current dir "."
docker build -t <name>
docker build -t :
@yokawasa
yokawasa / describe-dyamodb-stream.go
Last active May 30, 2022 14:57
Go SDK sample for DynamoDB Stream
package main
// ref
// https://github.com/urakozz/go-dynamodb-stream-subscriber
// https://github.com/aws/aws-sdk-go-v2
/*
aws cli for dynamodb stream info
# Get the full ARN for DynamoDB Streams