Skip to content

Instantly share code, notes, and snippets.

@henry0312
henry0312 / mingw.sh
Created November 27, 2011 06:19
Build MinGW Cross Compiler on Mac OS X Lion
#!/bin/sh
# 初期設定
WORK=$HOME/Builds/GCC
PREFIX=$HOME/mingw
export PATH="$HOME/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
# ソースコードのダウンロード
if [ ! -d $WORK/src ] ; then
mkdir src
@waltarix
waltarix / tmux-do-not-combine-utf8.patch
Last active May 29, 2022 09:58
tmux: Fix a problems with displaying Ambiguous-width, Japanese Dakuten and Handakuten signs.
diff --git a/screen-write.c b/screen-write.c
index 15f8d07..8a175a6 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1334,6 +1334,7 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
ctx->cells++;
/* If the width is zero, combine onto the previous character. */
+ /*
if (width == 0) {
@k-takata
k-takata / symlinkfix-update.diff
Created August 23, 2012 13:02
symlinkfix-update.diff
diff --git a/src/fileio.c b/src/fileio.c
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3778,12 +3778,12 @@
}
}
-# ifdef UNIX
/*
* Break symlinks and/or hardlinks if we've been asked to.
@yoshikaw
yoshikaw / gist:3461979
Created August 25, 2012 07:13
zsh 5.0のCOMBINING_CHARSオプション
seravee /Volumes/Data/tmp/hoge [0] 67471 % ll
total 0
drwxrwxrwx@ 1 yoshikaw staff 264 May 20 15:45:03 2012 キタ━━━━(゚∀゚)━━━━ッ!!/
drwxrwxrwx@ 1 yoshikaw staff 264 May 20 14:23:04 2012 日本語でおk/
drwxrwxrwx@ 1 yoshikaw staff 264 May 19 23:32:36 2012 あばばばば/
seravee /Volumes/Data/tmp/hoge [0] 67472 % ls あは<3099>は<3099>は<3099>は<3099>/
Completing directories
あばばばば/ 日本語でおk/ キタ━━━━\(゚∀゚\)━━━━ッ\!\!/
seravee /Volumes/Data/tmp/hoge [0] 67472 % setopt combiningchars
@zonuexe
zonuexe / README.md
Created September 7, 2012 00:19
el-getでnavi2chを管理する

el-get で navi2ch を管理する

el-get ってなぁに?

最近流行ってるらしい Emacs のパッケージ管理システムだよ。 いろんなところからパッケージを取り込めるからとにかく楽だよ!

navi2ch ってなぁに?

ggrks

@dvdhrm
dvdhrm / tsm.h
Created September 19, 2012 11:28
TSM library as one file
/*
* TSM - Unicode Handling
*
* Copyright (c) 2011-2012 David Herrmann <dh.herrmann@googlemail.com>
* Copyright (c) 2011 University of Tuebingen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
@zonuexe
zonuexe / 101.rb
Created October 16, 2012 07:51
101
# -*- coding: utf-8 -*-
#
# author: USAMI Kenta <tadsan@zonu.me>
# license: NYSL 0.9982
#
puts %w(
字佐美健太
-忠吉さん,_tadsan
--Zonu.EXE
@florianleibert
florianleibert / retry.bash
Created November 2, 2012 08:40
Retry logic in bash (for ssh / scp)
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
declare -r max=4
declare i=0
function wrap() {
local cmd=$1 ; shift
@puffnfresh
puffnfresh / CGSSpaces.h
Last active February 20, 2023 17:57
Header for undocumented Spaces APIs
#include <Carbon/Carbon.h>
typedef void *CGSConnectionID;
extern CGSConnectionID _CGSDefaultConnection(void);
#define CGSDefaultConnection _CGSDefaultConnection()
typedef uint64_t CGSSpace;
typedef enum _CGSSpaceType {
kCGSSpaceUser,
kCGSSpaceFullscreen,
@posaunehm
posaunehm / gist:4087971
Last active March 26, 2021 19:24
Why OO Sucks by Joe Armstrong