Skip to content

Instantly share code, notes, and snippets.

@nicdk
nicdk / gist:2972108
Created June 22, 2012 11:05
Patch to RSyncBackup-1.3 for Python3
--- ./RSyncBackup-1.3/lib/RSyncBackup.py 2012-02-04 09:47:48.000000000 +0900
+++ ./RSyncBackup-1.3b/lib/RSyncBackup.py 2012-06-22 19:52:35.000000000 +0900
@@ -33,7 +33,7 @@
__version__ = "1.3"
-import time, commands, re
+import time, subprocess, re
import logging
import os, os.path
@nicdk
nicdk / gist:4223762
Created December 6, 2012 11:14
Aquamacs で solarized + Miguフォント

Aquamacs で solarized + Miguフォント

実行したバイナリVersion

GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-26 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 Copyright (C) 2011 Free Software Foundation, Inc.

参考

@nicdk
nicdk / gist:4223807
Created December 6, 2012 11:23
Aquamacsでddskk

Aquamacsでddskk

  • 実行したバイナリVersion

GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-26 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 Copyright (C) 2011 Free Software Foundation, Inc.

参考

@nicdk
nicdk / gist:8875482
Last active August 29, 2015 13:56
zsh prompt adam2 for solarized-light
autoload -U promptinit
promptinit
prompt adam2 8bit
alias adam2='prompt adam2 8bit'
alias adam2-light='prompt adam2 8bit cyan black black black magenta'
swift言語のリポジトリはsubversion で置かれている。
ので、あとが面倒だからgitにする。
git-svnをつかって取得する。
swift言語のビルド方法はこちらから。
http://swift-lang.org/guides/release-0.94/quickstart/quickstart.html
読むと、まず CoGKit を展開し、その中で swift をビルドするらしい。
http://wiki.cogkit.org/wiki/Main_Page
$ mkdir swift-0.94
@nicdk
nicdk / gist:30397586f3ac36426ac8
Created June 24, 2014 05:05
AccelTCP 0.2-pu-gtest_supportの実行結果
➜ AccelTCP git:(0.2-pu-gtest_support) cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
⏚ [:~] % docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
centos-java latest a669ddb63930 20 hours ago 873.3 MB
debian latest 23cb15b0fcec 5 days ago 125.1 MB
centos latest e9fa5d3a0d0e 8 weeks ago 172.3 MB
⏚ [:~] % docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.6
Unable to find image 'mysql:5.6' locally
5.6: Pulling from library/mysql
5971b6ce764f: Pull complete
@nicdk
nicdk / README.md
Last active August 18, 2016 05:51 — forked from ma11hew28/README.md
Homebrew Meteor Formula

Homebrew Meteor Formula

To install Meteor with the Homebrew formula [below][3], run:

brew install https://gist.github.com/nicdk/bac3b9458859848f4b8ead44dc54b396/raw/d1246b67b1e14931ffffb0f1004d340d5d353760/meteor.rb

This Homebrew Meteor Formula is based on https://install.meteor.com.

@nicdk
nicdk / happy-wallet-mockup.markdown
Last active May 2, 2018 08:18
happy-wallet-mockup
@nicdk
nicdk / atom-keymap_20180709.md
Created July 9, 2018 07:45
Atom の Keymap で設定している ctrl-*

改行、タブ入力、yank とSKK 絡み。


'atom-text-editor':
  'ctrl-m': 'editor:newline'
  'ctrl-i': 'editor:indent'
  'ctrl-y': 'core:paste'
  'ctrl-j': 'unset!'
 'ctrl-shift-j': 'unset!'