Skip to content

Instantly share code, notes, and snippets.

View samsulmaarif's full-sized avatar

Samsul Ma'arif samsulmaarif

View GitHub Profile
[root@VDCPLXAPMAP01 nginx]# cat /etc/*release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.8 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.8"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
<VirtualHost *:80>
DocumentRoot "/var/www/wordpress"
ServerName kampus.ac.id
ServerAlias www.kampus.ac.id
DirectoryIndex index.php index.html
Redirect / https://kampus.ac.id
<Directory "/var/www/wordpress">
Options Indexes FollowSymLinks
AllowOverride All
@samsulmaarif
samsulmaarif / install-gitlab-runner.sh
Last active October 24, 2024 21:20
Script to install GitLab Runner on openSUSE Leap 15.2
#!/usr/bin/env bash
set -x
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
zypper ref
[unix_http_server]
file=/run/supervisord.sock ; the path to the socket file
;chmod=0700 ; socket file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; default is no username (open server)
;password=123 ; default is no password (open server)
;[inet_http_server] ; inet (TCP) server disabled by default
;port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface
FROM node:12-alpine as build
# create app Directory
RUN mkdir /app
WORKDIR /app
ENV NUXT_TELEMETRY_DISABLED 1
ENV NODE_OPTIONS "--max_old_space_size=4096"
COPY . /app
resource "google_compute_firewall" "vpc_firewall" {
name = "test-firewall"
network = google_compute_network.vpc_network.name
allow {
protocol = "icmp"
}
allow {
protocol = "tcp"
cat list-migrasi-domain.txt
domain-lama1.com --> domain-baru1.com
domain-lama2.com --> domain-baru2.com
domain-lama3.com --> domain-baru3.com
domain-lama4.com --> domain-baru4.com
paste -d ' ' `pwd`/list-migrasi-domain.txt | while read lama skip baru; do echo "server {\n\t server_name $lama;\n\t rewrite ^/(.*)\$ http://$baru/\$1 permanent;\n}" >> direktif-baru.txt; done
cat direktif-baru.txt
SSID : Nacita_Labs
password : qwertyuop
https://portal.cloudkilat.com
CKNACITA - [nama]-node1
CKNACITA50 - [nama]-node2
https://s.id/pinehead
# materi presentasi
- virtualization
- contianer
- virt vs container
- what & why docker?
https://docs.google.com/presentation/d/1pE-7hoURxkZ2DSlFc-ULLkTsU4MmcvEyZruyCOVIRxE/edit?usp=sharing
# buat akun docker hub
https://hub.docker.com/