- ambari-install.sh
- oracle-java-8-install.sh
- sbt-install.sh
| FROM registry.ebaykorea.com/ubuntu:trusty-buildpack | |
| ... | |
| # ref: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
| ENV TZ=Asia/Seoul | |
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| e.g. agent.sources.s1.interceptors.ci.isISO8601Format = true | |
| ... | |
| public void configure(Context context) { | |
| boolean isISO8601Format = context.getBoolean("isISO8601Format", true); | |
| } |
| #!/bin/bash | |
| # | |
| # Ubuntu | |
| # 사용자 추가 스크립트 | |
| ################################# | |
| if [[ -z "$1" || -z "$2" ]]; then | |
| echo "Usage: add_user [user_name] [home_dir]" | |
| exit 0 | |
| elif [ -d "$2" ]; then |
| #!/bin/bash | |
| # | |
| # $1: key를 저장할 원격 호스트 사용자 아이디 | |
| # $2: 원격 호스트 사용자의 패스워드가 기록된 파일 경로 | |
| # $3: linebreak으로 구분된 원격 호스트 목록 | |
| # e.g. target_hosts | |
| # myhost01 | |
| # myhost02 | |
| # myhost03 | |
| # ... |
| #!/bin/bash | |
| # | |
| # Ubuntu | |
| # 기본 bash 파일이 없는 경우 (.bashrc, .profile) | |
| # skeleton 파일을 복사하여 추가 | |
| ################################## | |
| if [ ! -f "~/.bashrc" ]; then | |
| cp /etc/skel/* ~/ | |
| source ~/.profile |
| #!/bin/bash | |
| # | |
| # Ubuntu | |
| # apt.conf에 프록시 서버 설정 추가 | |
| ##################################### | |
| PROXY_SERVER=$1 | |
| if [ -z "$1" ]; then | |
| echo "Usage: add_apt_proxy.sh [proxy_server]" |
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_TELEGRAF", | |
| "label": "telegraf", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "influxdb", | |
| "pluginName": "InfluxDB" | |
| }, |
| :loop | |
| (echo|set /p="%date% %time% " & netstat -anon | find /c ":8002 ") >> 8002_netstat.log | |
| ping localhost -n 11 > nul | |
| goto loop |
| ################################################################################################ | |
| # http get request | |
| ################################################################################################ | |
| $uri = "http://mydomain/~" | |
| $webclient = [System.Net.HttpWebRequest]::Create($uri) | |
| [System.Net.HttpWebResponse]$res = $webclient.GetResponse() | |
| $reader = New-Object System.IO.StreamReader($res.GetResponseStream()) | |
| $result = $reader.ReadToEnd() | |
| ################################################################################################ |