Skip to content

Instantly share code, notes, and snippets.

@nise-nabe
nise-nabe / gist:2527314
Created April 29, 2012 03:00
FE覚醒日記
FE覚醒日記
=========
ゲーム内総プレイ時間 2:18:35
## 断章
ダブルで一発
## 序章
@nise-nabe
nise-nabe / gui.groovy
Created May 25, 2012 08:39
これって画面中央に表示されないのかな
import groovy.swing.SwingBuilder
import javax.swing.*
def swingBuilder = new SwingBuilder()
swingBuilder.frame(title:"Hello!",
defaultCloseOperation:WindowConstants.EXIT_ON_CLOSE,
pack: true,
locationRelativeTo: null,
show: true) {
@nise-nabe
nise-nabe / Hello.class.php
Created September 25, 2012 03:58
phar test
<?php
class Hello
{
public function getName() {
return __CLASS__;
}
public function greet() {
echo __FILE__;
return 'Hello, world!';
}
$ sudo apt-get instal tomcat7 tomcat7-admin
$ sudo vi /var/lib/tomcat7/conf/server.xml
72 <Connector port="8080" protocol="HTTP/1.1"
$ sudo vi /var/lib/tomcat7/conf/tomcat-users.xml
36 <user username="hoge" password="fuga" roles="manager-script"/>
$ sudo service tomcat7 restart
$ grails create-app niseapp
$ cd niseapp
$ vim grails-app/conf/Config.groovy
93 tomcat.deploy.username="hoge"
DocumentRoot /var/www/%0/public_html
$ cd /var/www
$ mkdir aaa
$ cd aaa
$ git clone git://github.com/webpy/webpy.git /tmp/webpy
$ mv /tmp/webpi/web .
$ mkdir public_html
$ vim public_html/index.py
import sys
package main
import (
"crypto/tls"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
@nise-nabe
nise-nabe / redmine2dailyreport.pl
Created December 1, 2012 00:57 — forked from takus/redmine2dailyreport.pl
generates daily report from redmine issues
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
binmode STDOUT, ":utf8";
use Config::Pit;
use Redmine::API;
use Encode;
```
# cd /usr/pkgsrc/lang/ruby193
# bmake install clean ; echo $?
1
```
エラー原因
```
===> Install binary package of libffi-3.0.11
pkg_add: A different version of libffi-3.0.11 is already installed: libffi-3.0.9nb1
find . -type d -name i18n | parallel find {} -type f -regex '.\*.xml' | parallel cat | grep -E ' *<source' -A 1 | sed -e 's/<[^>]*>//g' | sed -e 's/^ *//g' > /tmp/messages.ja.xml.tmp
cat /tmp/messages.ja.xml.tmp | sed -n '1~3p' > /tmp/messages.ja.xml.tmp.src
cat /tmp/messages.ja.xml.tmp | sed -n '2~3p' > /tmp/messages.ja.xml.tmp.tar
paste /tmp/messages.ja.xml.tmp.src /tmp/messages.ja.xml.tmp.tar