This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 0. Turn on mainternance mode then SSH to server | |
# 1. Switch to account `prod_onlinetraining`, using onlinetraining password | |
sudo su prod_onlinetraining | |
# 2. Move to moodle folder | |
cd ~/public_html/ | |
# 2.2. Turn off cron job then wait for all cronjob finish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: traefik.containo.us/v1alpha1 | |
kind: IngressRoute | |
metadata: | |
name: lhci-forwarder | |
spec: | |
entryPoints: | |
- web | |
- websecure | |
routes: | |
- kind: Rule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env jjs | |
var url = new java.net.URL("https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz"); | |
var inStream = new java.io.BufferedInputStream(url.openStream()); | |
var fileOutputStream = new java.io.FileOutputStream("openjdk-11.tar.gz"); | |
inStream.transferTo(fileOutputStream); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo sed -i 's/http\:\/\/security.ubuntu.com\/ubuntu/mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/' /etc/apt/sources.list | |
sudo sed -i 's/http\:\/\/extras.ubuntu.com\/ubuntu/mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/' /etc/apt/sources.list | |
sudo sed -i 's/http\:\/\/.*archive.ubuntu.com\/ubuntu/mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/' /etc/apt/sources.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: hello | |
labels: | |
app: hello | |
spec: | |
type: ClusterIP | |
ports: | |
- protocol: TCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo fastestmirror=1 >> /etc/dnf/dnf.conf | |
dnf update -y | |
dnf install centos-release-gluster centos-release-nfs-ganesha30 hostname -y | |
dnf install glusterfs-server nfs-ganesha nfs-ganesha-gluster -y | |
systemctl enable --now glusterd | |
mkdir -p /data/gnfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://blogs.oracle.com/linux/migrate-nfs-to-glusterfs-and-nfs-ganesha | |
mkdir -p /data/gnfs | |
gluster volume create gnfs db1:/data/gnfs force | |
gluster volume start gnfs | |
gluster volume info gnfs | |
gluster volume status | |
gluster volume add-brick gnfs replica 2 db2:/data/gnfs force | |
mkdir /etc/ganesha/exports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Uninstall old installation | |
sudo minikube delete --all=true --purge=true | |
sudo rm -rf ~/.kube | |
sudo rm -rf ~/.minikube | |
sudo rm -rf /var/lib/minikube | |
sudo rm -rf /var/lib/kubelet | |
sudo rm -rf /var/lib/localkube | |
sudo rm -rf /data/minikube | |
sudo rm -rf /var/lib/kubeadm.yaml | |
rm -rf .*kube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checking for Perl...found Perl at /usr/bin/perl | |
Checking for HTTP client...found /usr/bin/wget -nv | |
[2020-05-22 09:10:57 UTC] [DEBUG] Memory is greater than 1024 MB, which should be sufficient. | |
[2020-05-22 09:10:57 UTC] [INFO] Started installation log in /root/virtualmin-install.log | |
[2020-05-22 09:10:57 UTC] [DEBUG] Phase 1 of 3: Setup | |
[2020-05-22 09:10:57 UTC] [DEBUG] Install mode: minimal | |
[2020-05-22 09:10:57 UTC] [DEBUG] Product: Virtualmin GPL | |
[2020-05-22 09:10:57 UTC] [DEBUG] install.sh version: 6.1.1 | |
[2020-05-22 09:10:57 UTC] [DEBUG] Checking for fully qualified hostname... | |
[2020-05-22 09:10:57 UTC] [DEBUG] Setting hostname to s2.mydomain.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HTTP] --> GET /wd/hub/session/381d990a-9003-42a9-996b-030c490ad215/contexts | |
[HTTP] {} | |
[debug] [W3C (381d990a)] Calling AppiumDriver.getContexts() with args: ["381d990a-9003-42a9-996b-030c490ad215"] | |
[debug] [XCUITest] Executing command 'getContexts' | |
[debug] [iOS] Getting list of available contexts | |
[debug] [iOS] Retrieving contexts and views | |
[debug] [XCUITest] Selecting by url: false | |
[debug] [RemoteDebugger] Sending connection key request | |
[debug] [RemoteDebugger] Sending '_rpc_reportIdentifier:' message (id: 1) | |
[debug] [RemoteDebugger] Sending to Web Inspector took 6ms |
NewerOlder