Skip to content

Instantly share code, notes, and snippets.

View binsarjr's full-sized avatar
👋
KNTL (Keep Never Tired Learning)

Binsar Dwi Jasuma binsarjr

👋
KNTL (Keep Never Tired Learning)
View GitHub Profile

Currently, the best filesystem to share content between Windows and Linux is exFAT, specially on USB pendrives and SD cards. exFAT is, roughly speaking, a revision of FAT32 without the 4GB max file size limitation.

If not installed, you will have to install exFAT support.

$ sudo apt install exfat-utils

From here, you have two options. Use a graphical tool like gparted or the command line (which is more fun). Find below steps for the latter.

#!/usr/bin/bash
# function untuk mengubah versi php-cli
# taruh di .bashrc supaya sudah autoload
function switch_php() {
PHPFILE=/usr/bin/php$1
if test -f "$PHPFILE"; then
sudo update-alternatives --set php $PHPFILE
fi
<?php
function caesar_cipher_encode(string $text, int $key = 1)
{
for ($i=0;$i<strlen($text);$i++) {
$code[$i] = ord($text[$i]); //rubah ASCII ke desimal
$b[$i] = ($code[$i] + $key) % 256; //proses enkripsi
$c[$i] = chr($b[$i]); //rubah desimal ke ASCII
}
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
    Header set Cache-Control "max-age=84600, public"
</filesMatch>