Skip to content

Instantly share code, notes, and snippets.

$ brew doctor
Warning: You have leftover files from an older version of Xcode.
You should delete them using:
/Developer/Library/uninstall-developer-folder
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
diff --git a/plugins/include_array.rb b/plugins/include_array.rb
index 000040f..0758e53 100644
--- a/plugins/include_array.rb
+++ b/plugins/include_array.rb
@@ -31,6 +31,11 @@ module Jekyll
end
-
rtn = ''
+ n_files = context.environments.first['site'][@array_name].size ? \
+ context.environments.first['site'][@array_name].size : 0
@rcmdnk
rcmdnk / ln_windows_for_cygwin.sh
Created June 25, 2013 21:51
Make Windows symbolik and hard links instead of linx links in cygwin. These links can be used as linux links, and can be used from Windows (Explorer and other softs).
if [[ "$OSTYPE" =~ "cygwin" ]];then
function ln {
opt="/H"
if [ "$1" = "-s" ];then
opt=""
shift
fi
target="$1"
if [ -d "$target" ];then
opt="/D $opt"
@rcmdnk
rcmdnk / cp_wrapper_for_BSDtoGNU.sh
Last active December 19, 2015 01:49
Wrapper functions of mv/cp for BSD (including Mac).
# cp wraper for BSD cp (make it like GNU cp){{{
# Remove the end "/" and change -r to -R
if ! cp --version 2>/dev/null |grep -q GNU;then
function cp {
local opt=""
local source=""
local dest=""
while [ $# -gt 0 ];do
if [[ "$1" == -* ]];then
if [ "$1" == "-r" ];then
@rcmdnk
rcmdnk / .vimrc
Last active December 19, 2015 05:19
viminfo settings for Windows/Cygwin. Use vim and gvim in Cygwin and Windows, respectivery. Then, use diferent viminfo files. It is necessary because the viminfo file made by Windows' vim is owned by Administrators (seen in Cygwin). This results that Cygwin's vim can't write to the viminfo.
if has("gui_running") && ( has("win32unix") || has ("win64unix") || has("win32") || has ("win64") )
set viminfo+=n~/.vim/gviminfo
else
set viminfo+=n~/.vim/viminfo
endif
@rcmdnk
rcmdnk / vim_ime.ahk
Last active February 19, 2020 02:10
Automatic IME off for Vim by AutoHotkey. IME.ahk is needed to be placed in the same directory with this setting script (http://www6.atwiki.jp/eamat/pages/17.html).
; Auto execute section is the region before any return/hotkey
; For Terminal/Vim
GroupAdd Terminal, ahk_class PuTTY
GroupAdd Terminal, ahk_class mintty ; cygwin
GroupAdd TerminalVim, ahk_group Terminal
GroupAdd TerminalVim, ahk_class Vim
; Include IME.hak
; http://www6.atwiki.jp/eamat/pages/17.html
@rcmdnk
rcmdnk / apt-cyg.diff
Last active December 20, 2015 20:19
Fix of apt-cyg for new direcotry structure of cygwin mirror sites
Index: apt-cyg
===================================================================
--- apt-cyg (revision 18)
+++ apt-cyg (working copy)
@@ -75,6 +75,11 @@
tmp="`head -1 /etc/setup/last-cache`"
cache="`cygpath -au "$tmp"`"
fi
+
+ if test -e /etc/setup/last-arch
@rcmdnk
rcmdnk / stowReset.sh
Created August 10, 2013 01:00
Script to remove files installed by "make install", for new installation by stow.
#!/bin/sh
# Variables
package=""
stowdir="."
targetdir=".."
simulation=0
curdir=`pwd`
# Help
diff --git a/article.html b/article.html
index 85fbd92..1d504b1 100644
--- a/article.html
+++ b/article.html
@@ -3,7 +3,13 @@
{% if index %}
<h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
{% else %}
+ {% if site.zenback_show == true and page.comments == true %}
+ <!-- zenback_title_begin -->
" lightline.vim {{{
if ! empty(neobundle#get("lightline.vim"))
let g:lightline = {
\"colorscheme": "jellybeans",
\"active": {
\"left": [["mode", "filename"], ["fugitive"]],
\"right": [["lineinfo"], ["fileinfo"]]},
\"component_visible_condition": {
\"fugitive": '(exists("*fugitive#head") && ""!=fugitive#head())'},
\'component_function': {