Skip to content

Instantly share code, notes, and snippets.

Yoga Hanggara yohang88

Block or report user

Report or block yohang88

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
yohang88 / docker-compose.yml
Created Aug 13, 2019
Wordpress Docker Compose
View docker-compose.yml
version: '3.3'
- db
image: wordpress:latest
- wordpress_files:/var/www/html
yohang88 / random_test_1.txt
Last active Aug 10, 2019
Random String Tester
View random_test_1.txt
yohang88 /
Last active Jun 30, 2019
Debian 9 Install MySQL APT Repository
dpkg -i mysql-apt-config_0.8.9-1_all.deb
apt-get install dirmngr --install-recommends
apt-key adv --keyserver --recv-keys 8C718D3B5072E1F5
yohang88 / regex.js
Created Jun 20, 2019
Regular Expression (RegEx) Cheatsheet
View regex.js
// URL
const reg = /^(http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/
yohang88 / arch-linux-install
Last active May 22, 2019 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
View arch-linux-install
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide ( contains a more verbose description.
# Download the archiso image from
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
yohang88 /
Created May 8, 2019
Setup and connect Gitlab CI Runner in my server
docker run --rm -t -i -v $(pwd):/etc/gitlab-runner gitlab/gitlab-runner register
docker run -d --name jdsteam-gitlab-runner-01 --restart always \
-v $(pwd):/etc/gitlab-runner \
-v /var/run/docker.sock:/var/run/docker.sock \
yohang88 / Workers.sql
Created Jan 17, 2019
SQL #2 - Workers
View Workers.sql
SELECT FROM employees a WHERE NOT IN (SELECT b.managerId FROM employees b WHERE b.managerId IS NOT NULL);
yohang88 / Students.sql
Created Jan 17, 2019
SQL #1 - Students
View Students.sql
SELECT COUNT(*) FROM students WHERE firstName = 'John';
yohang88 / Pipeline.php
Last active Jan 17, 2019
PHP #2 - Pipeline
View Pipeline.php
class Pipeline
public static function make_pipeline(...$funcs)
return function($arg) use ($funcs)
$x = $arg;
yohang88 / Palindrome.php
Created Jan 17, 2019
PHP #1 - Palindrome
View Palindrome.php
class Palindrome
public static function isPalindrome($word)
$toLowercase = strtolower($word);
$wordLength = strlen($toLowercase);
You can’t perform that action at this time.