Skip to content

Instantly share code, notes, and snippets.

View husanisantos's full-sized avatar
🏠
Working from home

Husani Santos husanisantos

🏠
Working from home
View GitHub Profile
@husanisantos
husanisantos / readydedis.com.conf
Created August 3, 2022 03:04 — forked from Bharat-B/readydedis.com.conf
nGINX rewrite rules for whmcs 8
server {
listen 80 default_server;
server_name readydedis.com www.readydedis.com;
return 301 https://readydedis.com$request_uri;
}
# HTTPS server
#
server {
listen 443;
@husanisantos
husanisantos / ContextCmder-Disable.reg
Created May 24, 2022 18:47 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
<?php
$number = 25;
echo $number[0];
//echo secondFunction($number)
function convertToName($number) {
if($number <= 9 ) {
if($number == 0) {
@husanisantos
husanisantos / add_custom_column_to_edit_tag.php
Created September 8, 2017 01:51 — forked from simongcc/add_custom_column_to_edit_tag.php
Adding custom column displaying in Wordpress Manage Category/Custom Taxonomy editing page
/*
Purpose: add custom column header and custom column content to respective custom header in Manage Category Editing Page
Version Tested: 3.8
Story:
Because I found no explanation nor documents in Wordpress.org, I tried to trace the code in wp-admin folder
after understanding the operation of apply_filter(), add_action() and add_filter()
Logic:
The table list in edit_tag.php is based on