Skip to content

Instantly share code, notes, and snippets.

jawaban-gethired-devcode

//*6 ajnalisis nilai
$out[] = max($nilai);
$out[] = min($nilai);
return $out;


//* 7. Gunting Batu Kertas

Meet The Docker

Hi! Ini adalah kumpulan gist yang terkait dengan docker.

@zdienos
zdienos / Install_PHP_on_Arch_Manjaro.md
Created February 4, 2024 11:31 — forked from michaelbutler/Install_PHP_on_Arch_Manjaro.md
Install multiple PHP versions on Arch / Manjaro Linux

Install Any PHP on Arch / Manjaro

Through the AUR it is possible to install older and newer PHP versions, simultaneously on the same system. I often had trouble installing using pacman and pamac so here's what I did:

mkdir -p $HOME/bin
mkdir ~/src
cd ~/src
git clone https://aur.archlinux.org/php81.git
cd php81
@zdienos
zdienos / mariadbphpmyadmin.md
Created January 26, 2024 08:16
Instalasi MariaDB dan PHPMyAdmin di local ubuntu

Instalasi MariaDB dan PHPMyAdmin di Ubuntu!

Hi! ini catatan saja, biar ndak lupa, bagaimana cara menginstall MariaDB dan PHPMyAdmin.

Instal MariaDB

sudo apt install mariadb-server

Untuk custom lokasi database, hapus semua file di dalam directory berikut

@zdienos
zdienos / apache2ssl.md
Created January 26, 2024 06:05
Install Apache2 dengan sertifikat SSL di Ubuntu

Instalasi Apache2 dengan Sertifikat SSL di Ubuntu!

Hi! ini catatan saja, biar ndak lupa, bagaimana cara menginstall Apache dan SSL nya menggunakan mkcert.

Instal Apache2

sudo apt install apache2

Kemudian setup variabel global apache2, karena akan menggunakan user biasa saja, bukan untuk server kok

@zdienos
zdienos / template.md
Created January 26, 2024 03:55
Ini adalah master template MarkDown, digunakan untuk dasar dalam membuat markdown file. Kalau gak mau pake ini, bisa pake yang online sajaa di https://stackedit.io/app

Welcome to MarkDown Template!

Hi! I'm your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the file explorer on the left corner of the navigation bar.

Files

StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible offline!

Create files and folders

@zdienos
zdienos / multiplephpversion.md
Created January 26, 2024 03:53
Instalasi banyak versi php (multi php)

Instalasi Multiple PHP!

Hi! ini catatan saja, biar ndak lupa, bagaimana cara menginstall banyak versi php dalam satu mesin linux (ubuntu) menggunakan fpm.

Tambah Repository ondrej

sudo apt install software-properties-common -y
sudo add-apt-repository ppa:ondrej/php -y
@zdienos
zdienos / automountUbuntu
Created August 8, 2022 08:13 — forked from CreatorB/automountUbuntu
How to Set Ubuntu Automatically Mount Partition at Startup with fstab
List out the partitions
Use the fdisk command to list of all partitions
$ sudo fdisk -l
Here is what the ouput would look like
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
@zdienos
zdienos / README.md
Created March 24, 2022 12:05 — forked from nichtich/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
@zdienos
zdienos / git-all.bash
Created March 23, 2022 06:38 — forked from henryiii/git-all.bash
Fast repository status for repos in git folder
#!/usr/bin/env bash
# This script should be named (or symbolically linked) as git-all so that
# it can be run as a git command (if it is in the path). The repo location should
# be set in REPOLOC. Can be relative if this script is also in a repo!
# Standard bash stuff to get the current directory
unset CDPATH
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"