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 / 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

@yaza-putu
yaza-putu / kali-repo.md
Last active July 14, 2020 09:32
repos kali linux 2020 indonesia
@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 / 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 / gittag.md
Last active December 4, 2020 02:13
git push with tag Semantic Versioning

Manual Git Tag Semantic Versioning

v1.0.0 Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards compatible manner, and PATCH version when you make backwards compatible bug fixes. Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

list tag

@yaza-putu
yaza-putu / postman-linux.md
Created August 9, 2020 06:14
install-postman-onlinux

instalation

  • Tahap pertama kita download dulu aplikasi postman, biar cepet kita langsung aja download melalui terminal ya. ketik perintah berikut
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
  • extract file yang telah kita download dengan perintah berikut ini
sudo tar -xzf postman.tar.gz -C /opt
  • buat symbolic link dari file hasil extract ke directory /usr/bin agar dapat kita eksekusi aplikasinya. ketik perintah berikut ini
@yaza-putu
yaza-putu / jwt_laravel.md
Last active August 17, 2020 04:52
Install and config JWT Auth Laravel
@yaza-putu
yaza-putu / handel-validation-laravel-with-input-js.MD
Last active December 28, 2021 15:04
Handel laravel validation with input error in javascript with ajax

required format data json to integrate function handleValidation() in helper.js like this

{
  "errors": {
    "nama": [
      [
        "Nama wajib diisi"
      ]
    ],
    "email": [
@yaza-putu
yaza-putu / Turbolinks + Laravel.MD
Last active September 10, 2023 15:02
Install Turbolink Navigation in laravel