This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Sample code of Node.js | |
* Make mp3 file hash(MD5) | |
* (Of Course when not file type of mp3 also ok!) | |
*/ | |
const crypto = require('crypto'); | |
const md5hex = async filepath => { | |
const md5hash = crypto.createHash('md5'); | |
md5hash.update(filepath, 'binary'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""" | |
" プラグインセットアップ | |
" (Qiitaの記事内で記述した.vimrc) | |
" | |
" URL: | |
" https://qiita.com/shinshin86/items/eb41e4fb513bb4d3e3cd | |
" | |
" インストール(curl使用): | |
" curl --output ~/.vimrc https://gist.githubusercontent.com/shinshin86/b1437d59c9228852354da0c5a8fdac64/raw/5e735502dd7b986be699c5ca29dbc8119b179420/qiita-2018-12-14.vimrc | |
"""""""""""""""""""""""""""""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""" | |
" vimrc-202005 | |
" (require: vim-plug, fzf) | |
" see: https://gist.github.com/shinshin86/17fe2e40529f6244f17d32ed2e0aeec3 | |
" | |
" Install(Using curl): | |
" curl --output ~/.vimrc {this gist raw url} | |
"""""""""""""""""""""""""""""" | |
call plug#begin('~/.vim/plugged') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################## | |
# Default settings for my prettier | |
################## | |
# Install prettier | |
```sh | |
yarn add --dev prettier | |
``` | |
# Add npm command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ------------------- | |
" Basic settings | |
" ------------------- | |
" The indentation of the new line, the same as the current line. | |
set autoindent | |
" To specify a directory of backup files. | |
set backupdir=$HOME/vimbackup | |
" To work the clipboard and Windows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Sakila Sample Database: https://dev.mysql.com/doc/sakila/en/ | |
# Use Repository: https://github.com/budougumi0617/mysql-sakila | |
git clone https://github.com/budougumi0617/mysql-sakila.git | |
# Use version of 5.7 | |
cd mysql-sakila/5.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# svg to png (Only available on macOS) | |
qlmanage -t -o ./ {target svg filename} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo du -g -x -d 5 ~/ | awk '$1 >= 5{print}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pages/_document.tsx | |
// And setup to next.config.js ↓↓↓ | |
/* | |
module.exports = { | |
publicRuntimeConfig: { | |
TRACKING_ID: process.env.TRACKING_ID || '', | |
}, | |
serverRuntimeConfig: { | |
TRACKING_ID: process.env.TRACKING_ID || '', | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://api.github.com/users/shinshin86/repos?sort=created | jq -r '.[] | { full_name: .full_name, created_at: .created_at, url: .html_url}' |