Skip to content

Instantly share code, notes, and snippets.

Avatar

Daisuke Takeuchi daicham

  • Tokyo, Japan
View GitHub Profile
@daicham
daicham / setpoxy.bat
Created Feb 9, 2017
Set proxy config for Win
View setpoxy.bat
@echo off
set PROXY_SERVER="proxy.example.com:80"
set PROXY_OVERRIDE="172.30.*"
echo *** Set proxy config ***
echo PROXY_ENABLE
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v "ProxyEnable" /t REG_DWORD /d "1" /f
@daicham
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 {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
@daicham
daicham / .gitlab-ci.yml
Last active Jul 22, 2020
A sample of .gitlab-ci.yml for a gradle project
View .gitlab-ci.yml
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
@daicham
daicham / mkmvndeps.js
Last active Dec 2, 2015
A script for searching artifact information from jar file list that created by fciv ( maven.org, bintray)
View mkmvndeps.js
var http = require('http');
var fs = require('fs');
var js2xmlparser = require('js2xmlparser');
var search_url = 'http://search.maven.org/solrsearch/select?rows=20&wt=json&q=1:';
// コマンドライン引数チェック
if (process.argv.length != 3) {
log("Usage `node mkmvn path/to/jar_list`");
log("jar_list is required fciv output format");
@daicham
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 -i.org -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
daicham / proxy.conf
Last active Aug 29, 2015
Apache2 reverse proxy setting for fixing a Jekins warning
View proxy.conf
# See also: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+says+my+reverse+proxy+setup+is+broken
# 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
daicham / gist:8fcdc6113591ffc819ad
Last active Aug 29, 2015
Download kernel source for CentOS 6
View gist:8fcdc6113591ffc819ad
@daicham
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: https://about.gitlab.com/downloads/

sudo yum install curl openssh-server postfix cronie -y
sudo service postfix start
sudo chkconfig postfix on
@daicham
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.