//*6 ajnalisis nilai
$out[] = max($nilai);
$out[] = min($nilai);
return $out;
//* 7. Gunting Batu Kertas
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
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.
StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible offline!
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
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 |
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 beapache
on other systems)
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 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 )" |
NewerOlder