gitignore.ioを使うのが楽っぽいので、以下のようにする。
curl -L http://gitignore.io/api/windows,visualstudio > .gitignore
core.quotepathをfalseにすれば、文字化けは発生しない。
function! s:AutoFoldColumn() abort | |
let l:foldcolumn = auto_origami#Foldcolumn() | |
if l:foldcolumn > 0 | |
let l:maxfoldcolumn = s:GetMaxFoldColumn() | |
if l:foldcolumn < l:maxfoldcolumn | |
let l:foldcolumn = l:maxfoldcolumn | |
endif | |
endif | |
let &l:foldcolumn = l:foldcolumn | |
endfunction |
#! /bin/env bash | |
# update 18.04 | |
apt update -y | |
apt upgrade -y | |
# reboot | |
do-release-upgrade | |
# package install | |
apt install -y zsh unzip ctags make gcc libssl-dev libreadline-dev zlib1g-dev libbz2-dev libsqlite3-dev libffi-dev |
LOCAL_XE = | |
(DESCRIPTION = | |
(ADDRESS_LIST = | |
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) | |
) | |
(CONNECT_DATA = | |
(SERVICE_NAME = xe) | |
) | |
) |
# uruを使えるようにする | |
# %URU_HOME%には対応していないので、適宜パスを書き換えてくださいませ。 | |
# 参考) http://d.hatena.ne.jp/miyamuko/20100905/nyaos_with_pik | |
uru{ | |
uru.bat %* | |
if exist "%USERPROFILE%\.uru\uru_lackee.bat" then | |
source "%USERPROFILE%\.uru\uru_lackee.bat" 2> nul | |
endif | |
} |
#!/usr/bin/env ruby -Ku | |
require 'nkf' | |
class String | |
def printable! | |
self.each_char.find_all{|ch| NKF.guess(ch) == NKF::UTF8}.join("") | |
end | |
end |
# echo に -n オプションを付けないと改行が入ってしまい、正しくないハッシュ値になってしまう。 | |
echo -n "password" | sha1sum - | tr a-z A-Z |
# -*- coding: utf-8 -*- | |
# earthquake.gem plugin | |
# execute command even if you forgot colon | |
Earthquake.init do | |
input_filter do |text| | |
if (command = command(":#{text}")) and confirm("execute :#{text}", :y) | |
input(":#{text}") | |
return nil | |
end | |
text |
# -*- coding: utf-8 -*- | |
# earthquake.gem plugin | |
# add url to Pocket(http://getpocket.com) | |
require 'uri' | |
require 'open-uri' | |
Earthquake.init do | |
cfg = config[:pocket] || {} | |
command :pocket do |m| | |
pocket_uri = URI.parse('https://readitlaterlist.com/v2/add') |