Skip to content

Instantly share code, notes, and snippets.

@keidarcy
Last active April 3, 2020 12:55
Show Gist options
  • Save keidarcy/2d49f466a29ce53db0a607566733f15c to your computer and use it in GitHub Desktop.
Save keidarcy/2d49f466a29ce53db0a607566733f15c to your computer and use it in GitHub Desktop.
Mac Settings
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier/react",
"plugin:node/recommended"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"rules": {
"no-console": "off",
"no-process-exit": "off",
"func-names": "off",
"prettier/prettier": "error",
"jsx-a11y/href-no-hash": ["off"],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"max-len": [
"warn",
{
"code": 80,
"tabWidth": 2,
"comments": 80,
"ignoreComments": false,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
]
}
}
{
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all"
}
#!/usr/bin/env sh
# Install Homebrew (https://brew.sh/)
brew help || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install cmatrix # Terminal based "The Matrix" like implementation (https://github.com/abishekvashok/cmatrix)
brew install cowsay # Let the cow talk (https://github.com/schacon/cowsay)
brew install figlet # FIGlet is a program for making large letters out of ordinary text (http://www.figlet.org/)
brew install fortune # Fortune CLI (https://gist.github.com/zlorb/4a3eff8981fcec8ca1c7)
brew install htop # Htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top' (https://github.com/hishamhm/htop)
brew install lolcat # Rainbows and unicorns (https://github.com/busyloop/lolcat)
brew install terminal-notifier # Send User Notifications on macOS from the command-line (https://github.com/julienXX/terminal-notifier)
brew install tmux # tmux source code (https://github.com/tmux/tmux)
brew install zsh # Zsh is a shell designed for interactive use (http://www.zsh.org/)
brew cask install google-chrome # Google Chrome Browser (https://www.google.com/intl/en_in/chrome/)
#brew cask install graphiql # GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools (https://github.com/graphql/graphiql)
#brew cask install hyper # A terminal built on web technologies (https://github.com/zeit/hyper)
#brew cask install keycastr # KeyCastr, an open-source keystroke visualizer (https://github.com/keycastr/keycastr)
#brew cask install motrix # A full-featured download manager (https://github.com/agalwood/Motrix)
#brew cask install qutebrowser # A keyboard-driven, vim-like browser based on PyQt5 (https://github.com/qutebrowser/qutebrowser)
#brew cask install typora # Markdown Reader (https://github.com/typora/)
#brew cask install vlc # VLC media player (https://github.com/videolan/vlc)
#brew cask install vscodium # Binary releases of VS Code without MS branding/telemetry/licensing (https://github.com/VSCodium/vscodium)
#brew install php@7.3; brew install libidn2; brew install libpsl; # The PHP Interpreter (https://github.com/php/php-src)
#brew tap heroku/brew && brew install heroku # Heroku CLI (https://github.com/heroku/cli)
#brew tap homebrew/cask-fonts # Cask of Fonts (https://github.com/Homebrew/homebrew-cask-fonts)
#brew cask install font-fira-code # Monospaced font with programming ligatures (https://github.com/tonsky/FiraCode)
#brew cask install font-fontawesome # The iconic SVG, font, and CSS toolkit (https://github.com/FortAwesome/Font-Awesome)
terminal-notifier -title 'Installing' -message 'Brew apps have been installed.'
# Cleanup for Homebrew (https://brew.sh/)
brew cleanup
terminal-notifier -title 'Installing' -message 'Brew has been cleaned.'

System

  • Keyboard -> Modififer Keys -> Caps Lock -> Escape

Apps

iterm2

  • Preferences->Profiles->General->Reuse previous session's directory
  • Preferences->General->Window->Native full screen windows
  • General->Status Bar
  • General->Theme->Mimimal

Alfred

Better Touch Tool

TablePlus

Visual Studio Code

HyperSwitch

Google Chrome

Docker

