Skip to content

Instantly share code, notes, and snippets.

View abola's full-sized avatar

Abola Lee abola

  • deltaww.com
  • Taipei, Taiwan
View GitHub Profile
#!/bin/sh
###
# MicroK8s + Rancher installer
##
# 如果您的環境不是在 GCP 請自行調整以下兩個變數
EXTERNAL_IP=$(curl -s 169.254.169.254/computeMetadata/v1beta1/instance/network-interfaces/0/access-configs/0/external-ip)
PROJECT_ID=$(curl -s 169.254.169.254/computeMetadata/v1beta1/project/project-id)
sudo snap install microk8s --channel=1.18 --classic
@abola
abola / my.dict
Last active August 14, 2019 07:20
我的
你的
cd ~
git clone https://github.com/systex0668247/GKE-Istio.git
cd GKE-Istio
cloudshell launch-tutorial tutorial.md
@abola
abola / gist:d1d9b0b5dd2e5721d766ae973a250ba2
Created January 14, 2019 06:37 — forked from ehuynh/gist:2572398
Start and Stop Jenkins on OSX
# start
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
# stop
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
@abola
abola / CentOS-6.7_WordPress_with-PHP7.sh
Last active May 22, 2016 03:59
CentOS-6.7_WordPress_with-PHP7
#!/bin/sh
###
# This script will install wordpress on a pure CentOS 6.7 minimal
#
# Step 1. create a file and copy code from this Gist
# 2. check every configuration right
# 3. Do it!
# ex: /bin/sh /path/to/wp-install.sh
###
# @author Abola Lee<abola921@gmail.com>
@abola
abola / centos7_after_installed.sh
Last active May 29, 2018 20:30
Basic settings after CentOS7 minimal installed
###
# Disable SElinux
#
mv /etc/selinux/config /etc/selinux/config.ori
echo "SELINUX=disabled" > /etc/selinux/config
echo "SELINUXTYPE=targeted" >> /etc/selinux/config
###
# Install NTP service
@abola
abola / Install_Jenkins_with_docker_on_centos7.sh
Last active May 7, 2020 21:32
Install Jenkins with docker on CentOS 7
#!/bin/sh
JENKINS_VERSION="2.0-rc-1"
###
# Automatic install docker with script
# @see <a href="https://docs.docker.com/engine/installation/linux/centos/">Installation on CentOS</a>
##
curl -fsSL https://get.docker.com/ | sh
# start docker.service
systemctl start docker
@abola
abola / WordPress-install-centos6.7.sh
Last active June 23, 2016 07:20
WordPress-install-centos6.7.sh
#!/bin/sh
###
# This script will install wordpress on a pure CentOS 6.7 minimal
#
# Step 1. create a file and copy code from this Gist
# 2. check every configuration right
# 3. Do it!
# ex: /bin/sh /path/to/wp-install.sh
###
# @author Abola Lee<abola921@gmail.com>
@abola
abola / nginx-install.sh
Last active February 2, 2021 20:03
Nginx install step with CentOS 6.7 min
#!/bin/sh
# required install
yum -y groupinstall 'Development Tools'
yum -y install wget patch git
yum -y install pcre-devel zlib-devel openssl-devel
# nginx download
wget http://nginx.org/download/nginx-1.8.1.tar.gz
tar zxvf nginx-1.8.1.tar.gz
@abola
abola / nginx
Last active April 15, 2016 17:02
Set nginx as service
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# pidfile: /var/run/nginx.pid