Skip to content

Instantly share code, notes, and snippets.

<configuration>
<conversionRule conversionWord="coloredLevel" converterClass="play.api.Logger$ColoredLevel" />
<!-- console -->
<appender name="STDOUT1" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%coloredLevel %gray%date{HH:mm:ss.SSS} [%gray(%thread)] - %replace(%replace(%message){'\n','\\n'}){'\t',' '}, %replace(%replace(%xException{5}){'\n','\\n'}){'\t',' '}%n%nopex</pattern>
</encoder>
</appender>
@tlync
tlync / pre-push
Created October 16, 2014 08:38
pre-push kuso edition
#!/bin/sh
CMD="sbt test" # Command that runs your tests
# Check if we actually have commits to push
#commits=`git log @{u}..`
#if [ -z "$commits" ]; then
# exit 0
#fi
echo
read -p "…もちろん、ちゃんとテストしたよな?" -n 0 -r < /dev/tty
@tlync
tlync / gist:852be00dcab8a4a5d237
Last active August 29, 2015 14:07
2014/10/16 社内LT - 人を恨むな仕組みを恨め

%title: %author: Takuya Fujimura (@tlync) %date: 2014-10-16


人を恨むな仕組みを恨め


#!/bin/sh
commits=`git log @{u}..`
if [ -z "$commits" ]; then
exit 0
fi
COLOR_MAIN="\x1B[01;91m"
COLOR_SUB="\x1B[01;90m"
COLOR_PASS="\x1B[32m"
@tlync
tlync / alchistory.user.js
Created February 26, 2011 03:52
Save search history on alc
// ==UserScript==
// @name ALC Search History
// @namespace http://d.hatena.jp/tlync
// @description Save search history on alc
// @homepage http://twitter.com/tlync
// @include http://www.alc.co.jp/
// @include http://eow.alc.co.jp/*
// @version 0.1.0 alpha
// ==/UserScript==
;; anything
(add-to-load-path-recompile "~/.emacs.d/elisp/anything")
(require 'anything-startup)
;;
;; (anything sources)
;;
;; imenu
;;; anything-gist.el --- anything-sources and some utilities for gist.
;; Filename: auto-complete-acr.el
;; Description: Anything extension for gist
;; Author: myuhe <yuhei.maeda_at_gmail.com>
;; Maintainer: myuhe, tlync<takuya.fujimura_at_gmail.com>
;; Copyright (C) 2009, 2010, myuhe , all rights reserved.
;; Created: 2009-04-13
;; Version: 0.7
;; Keywords: convenience, anything, git, gist
#topBar, #sidebar, #nav, .onegpad {
display: none;
}
#topRightNavContainer, .sng-title, #todayButton\:0, .lv-datecell, .lv-time, .lv-header a {
font-size: 80%;
}
.lv-time {
padding-right: 0px;
dojo.declare('dojo.dnd.move.parentConstrainedGridMoveable', dojo.dnd.move.parentConstrainedMoveable, {
gridSize: 10,
/*
* @param {HTMLElement} node
* @param {int} params.gridSize
*/
constructor: function(node, params){
if(!params) params = {};
@tlync
tlync / init-firefox.el
Created April 1, 2011 07:15
init-firefox.el
(autoload 'moz-minor-mode "moz" "Mozilla Minor and Inferior Mozilla Modes" t)
(defvar moz-enable-auto-reload t)
(defvar moz-scroll-ratio "60")
(defvar moz-scroll-time "60")
(defun moz-send-line (str)
(interactive)
(comint-send-string (inferior-moz-process)
(concat moz-repl-name ".pushenv('printPrompt', 'inputMode'); "