Skip to content

Instantly share code, notes, and snippets.

View dev-gwang's full-sized avatar
🏠
Working from home

dev-gwang dev-gwang

🏠
Working from home
View GitHub Profile
@dev-gwang
dev-gwang / nginx.conf
Created October 12, 2022 07:09
How to set up ssh proxy with Nginx (multiple domain)
## Nginx Version > v1.9.2
stream {
upstream ssh2 {
server localhost:2204;
}
upstream ssh {
server localhost:2203;
}
@dev-gwang
dev-gwang / install.sh
Created January 30, 2022 16:54
github el7 install script
IP="<Your IP or hostname>"
HTTPS_OR_HTTP="http"
sudo yum update -y
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
EXTERNAL_URL="${HTTPS_OR_HTTP}://${IP}" yum install -y gitlab-ce-14.7.0-ce.0.el7.x86_64
@dev-gwang
dev-gwang / patch.sh
Last active September 27, 2021 06:24
centos6 yum repo fix
### yum mirrorlist patch command
echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo "https://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "https://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt
echo "https://vault.centos.org/6.10/centos-sclo-rh/x86_64/" > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt
echo "https://vault.centos.org/6.10/sclo/x86_64/rh/" > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt
@dev-gwang
dev-gwang / nginx.repo
Created November 28, 2020 12:59
centos7 nginx
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
@dev-gwang
dev-gwang / nexus3-install.sh
Created September 21, 2020 00:42
nexus3 install script
yum update -y
yum install wget net-tools java -y
if [ ! -d /opt/nexus-* ]; then
wget -qO- http://download.sonatype.com/nexus/3/latest-unix.tar.gz | tar zxvf - -C /opt/
fi
/opt/nexus-3.27.0-03/bin/nexus start
@dev-gwang
dev-gwang / gitlab-install.sh
Created September 6, 2020 07:52
gitlab install script
#########################
## CentOS 7 Minimal Base
#########################
yum update -y
yum install wget net-tools vim -y
yum groupinstall -y "Development Tools"
#########################
## git install
@dev-gwang
dev-gwang / test.sh
Created August 8, 2020 17:36
yumupdate
## Yum 업데이트
yum update -y
## Httpd 설치
yum install httpd -y
@dev-gwang
dev-gwang / Vagrantfile
Created July 29, 2020 09:09
Vagrantfile yum install nginx
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@dev-gwang
dev-gwang / Vagrantfile
Created May 27, 2020 04:10
chef server install Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network "private_network", ip: "192.168.33.10"
@dev-gwang
dev-gwang / bamboo_play_result_parsing.py
Last active May 25, 2020 08:24
bamboo plan result xml parsing / Bamboo plan 결과 파싱 스크립트
import requests
import xml.etree.ElementTree as elemTree
import sys
from requests.auth import HTTPBasicAuth
import json
import sys
list_issues = []
IP = "<BAMBOO SERVER IP>"
ISSUE_KEY = "<JIRA ISSUE_KEY>"