Skip to content

Instantly share code, notes, and snippets.

View sohan5005's full-sized avatar

Sohan Zaman sohan5005

  • WPMU DEV (Incsub)
  • Khulna, Bangladesh
View GitHub Profile
@sohan5005
sohan5005 / curl-file-download.php
Last active March 10, 2019 20:29 — forked from damienalexandre/tool.php
Download large file from the web via php
<?php
/**
* Download a large distant file to a local destination.
*
* This method is very memory efficient :-)
* The file can be huge, PHP doesn't load it in memory.
*
* /!\ Warning, the return value is always true, you must use === to test the response type too.
*
* @author dalexandre
@sohan5005
sohan5005 / system-hide-unhide-file-or-directory.cmd
Created June 23, 2017 09:34
System hide/unhide a folder or file
@ECHO OFF
TITLE System Hide/Unhide directory or file
GOTO :SET_DIR
:SET_DIR
SET /P DIRNAME=Enter file/folder name:
IF NOT EXIST %CD%\%DIRNAME% GOTO :NOTHING_FOUND
@sohan5005
sohan5005 / markup.html
Created January 30, 2017 06:47
Easy setup for shuffle.js with filter system
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shuffle.js</title>
<style>
body {
max-width: 1170px;
margin: auto;
}
@sohan5005
sohan5005 / class-kc-section-importer.php
Last active August 23, 2017 21:30
A class that can can be used to have some default sections to King Composer for WordPress
<?php
if( class_exists( 'KC_Section_Importer' ) ) {
return;
}
class KC_Section_Importer {
/**
* Define the post_type & taxonomy to use
*/
@sohan5005
sohan5005 / cs-taxonomy
Created April 1, 2016 07:09
Using Codestar Framework Fields in taxonomy.
<?php
/**
* Taxonomy term options for Codestar Framework: https://github.com/Codestar/codestar-framework
*
* Contributed by http://themestones.net
*/
if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
if( ! class_exists( 'CSFramework_Taxonomy' ) ) :