Skip to content

Instantly share code, notes, and snippets.

✂️
Yak Shaving

Tatsuya Itakura itkrt2y

✂️
Yak Shaving
View GitHub Profile
@itkrt2y
itkrt2y / docker-compose.yml
Created Dec 4, 2019
Docker / MySQL (utf8mb4)
View docker-compose.yml
version: "3"
services:
db:
image: mysql:5.7
container_name: sample-db
ports:
- 3344:3306
volumes:
- ./db/mysql:/var/lib/mysql
@itkrt2y
itkrt2y / open-pull-request
Created Nov 29, 2019
Open Pull Request associated with a commit id
View open-pull-request
#!/bin/sh
# Required: hub, jq
commit=$1
pr=$(hub api graphql -F query="
{
repository(name: \"{repo}\", owner: \"{owner}\") {
commit: object(expression: \"$commit\") {
... on Commit {
@itkrt2y
itkrt2y / .eslintrc.js
Last active Jun 21, 2020
VSCode + TypeScript + ESLint + Prettier + React
View .eslintrc.js
module.exports = {
env: { browser: true, node: true },
parser: '@typescript-eslint/parser',
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
@itkrt2y
itkrt2y / manjaro-gnome.md
Last active Jun 21, 2020
Setup Manjaro Linux (Gnome)
View manjaro-gnome.md

Firewall

Open 'Firewall Configuration' app and enable firewall.

CPU undervolt

yay -S intel-undervolt
sudo vim /etc/intel-undevolt.conf
# CPU / CPU Cache => -90
View gnome-terminal-profile.dconf
[/]
audible-bell=false
background-color='rgb(15,15,15)'
bold-is-bright=false
default-size-columns=80
default-size-rows=50
palette=['rgb(0,0,0)', 'rgb(205,0,0)', 'rgb(0,205,0)', 'rgb(205,205,0)', 'rgb(30,144,255)', 'rgb(205,0,205)', 'rgb(0,205,205)', 'rgb(229,229,229)', 'rgb(127,127,127)', 'rgb(255,0,0)', 'rgb(0,255,0)', 'rgb(255,255,0)', 'rgb(72,111,213)', 'rgb(255,0,255)', 'rgb(0,255,255)', 'rgb(255,255,255)']
visible-name='manjaro-custom'
@itkrt2y
itkrt2y / rails_https.md
Created Sep 21, 2018
Rails Local Development over HTTPS
View rails_https.md
@itkrt2y
itkrt2y / scrap-amazon-book.js
Last active Apr 8, 2018
Amazon商品ページの本の情報をScrapboxに記録する
View scrap-amazon-book.js
const title = (document.querySelector("#productTitle") || document.querySelector("#ebooksProductTitle")).innerText;
let body = '[amazon ' + window.location.href + ']\n';
const orderContainer = (document.querySelector("#instantOrderUpdate") || document.querySelector("#ebooksInstantOrderUpdate"));
if (orderContainer) {
const year = new RegExp(/\d{4}/).exec(orderContainer.innerText)[0];
const year_month = new RegExp(/\d{4}\/\d{1,2}/).exec(orderContainer.innerText)[0];
body = body + 'Ordered: [' + year + '], [' + year_month + ']\n';
}
You can’t perform that action at this time.