Skip to content

Instantly share code, notes, and snippets.

@kaisargaming
kaisargaming / UuidModel.php
Created December 30, 2021 13:36 — forked from danb-humaan/UuidModel.php
Trait for implementing UUIDs in Laravel models
<?php
namespace App\Traits;
use Rhumsaa\Uuid\Uuid;
use Illuminate\Database\Eloquent\ModelNotFoundException;
/**
* Trait UuidModel
* @package App\Traits
@kaisargaming
kaisargaming / games-removal-check.md
Created May 16, 2020 07:05
Games removal checklist

Games Removal Checklist

Files and db table modified

  • view/head.php Mega menu slot, live casino (gd & sunbet), sport (wft) kalau ada, cockfight (cockft)
  • x_games table in db - Removes all provider TGP, WFT
> DELETE FROM x_games WHERE api='TGP';
> DELETE FROM x_games WHERE api='WFT';
@font-face {
font-family: SegoeUI;
src:
local("Segoe UI Light"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff2) format("woff2"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff) format("woff"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.ttf) format("truetype");
font-weight: 100;
}
@kaisargaming
kaisargaming / wordpress-canonical-redirect-upload-setup.md
Last active October 7, 2019 06:59
Setup canonical link di WordPress dan Rewrite URL untuk folder upload

Canonical Link Setup di WordPress

Simple setup canonical link di WordPress melalui theme file dan implementasi RewriteUrl di htaccess khusus untuk folder uploads

Canonical link

Canonical link digunakan untuk memberikan informasi kepada pihak lain, dalam hal ini Search Engine, mengenai Preferred URL dari sebuah URL tertentu untuk menghindari duplicate content.

Melalui setup yang tepat, canonical link dapat dimanfaatkan untuk menggabungkan SERP dari masing-masing URL di Website berbeda dengan content yang identikal.

@kaisargaming
kaisargaming / npm-cloudlinux.md
Created July 2, 2019 15:39 — forked from mcnamee/npm-cloudlinux.md
Install Node / NPM into CloudLinux

How to install Node.js & NPM on CentOS with CloudLinux and CageFS

Add node.js yum repository

yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -

Install node.js and NPM

yum install nodejs

@kaisargaming
kaisargaming / nginx-ssl-security-enhancement.md
Created May 24, 2019 08:35 — forked from tajidyakub/nginx-ssl-security-enhancement.md
Implementasi SSL di nginx dengan security enhancement actions tambahan
@kaisargaming
kaisargaming / certbot-dns-challenges.md
Created May 24, 2019 08:33 — forked from tajidyakub/certbot-dns-challenges.md
Obtaining let's encrypt certificate using dns as the preferred challenge
$ certbot certonly --manual --cert-name <cert-name> -d <host.domain.name> --agree-tos -m <[email protected]> --preferred-challenge dns-01 
@kaisargaming
kaisargaming / file-system-changes-recursive-linux.md
Created May 24, 2019 08:33 — forked from tajidyakub/file-system-changes-recursive-linux.md
Monitor perubahan file system secara recursive di linux

Watcher.py untuk Monitoring File System secara recursive

Script python beserta contoh konfigurasinya dapat dipelajari melalui https://github.com/splitbrain/Watcher.git

$ cd ~/
$ git clone https://github.com/splitbrain/Watcher.git
$ cd Watcher
$ chmod +x watcher.py