<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => array('syntax' => 'short'),
'combine_consecutive_unsets' => true,
'method_separation' => true,
'no_multiline_whitespace_before_semicolons' => true,
'single_quote' => true,
'binary_operator_spaces' => array(
'align_double_arrow' => false,
'align_equals' => false,
),
// 'blank_line_after_opening_tag' => true,
// 'blank_line_before_return' => true,
'braces' => array(
'allow_single_line_closure' => true,
),
// 'cast_spaces' => true,
// 'class_definition' => array('singleLine' => true),
'concat_space' => array('spacing' => 'one'),
'declare_equal_normalize' => true,
'function_typehint_space' => true,
'hash_to_slash_comment' => true,
'include' => true,
'lowercase_cast' => true,
// 'native_function_casing' => true,
// 'new_with_braces' => true,
// 'no_blank_lines_after_class_opening' => true,
// 'no_blank_lines_after_phpdoc' => true,
// 'no_empty_comment' => true,
// 'no_empty_phpdoc' => true,
// 'no_empty_statement' => true,
'no_extra_consecutive_blank_lines' => array(
'curly_brace_block',
'extra',
'parenthesis_brace_block',
'square_brace_block',
'throw',
'use',
),
// 'no_leading_import_slash' => true,
// 'no_leading_namespace_whitespace' => true,
// 'no_mixed_echo_print' => array('use' => 'echo'),
'no_multiline_whitespace_around_double_arrow' => true,
// 'no_short_bool_cast' => true,
// 'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_around_offset' => true,
// 'no_trailing_comma_in_list_call' => true,
// 'no_trailing_comma_in_singleline_array' => true,
// 'no_unneeded_control_parentheses' => true,
// 'no_unused_imports' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
// 'normalize_index_brace' => true,
'object_operator_without_whitespace' => true,
// 'php_unit_fqcn_annotation' => true,
// 'phpdoc_align' => true,
// 'phpdoc_annotation_without_dot' => true,
// 'phpdoc_indent' => true,
// 'phpdoc_inline_tag' => true,
// 'phpdoc_no_access' => true,
// 'phpdoc_no_alias_tag' => true,
// 'phpdoc_no_empty_return' => true,
// 'phpdoc_no_package' => true,
// 'phpdoc_no_useless_inheritdoc' => true,
// 'phpdoc_return_self_reference' => true,
// 'phpdoc_scalar' => true,
// 'phpdoc_separation' => true,
// 'phpdoc_single_line_var_spacing' => true,
// 'phpdoc_summary' => true,
// 'phpdoc_to_comment' => true,
// 'phpdoc_trim' => true,
// 'phpdoc_types' => true,
// 'phpdoc_var_without_name' => true,
// 'pre_increment' => true,
// 'return_type_declaration' => true,
// 'self_accessor' => true,
// 'short_scalar_cast' => true,
'single_blank_line_before_namespace' => true,
// 'single_class_element_per_statement' => true,
// 'space_after_semicolon' => true,
// 'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
// 'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
))
//->setIndent("\t")
->setLineEnding("\n")
;
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+cmd+e",
"command": "workbench.extensions.action.openExtensionsFolder"
},
{
"key": "shift+alt+enter",
"command": "editor.action.showContextMenu",
"when": "textInputFocus"
},
{
"key": "shift+f10",
"command": "-editor.action.showContextMenu",
"when": "textInputFocus"
},
{
"key": "cmd+i",
"command": "expandLineSelection",
"when": "textInputFocus"
},
{
"key": "cmd+l",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{
"key": "cmd+]",
"command": "workbench.action.nextEditor"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.nextEditor"
},
{
"key": "cmd+[",
"command": "workbench.action.previousEditor"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.previousEditor"
},
{
"key": "cmd+1",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+q cmd+q",
"command": "workbench.action.quit"
},
{
"key": "cmd+q",
"command": "-workbench.action.quit"
},
{
"key": "cmd+2",
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "cmd+o cmd+o",
"command": "editor.action.smartSelect.grow"
},
{
"key": "cmd+p",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "cmd+g cmd+g",
"command": "git-graph.view"
},
{
"key": "ctrl+shift+cmd+a",
"command": "workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "ctrl+shift+cmd+a",
"command": "workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+cmd+a",
"command": "workbench.action.debug.restart",
"when": "inDebugMode"
},
{
"key": "shift+cmd+f5",
"command": "-workbench.action.debug.restart",
"when": "inDebugMode"
}
]
{
// ============================
// common setting
// ============================
"workbench.colorTheme": "Palenight Operator",
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 13,
"editor.fontWeight": "500",
"terminal.integrated.fontSize": 14,
"terminal.integrated.fontWeight": "500",
// "editor.fontFamily": "Source Code Pro, Monaco, 'Courier New', monospace",
"editor.fontFamily": "Operator Mono, Monaco, 'Courier New', monospace",
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.parameterHints.enabled": false,
"editor.lightbulb.enabled": true,
"editor.minimap.enabled": false,
"window.zoomLevel": 2,
// "window.titleBarStyle":"native",
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"liveServer.settings.donotShowInfoMsg": true,
"git.autofetch": true,
//"emmet.triggerExpansionOnTab": true, // enable tab to expanse emmet tags
"blade.format.enable": true, // if you would like to enable blade format
"explorer.openEditors.visible": 0,
"workbench.editor.showTabs": false,
"workbench.sideBar.location": "right",
"workbench.activityBar.visible": true,
"problems.showCurrentInStatus": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"zenMode.hideLineNumbers": false,
"diffEditor.maxComputationTime": 0,
"search.useIgnoreFiles": false, // enable vscode to search gitignored files like in vendor/ or node_modules/ folder
"editor.suggestSelection": "first",
"python.jediEnabled": false,
"python.dataScience.sendSelectionToInteractiveWindow": false,
"intelephense.diagnostics.undefinedSymbols": false,
"sync.gist": "470a34e531e3e0d4c2c5c2b54ceb7f3c",
//========================================
// Javascript
//========================================
"[javascript]": {
"editor.tabSize": 2
},
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
"vetur.format.options.tabSize": 2,
"vetur.format.defaultFormatter.js": "prettier",
"vetur.format.defaultFormatter.css": "prettier",
"vetur.format.defaultFormatter.less": "prettier",
"vetur.format.defaultFormatter.postcss": "prettier",
"vetur.format.defaultFormatter.scss": "prettier",
"vetur.format.defaultFormatter.stylus": "stylus-supremacy",
"vetur.format.defaultFormatter.ts": "prettier",
"vetur.validation.style": true,
"vetur.validation.template": false,
"vetur.format.options.useTabs": false,
"vetur.format.defaultFormatter.html": "none",
"prettier.singleQuote": true,
// "prettier.useTabs": true,
"importCost.typescriptExtensions": ["\\.vue?$"],
"importCost.javascriptExtensions": ["\\.vue?$"],
"eslint.validate": ["javascript", "javascriptreact", "vue"],
//========================================================================
// PHP
//========================================================================
"[php]": {
"editor.defaultFormatter": "junstyle.php-cs-fixer",
"editor.tabSize": 4
},
"php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar",
"php-cs-fixer.lastDownload": 1583412226044,
"php-cs-fixer.onsave": true,
"php-cs-fixer.config": "/Users/xyh/.vscode/.php_cs",
//========================================================================
// Langs
//========================================================================
"[markdown]": {
"files.trimTrailingWhitespace": true,
"editor.tabSize": 2
},
"[yaml]": {
"editor.tabSize": 2
},
//========================================================================
//VIM
//========================================================================
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
],
"vim.handleKeys": {
"<C-d>": true
},
"vim.statusBarColorControl": true,
"vim.statusBarColors.normal": ["#161821", "#818596"],
"vim.statusBarColors.insert": ["#84A0C6", "#161821"],
"vim.statusBarColors.visual": ["#B4BE82", "#161821"],
"vim.statusBarColors.visualline": ["#B4BE82", "#161821"],
"vim.statusBarColors.visualblock": ["#B4BE82", "#161821"],
"vim.statusBarColors.replace": ["#E2A478", "#161821"],
"vim.statusBarColors.commandlineinprogress": ["#818596", "#161821"],
"vim.statusBarColors.searchinprogressmode": ["#818596", "#161821"],
"vim.statusBarColors.easymotionmode": ["#818596", "#161821"],
"vim.statusBarColors.easymotioninputmode": ["#818596", "#161821"],
"vim.statusBarColors.surroundinputmode": ["#818596", "#161821"],
"vim.highlightedyank.enable": true, //yankした箇所をハイライト表示にする
"vim.highlightedyank.color": "rgba(0, 240, 170, 0.5)", //yankした時の色
"vim.highlightedyank.duration": 1500, //yankした時の色の表示時間
"vim.leader": "<comma>", //Map Leaderの設定
"vim.autoindent": true, //autoindent
"vim.useSystemClipboard": true, //system clipboardと同期する
"vim.hlsearch": true, //hlserch
"vim.visualstar": true, //カーソル上にあるワードを"*"で検索
"vim.useCtrlKeys": true, //諸々のctrlキーを使った操作が有効になる
"vim.debug.silent": true, //アラートを出さない
"vim.timeout": 1200, //入力のタイムアウト時間
"workbench.colorCustomizations": {
"statusBar.background": "#B4BE82",
"statusBar.noFolderBackground": "#B4BE82",
"statusBar.debuggingBackground": "#B4BE82",
"statusBar.foreground": "#161821"
},
// vim plugin有効化
"vim.easymotion": true, //easy motionを有効化
"vim.surround": true, //surroundを有効にする
//easy motion
"vim.easymotionMarkerForegroundColorOneChar": "rgba(0,240,170,0.9)", //一文字目の色
"vim.easymotionMarkerForegroundColorTwoChar": "rgba(0,240,170,0.9)", //二文字目の色
"vim.easymotionMarkerBackgroundColor": "", //背景色
"vim.easymotionMarkerWidthPerChar": 19, //各文字に割り当てられている幅
"vim.easymotionMarkerHeight": 1, //マーカーの高さ
"vim.easymotionMarkerFontFamily": "Cica", //フォント
"vim.easymotionMarkerFontSize": "12.5", //フォントサイズ
"vim.easymotionMarkerFontWeight": "normal", //フォントの太さ
"vim.easymotionKeys": "asdfhjklwqeruioopghty;", //マーカーに使用される文字列
"vim.easymotionMarkerYOffset": 13.5,
"material-icon-theme.opacity": null //高さのずれ修正
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment