Skip to content

Instantly share code, notes, and snippets.

@sprout2000
sprout2000 / pallete.sh
Last active August 17, 2024 14:05
256色のカラーパレットを表示する - bash と zsh にて実行可能
#!/bin/sh
#
# 256色のカラーパレットを表示する
# bash と zsh にて実行可能
#
target_shell=$1
if [ -z "$1" ]; then
target_shell=$(basename "$SHELL")
@sprout2000
sprout2000 / keybindings.json
Last active February 19, 2022 07:30
VSCode Keybindings for Ubuntu Linux.
[
{
"key": "ctrl+;",
"command": "workbench.action.terminal.focus",
"when": "editorTextFocus"
},
{
"key": "ctrl+;",
"command": "workbench.action.focusFirstEditorGroup",
"when": "terminalFocus"
@sprout2000
sprout2000 / settings.json
Created February 19, 2022 07:28
VSCode for Ubuntu Linux
{
"editor.bracketPairColorization.enabled": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "'Cascadia Code', 'Ricty Diminished', 'Droid Sans Mono', 'monospace', monospace",
"editor.formatOnSave": true,
"editor.guides.bracketPairs": true,
"editor.insertSpaces": true,
@sprout2000
sprout2000 / uninstall-pkg.sh
Created June 9, 2021 04:14
macOS でインストールした pkg をアンインストール
#!/bin/bash
package_id=$1
rm-pkg-files() {
while read line; do
file="/${line}"
if [ -f "$file" ]; then
rm "$file"
elif [ -d "$file" ]; then
@sprout2000
sprout2000 / browser-language-codes.js
Last active September 1, 2021 23:28 — forked from wpsmith/browser-language-codes.js
JS: Object of Browser Language Codes
// <![CDATA[
var langCodes = {
"af": "Afrikaans",
"sq": "Albanian",
"an": "Aragonese",
"ar": "Arabic (Standard)",
"ar-dz": "Arabic (Algeria)",
"ar-bh": "Arabic (Bahrain)",
"ar-eg": "Arabic (Egypt)",
"ar-iq": "Arabic (Iraq)",
@sprout2000
sprout2000 / keybindings.json
Last active September 1, 2021 23:26
統合ターミナルウィンドウへフォーカスするショートカットキーを設定する
[
{
"key": "ctrl+;",
"command": "workbench.action.terminal.focus",
"when": "editorTextFocus"
},
{
"key": "ctrl+;",
"command": "workbench.action.focusFirstEditorGroup",
"when": "terminalFocus"
@sprout2000
sprout2000 / DefaultKeyBinding.dict
Last active September 1, 2021 23:27 — forked from yujiod/DefaultKeyBinding.dict
Macの英数入力で円記号とバックスラッシュを入れ替える(ATOKにも対応) ~/Library/KeyBindings/DefaultKeyBinding.dict
{
"¥" = ("insertText:", "\\");
"~\\" = ("insertText:", "¥");
}