Skip to content

Instantly share code, notes, and snippets.

@tomykaira
tomykaira / build.groovy
Created September 3, 2012 06:14 — forked from kyonmm/build.groovy
Gradle + Git + Ubuntuな環境で保存->ビルド->コミットまでこなします。 nofity-send を使って通知もします。
// place an icon where you like
def icon = "${System.getenv()["HOME"]}/notification_done.png"
def root = new File("./src/")
println root.absolutePath
lastmodified = [:]
current = [:]
while(true){
current.clear()
root.eachFileRecurse {
@tomykaira
tomykaira / init.sh
Created June 9, 2012 07:16 — forked from sowawa/README.md
Mysql initialize on rackhub
#!/bin/sh
set -x
set -e
SERVER_COMMAND=/usr/local/mysql/mysql.server
MYSQL_DIR=/usr/local/mysql
MYSQL_DATA_DIR=$MYSQL_DIR/data
sudo $SERVER_COMMAND stop
sudo rm -rf $MYSQL_DATA_DIR
sudo mkdir $MYSQL_DATA_DIR
@tomykaira
tomykaira / my.cnf
Created June 9, 2012 07:13 — forked from sowawa/my.cnf
mysql config for rackhub
# Example MySQL config file for small systems.
#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
@tomykaira
tomykaira / clipboard-to-kill-ring.el
Created September 28, 2011 23:09 — forked from hitode909/clipboard-to-kill-ring.el
OS Xのクリップボードを定期的に監視してkill-ringに入れます
;;; clipboard-to-kill-ring.el
;;; * 概要
;;; OS Xのクリップボードを定期的に監視してkill-ringに入れます
;;; deferred.elが必要です
;;;
;;; * 使い方
;;; (clipboard-to-kill-ring t)
;;; で監視を始めます
;;; clipboard-to-kill-ring:interval を設定するとポーリングの間隔を変えられます.
@tomykaira
tomykaira / smarttabs.el
Created June 3, 2011 13:45 — forked from jacius/smarttabs.el
Emacs smart tabs - indent with tabs, align with spaces!
;;
;; Emacs smart tabs functionality
;; Intelligently indent with tabs, align with spaces!
;;
;; Note: Indenting only uses tabs when indent-tabs-mode is non-nil,
;; otherwise it uses spaces as usual.
;;
;; To use: save as smarttabs.el in your .emacs.d directory, and add
;; "(require 'smarttabs)" to your .emacs file.
;;