Skip to content

Instantly share code, notes, and snippets.

View tamakiii's full-sized avatar

Daichi Tamaki tamakiii

  • undefined
  • Shibuya, Tokyo, Japan
  • X @tamakiii
View GitHub Profile
@tamakiii
tamakiii / README.md
Created February 4, 2018 11:23
OpenGL Keyboard
@tamakiii
tamakiii / README.md
Created February 4, 2018 12:53
OpenGL GLM
@tamakiii
tamakiii / script.sh
Last active November 2, 2023 15:52
[WIP] ECS register task definition script (update images with specific :tag)
#!/usr/bin/env bash
export VERBOSE=false
export DRYRUN=false
export HELP=false
export AWS_REGION=
export AWS_PROFILE=
export AWS_DEBUG=
# declare -x DESIRED_COUNT=false
@tamakiii
tamakiii / mac-memo.sh
Last active April 20, 2018 07:02
MacOS memo
# Check what MacOS error means
# @link https://discussions.apple.com/thread/7705551
security error -67062
# grep | less with color
grep -Ri --color=always ... | less -R
# NOTE: This seems to be not work well
# # Remove ec2 rows from ~/.ssh/known_hosts
# # (Because of `ECDSA host key for example.com has changed and you have requested strict checking.`)
@tamakiii
tamakiii / .zshrc
Last active August 19, 2018 13:23
Fix "(eval):setopt:3: no such option: NO_warnnestedvar" with Zsh
We couldn’t find that file to show.
# List help
tmux list-keys
# Find help from binding
tmux list-keys | grep 'prefix' | grep 'C-s'
# Show key-table, key command etc.
tmux list-keys | awk '{print $1}' | sort | uniq
tmux list-keys | awk '{print $2}' | sort | uniq
...
# reset submodule's diffs like `modified: .fzf (new commits)`
# @link https://stackoverflow.com/questions/10906554/how-do-i-revert-my-changes-to-a-git-submodule
git submodule update --init
# Get current branch
# @link https://man.openbsd.org/sed.1#SED_REGULAR_EXPRESSIONS
# > One special feature of sed regular expressions is that they can default to the last regular expression used.
# > If a regular expression is empty, i.e., just the delimiter characters are specified, the last regular expression
# > encountered is used instead. The last regular expression is defined as the last regular expression used as part of
# > an address or substitute command, and at run-time, not compile-time. For example, the command “/abc/s//XXX/” will
@tamakiii
tamakiii / README.md
Last active June 23, 2021 23:36
MySQL Docker: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
$ docker-compose exec service mysql -u root -p -e "SELECT @@global.secure_file_priv;"
Enter password:
+---------------------------+
| @@global.secure_file_priv |
+---------------------------+
| /var/lib/mysql-files/ |