Skip to content

Instantly share code, notes, and snippets.

@rem 「※※※」は私のコメントです(元増田のコメントではありません)
@rem エクスプローラ周り重い人向け覚書
@rem https://anond.hatelabo.jp/20191116220232
@rem ■ システム設定
@rem Windows Defender自身を検索して無限ループに陥る問題を解消する
@rem - 設定→更新とセキュリティ→Windows セキュリティ→ウイルスの驚異の防止
@rem - ウイルスと驚異の防止の設定→設定の管理
" hook_add {{{
call extend(g:vimrc_altercmd_dic, #{
\ gin: 'Gin',
\ })
nnoremap <Space>gbr <Cmd>GinBranch --all<CR>
nnoremap <Space>gD <Cmd>GinDiff ++opener=tabnew<CR>
nnoremap <Space>gl <Cmd>GinLog ++opener=tabnew --all --graph --max-count=100 --oneline --decorate<CR>
nnoremap <Space>gL <Cmd>GinLog --all --patch --graph --max-count=100<CR>
nnoremap <Space>gaD <Cmd>GinPatch ++opener=tabnew %<CR>
@hokorobi
hokorobi / gista-file
Created January 27, 2019 11:58
CrxMouse Gestures setting
{
"backup": {
"drag": true,
"gesture": true,
"scroll": false,
"scrollgesture": true,
"strokegesture": true
},
"cfgver": 4.1,
"drag": {
#InstallKeybdHook
#UseHook ;%A_ThisHotkey% での無限ループを回避。
#NoEnv ;環境変数を無視。速度面でも有利になる。
#SingleInstance force ;同じスクリプトを一つだけ起動。
; Razer Synapseなど、キーカスタマイズ系のツールを併用しているときのエラー対策
#MaxHotkeysPerInterval 350
SetTitleMatchMode, 2 ;中間一致。Autoexec section にないといけない。
GroupAdd, ThisHotkey, ahk_exe putty.exe ;PuTTY 用定義
GroupAdd, ThisHotkey, ahk_exe gvim.exe ;vim 用定義
@hokorobi
hokorobi / go get when updte golang
Last active June 30, 2018 10:24
Package to update when upgrading Go
go get -u -v -ldflags -s github.com/monochromegane/the_platinum_searcher/cmd/pt
go get -u -v -ldflags -s github.com/nsf/gocode
go get -u -v -ldflags -s github.com/mattn/files
go get -u -v -ldflags -s github.com/peco/migemogrep
go get -u -v -ldflags -s github.com/Masterminds/glide
go get -u -v -ldflags -s github.com/monochromegane/the_platinum_searcher
go get -u -v -ldflags -s github.com/motemen/ghq
@hokorobi
hokorobi / executePerDate.js
Last active October 22, 2017 06:12
GAS Spreadsheet
function executePerDay() {
inputFormula();
copyTweets();
inputDate();
}
function inputDate() {
var sheet = SpreadsheetApp.getActive().getSheetByName('Sheet1');
//var lastRow = sheet.getLastRow();
var d = new Date();
@hokorobi
hokorobi / vimrc_minimal_neocomplete
Created October 21, 2017 06:20
minimal neocomplete vimrc
set nocompatible
let g:neocomplete#enable_at_startup = 1
set runtimepath+=$HOME/_vim/dein/repos/github.com/Shougo/neocomplete.vim
@hokorobi
hokorobi / vimrc_minimal_deoplete
Created October 21, 2017 06:14
minimal deoplete.nvim vimrc
set nocompatible
set encoding=utf-8
let g:python3_host_prog = expand('~/AppData/Local/Programs/Python/Python35/python.exe')
let g:deoplete#enable_at_startup = 1
set runtimepath+=$HOME/_vim/dein/repos/github.com/Shougo/deoplete.nvim
set runtimepath+=$HOME/_vim/dein/repos/github.com/roxma/nvim-yarp
set runtimepath+=$HOME/_vim/dein/repos/github.com/roxma/vim-hug-neovim-rpc
@hokorobi
hokorobi / Disable Autofocus.js
Last active September 30, 2017 08:48
Disable Autofocus
// ==UserScript==
// @name Twitter AutoFocus off
// @namespace http://d.hatena.ne.jp/javascripter/
// @include http://twitter.com/home
// ==/UserScript==
// http://javascripter.hatenablog.com/entry/20080620/1213923411
window.addEventListener('load', function() {
document.activeElement.blur();
this.removeEventListener('load', arguments.callee, false);
@hokorobi
hokorobi / Disable Autofocus.js
Created September 30, 2017 06:48
Disable Autofocus
// ==UserScript==
// @name Disable Autofocus
// @namespace http://github.com/hokorobi
// @version 0.1
// @description Disable Autofocus
// @author hokorobi
// @include http://*
// @include https://*
// @grant none
// ==/UserScript==