Skip to content

Instantly share code, notes, and snippets.

View qrg's full-sized avatar
🏠
Working from home

Qurage qrg

🏠
Working from home
View GitHub Profile
# remove greeting message
set fish_greeting
# show cwd as full path in a prompt
set --global --export fish_prompt_pwd_dir_length 0
# enviroment variables
# ------------------------------------------------------------------------------
set --global --export LANG 'ja_JP.UTF-8'
set --global --export LESSCHARSET utf-8
const { ENV_VAR_1, ENV_VAR_2, ENV_VAR_3 } = process.env;
const filterUndefinedVars = (vars: {
[variableName: string]: any;
}): string[] => {
return Object.entries(vars)
.filter(([_k, v]) => typeof v === 'undefined')
.map(([variableName]) => variableName);
};
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will

Webpack

Plugins

  • extract-text-webpack-plugin
    • bundle から テキストを抽出して別ファイルとして書き出す
      • module.rules で指定した拡張子のファイルのバンドルに対して ExtractTextPlugin.extract() で抽出する
      • 書き出すファイルは pluginsnew ExtractTextPlugin('styles.css') のように指定する
  • webpack.DllPlugin
  • 開発時のビルド速度を改善するために使う

Webpack

Plugins

  • extract-text-webpack-plugin
    • bundle から テキストを抽出して別ファイルとして書き出す
      • module.rules で指定した拡張子のファイルのバンドルに対して ExtractTextPlugin.extract() で抽出する
      • 書き出すファイルは pluginsnew ExtractTextPlugin('styles.css') のように指定する
  • webpack.DllPlugin
  • 開発時のビルド速度を改善するために使う
#!/usr/bin/env fish
echo \nfisher
fisher
echo \nz --clean
z --clean

karabiner-elements

Install

ln -Fisv ~/webstorage/Dropbox/preferences/karabiner ~/.config/karabiner

Key names

@qrg
qrg / keyboard-numa.md
Created June 7, 2020 07:31
2018年頃にキーボード沼をみにいったときのメモです

ちょっとキーボード沼見てくる

キーボード自作の流れが楽しそうだなーと思いながら眺めているだけだったけど、そろそろちょっとずつ調べていきたいなと思った。

よくみかける

おおまかに次のような小さいはやりの流れがあるのを見た

(話題になってるのを自分がみかけた順であって、リリース順とかではない)

// https://github.com/zeit/next.js/blob/42cff0a09c4ae42016500b1797ae4f0bd8438e88/packages/next-bundle-analyzer/index.js
module.exports = ({ enabled = true } = {}) => (nextConfig = {}) => {
return Object.assign({}, nextConfig, {
webpack (config, options) {
if (enabled) {
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'static',
reportFilename: options.isServer ? '../analyze/server.html' : './analyze/client.html'

Keybase proof

I hereby claim:

  • I am qrg on github.
  • I am qurage (https://keybase.io/qurage) on keybase.
  • I have a public key ASDCatDJQ8N2siCV85GREHFyksQFy4lzb0LztVVh1eQw8wo

To claim this, I am signing this object: