Treat git log as a book, exec git next
or git prev
to checkout the next or the previous commit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set runtimepath^=~/.config/nvim/plugged/coc.nvim | |
filetype plugin indent on | |
syntax on | |
set hidden | |
set runtimepath^=~/src/coc-clangd | |
"Completion settings | |
"Use complete_info() if you need confirm completion only when there's selected complete item |
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.
- Mac OSX 10+
- Administrator privileges
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -uex | |
DIR=XXX | |
cd ${DIR} | |
REV1=$(git rev-parse --verify HEAD) | |
git pull | |
REV2=$(git rev-parse --verify HEAD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* dark mode */ | |
@media (prefers-color-scheme: dark) { | |
body { | |
background-color: black; | |
color: white; | |
} | |
} | |
@media (prefers-color-scheme: light) { | |
body { | |
background-color: white; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifndef VERBOSE | |
.SILENT: | |
endif | |
BINARY=$(shell basename $(CURDIR)) | |
BINARY_LINUX=$(BINARY)_linux | |
export GO111MODULE=on | |
.PHONY : default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !exists('g:neomake') | let g:neomake = {} | endif | |
let g:neomake_verbose = 1 | |
"let neomake.open_list = 2 " also preserve cursor position | |
let g:neomake_list_height = 5 | |
"let g:neomake_php_enabled_makers = ['php', 'phpcs', 'phpmd'] | |
let g:neomake_latex_enabled_makers = ['chktex', 'lacheck', 'rubberinfo', 'proselint', 'latexrun'] | |
let g:neomake_bib_enabled_makers = ['bibtex'] | |
let g:neomake_nvimluatest_maker = { | |
\ 'exe': 'sh', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env lua | |
local SSDB = require 'resty.ssdb' | |
local _M = { | |
_VERSION = '0.0.1' | |
} | |
local mt = { | |
__index = _M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function log_wrapper(...) | |
local pos_info = debug.getinfo(2) | |
ngx.log(ngx.ERR, pos_info.short_src, ":", pos_info.currentline, | |
": ", pos_info.name, ":", ...) | |
end |
NewerOlder