Skip to content

Instantly share code, notes, and snippets.

View yaza-putu's full-sized avatar
💭
I Love Code & Learning

Putu Yaza yaza-putu

💭
I Love Code & Learning
View GitHub Profile
@yaza-putu
yaza-putu / gist:f2a339192061423e894df082e51af4d9
Created July 31, 2020 07:27
Convert date excel to date php
Please use this formula to change from Excel date to Unix date, then you can use "gmdate" to get the real date in PHP:
UNIX_DATE = (EXCEL_DATE - 25569) * 86400
and to convert from Unix date to Excel date, use this formula:
EXCEL_DATE = 25569 + (UNIX_DATE / 86400)
After putting this formula into a variable, you can get the real date in PHP using this example:
$UNIX_DATE = ($EXCEL_DATE - 25569) * 86400;
echo gmdate("d-m-Y H:i:s", $UNIX_DATE);
@yaza-putu
yaza-putu / install-grav.md
Last active July 14, 2020 06:38
Grav is a Fast, Simple, and Flexible file-based Web-platform. There is Zero installation required. Just extract the ZIP archive, and you are already up and running. Although Grav follows principles similar to other flat-file CMS platforms, it has a different design philosophy than most. The name Grav is just a shortened version of the word Gravi…

grav V1.6

How to install Grav

Clone the Grav repository from GitHub to a folder in the webroot of your server, e.g. ~/webroot/grav. Launch a terminal or console and navigate to the webroot folder:

cd ~/webroot
git clone -b master https://github.com/getgrav/grav.git

Install vendor dependencies via composer:

@yaza-putu
yaza-putu / kali-repo.md
Last active July 14, 2020 09:32
repos kali linux 2020 indonesia
@yaza-putu
yaza-putu / laravue.md
Created June 8, 2020 14:13
Laravel + Vue

Laravel + Vue CLI 3 This demo assumes you are serving this Laravel app via Valet at laracon.test. If you are serving the laravel app at a different local URL, modify it accordingly in frontend/vue.config.js.

To Run the Frontend cd frontend yarn # OR npm install yarn serve # OR npm run serve

build for production:

yarn build # OR npm run build