Skip to content

Instantly share code, notes, and snippets.

View fiko's full-sized avatar

Fiko Borizqy fiko

View GitHub Profile
@fiko
fiko / README.md
Last active April 1, 2024 15:15 — forked from Ademking/README.md
Laravel How to use Auto Increment with MongoDB (jenssegers)
  1. In your model, add these methods :
    /**
     * @var string this attribute used to define Primary Key of the collection
     */
    protected $primaryKey = '_id';

    /**
     * Generating next/new entity id
@fiko
fiko / Magento 2 - Quotes
Last active October 21, 2022 05:48 — forked from rafaelstz/Magento 2 - Remove all customer data
Remove all Magento 2 test Sample Data
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `quote`;
TRUNCATE TABLE `quote_address`;
TRUNCATE TABLE `quote_address_item`;
TRUNCATE TABLE `quote_id_mask`;
TRUNCATE TABLE `quote_item`;
TRUNCATE TABLE `quote_item_option`;
TRUNCATE TABLE `quote_payment`;
TRUNCATE TABLE `quote_shipping_rate`;
@fiko
fiko / AutoLogin
Created April 14, 2022 22:58 — forked from akbaryahya/AutoLogin
Script Auto Login Wifi.id dengan Mikrotik
:local currentQueue 0;
:local nolock true;
:local gurl "https://welcome2.wifi.id";
:local guxx "http://www.msftconnecttest.com/redirect";
:local username "";
:local password "";
:local int "WIFI";
:local gwp "WAG-DX-PTR";
:local mdlan "MSTMA000xx-N/TLK-CI-xx33x:xxx";
:local type "WzMS";