Skip to content

Instantly share code, notes, and snippets.


Daisuke Takeuchi daicham

  • Tokyo, Japan
View GitHub Profile
daicham / setpoxy.bat
Created Feb 9, 2017
Set proxy config for Win
View setpoxy.bat
@echo off
set PROXY_OVERRIDE="172.30.*"
echo *** Set proxy config ***
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v "ProxyEnable" /t REG_DWORD /d "1" /f
daicham / build.gradle
Created Aug 11, 2016
A sample bulid.gradle of Spring Boot
View build.gradle
buildscript {
ext {
springBootVersion = '1.4.0.RELEASE'
repositories {
dependencies {
daicham / .gitlab-ci.yml
Last active Oct 23, 2020
A sample of .gitlab-ci.yml for a gradle project
View .gitlab-ci.yml
image: java:8-jdk
- build
- test
- deploy
# - echo `pwd` # debug
daicham / mkmvndeps.js
Last active Dec 2, 2015
A script for searching artifact information from jar file list that created by fciv (, bintray)
View mkmvndeps.js
var http = require('http');
var fs = require('fs');
var js2xmlparser = require('js2xmlparser');
var search_url = '';
// コマンドライン引数チェック
if (process.argv.length != 3) {
log("Usage `node mkmvn path/to/jar_list`");
log("jar_list is required fciv output format");
daicham / gist:ea629b0404d472cc8bbf
Created Nov 2, 2015
A provisioning script for softlayer
View gist:ea629b0404d472cc8bbf
# アップデート
yum -y update
# Japanese Locale の設定
yum -y groupinstall "Japanese Support"
sed -e "s/en_US.UTF-8/ja_JP.UTF-8/g" /etc/sysconfig/i18n
# JST タイムゾーンに変更
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
daicham / proxy.conf
Last active Aug 29, 2015
Apache2 reverse proxy setting for fixing a Jekins warning
View proxy.conf
# See also:
# Tested on Apache2.2.15/CentOS6
# /etc/httpd/conf.d/proxy.conf
ProxyPass /jenkins http://localhost:8080/jenkins nocanon
ProxyPassReverse /jenkins http://localhost:8080/jenkins
ProxyRequests off
AllowEncodedSlashes on
daicham / gist:8fcdc6113591ffc819ad
Last active Aug 29, 2015
Download kernel source for CentOS 6
View gist:8fcdc6113591ffc819ad
daicham / gist:dec93e7c8b133a66e98b
Last active Aug 29, 2015
[WIP] Installing Gitlab CE Omnibus Package on CentOS 6
View gist:dec93e7c8b133a66e98b

Installing Gitlab Omnibus Package on CentOS 6.0

see also:

sudo yum install curl openssh-server postfix cronie -y
sudo service postfix start
sudo chkconfig postfix on
daicham / udpclient.js
Created Nov 26, 2014
Sample UDP Server and Client on node.js
View udpclient.js
// UDP Sample Client
// UDP 接続先
var host = "localhost";
var c_port = 41234;
var dgram = require("dgram");
var client = dgram.createSocket("udp4");
// サーバに送信するメッセージ
// var message = new Buffer("hello");
You can’t perform that action at this time.