Skip to content

Instantly share code, notes, and snippets.

@JoyceBabu
JoyceBabu / services-start.sh
Created January 13, 2026 07:39 — forked from b1tman1ac/services-start.sh
Multi SSID with VLAN script, for ASUS AC3100 with Merlin
#!/bin/sh
# references
# NVRAM reference = https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports
# Original Script Reference = https://gist.github.com/Jimmy-Z/6120988090b9696c420385e7e42c64c4
# Forked Script Reference = https://gist.github.com/tubaxiaosiji/d6c969797e470aa3eadfbfd6a966aa60
# This Script = https://gist.github.com/b1tman1ac/3d2cad0094e78a587f217a0720c9c11c
# multi SSID with VLAN script, for ASUS AC3100(4 port model + WAN port) with Merlin
#
@JoyceBabu
JoyceBabu / redir.md
Created August 7, 2024 07:31 — forked from romainl/redir.md
Redirect the output of a Vim or external command into a scratch buffer

Redirect the output of a Vim or external command into a scratch buffer

Usage (any shell)

Show full output of command :hi in scratch window:

:Redir hi

Show full output of command :!ls -al in scratch window:

@JoyceBabu
JoyceBabu / location-search.js
Created May 18, 2022 06:07
Location search for Prokerala API
// Visit https://api.prokerala.com/demo/birth-details.php to see the following code in action
const PK_API_CLIENT_ID = '';
(function () {
function loadScript(cb) {
var script = document.createElement('script');
script.src = 'https://client-api.prokerala.com/static/js/location.min.js';
script.onload = cb;
script.async = 1;
document.head.appendChild(script);
}
@JoyceBabu
JoyceBabu / Law-of-Demeter-with-PHP.md
Created January 3, 2021 17:47 — forked from k1paris/Law-of-Demeter-with-PHP.md
Law of Demeter with PHP (LoD)

Law of Demeter with PHP (LoD)

Law of Demeter or principle of least knowledge is a design guideline, that is using to make code more simple and stable.

Rules for module

  • Each unit should have only limited knowledge about other units: only units "closely" related to the current unit.
  • Each unit should only talk to his friends; don't talk to strangers.
  • Only talk to your immediate friends.