Skip to content

Instantly share code, notes, and snippets.

View tckz's full-sized avatar
🌵

tckz

🌵
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tckz on github.
  • I am tckz (https://keybase.io/tckz) on keybase.
  • I have a public key ASDKBoLOB5FIthegoMUxYbR8mv7LWWwcR6YPAYywJ4_fmwo

To claim this, I am signing this object:

@tckz
tckz / .zshrc
Created November 13, 2019 06:35
fpath=(/usr/local/Cellar/git/2.19.2/share/zsh/site-functions $fpath)
if [ -e /usr/local/share/zsh-completions ]; then
fpath=(/usr/local/share/zsh-completions $fpath)
fi
autoload -U compinit
compinit -u
source /usr/local/Cellar/awscli/1.16.190/libexec/bin/aws_zsh_completer.sh
@tckz
tckz / pom.xml
Created November 29, 2013 07:47
依存jarをtarget/lib下にコピー、fat.jar生成
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>sample</artifactId>
<version>0.0.1</version>
<name>sample</name>
<build>
<plugins>
@tckz
tckz / gist:4994696
Last active December 13, 2015 23:49
node.jsでhttpリクエストとwebsocket両方をreverse proxy
var http = require('http'),
httpProxy = require('http-proxy');
// Proxy to rails app
var proxy1 = new httpProxy.HttpProxy({
target: {
host: 'localhost',
port: 3000
}
});
@tckz
tckz / deploy.bat
Created November 15, 2012 09:50
SSRSにレポート配置
@echo off
set RS_EXE="C:\Program Files\Microsoft SQL Server\110\Tools\Binn\rs.exe"
cd %~dp0
@rem For newer endpoint. -e Mgmt2010
%RS_EXE% -i deploy.rss -s http://IPorHostname/reportserver -v filePath=. -v parentFolder=/ -v "dataSourcePath=/データ ソース/" -v dataSourceName=SomeName
if errorlevel 1 (
@tckz
tckz / .screenrc
Last active January 4, 2016 06:29
rcファイル
#hardstatus alwayslastline "%w"
shelltitle "$ |tcsh"
hardstatus alwayslastline "%H: %`%-w%{=b bw}%n %t%{-}%+w"
bind s # reset s key
bind ^U encoding utf8
bind ^E encoding euc
bind ^S encoding sjis
#caption always "%{= wk} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d(%D) %{=b wb}%c"
defscrollback 1000
#hardstatus alwayslastline "%H: %w"
@tckz
tckz / MultiSCM対応版
Last active October 5, 2015 16:18
jenkinsでジョブがチェックアウトするブランチを一括設定する
jenkins.model.Jenkins.instance.items.findAll{job ->
job.name =~ /^some$/;
}.each { job ->
def modBranch = {scm ->
if (scm?.getType() =~ "GitSCM") {
// scm.properties.each{it -> println(it)};
branches = scm.getBranches()
if (branches?.size > 0) {
println("${job.name}(${scm.scmName})=${branches[0].name}");
@tckz
tckz / gist:1986082
Created March 6, 2012 12:45
gitとauthorized_keys
command="perl -e 'exec qw(git-shell -c), $ENV{SSH_ORIGINAL_COMMAND}'",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa aaaaaaaaaaaaaaaaaaaaaaaaa bbbb@example.com
@tckz
tckz / DummyChan.java
Created December 19, 2010 12:00
引数をダンプするダミー
package com.example;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import java.awt.Container;
@SuppressWarnings("serial")
public class DummyChan extends JFrame{
@tckz
tckz / gist:569544
Created September 8, 2010 02:59
GAE向けのbuild.xmlでproxy
JVM系
<target name="run" depends="compile"
description="Starts the development server.">
<dev_appserver war="war" port="3000" address="0.0.0.0">
<options>
<arg value="--jvm_flag=-Dhttps.proxyHost=proxy.example.com" /> <arg value="--jvm_flag=-Dhttps.proxyPort=8080" />
</options>
</dev_appserver>
</target>