Skip to content

Instantly share code, notes, and snippets.

Always working but happy to talk 👍

Aslam Doctor aslamdoctor

Always working but happy to talk 👍
Block or report user

Report or block aslamdoctor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aslamdoctor / margin-padding-helper.scss
Created Mar 26, 2020
Sass Margin / Padding Helper
View margin-padding-helper.scss
// Variables
// Mixins
@mixin paddings($top:$spacing-top, $bottom:$spacing-bottom){
@mixin margins($top:$spacing-top, $bottom:$spacing-bottom){
aslamdoctor / ci-pagination.php
Created Feb 27, 2020
Codeigniter Pagination
View ci-pagination.php
// new pagination here
$total_records = count($total);
$paging_config['base_url'] = base_url(uri_string()).'?sort='.$sort;
$paging_config['total_rows'] = $total_records;
$paging_config['per_page'] = 24;
$paging_config['num_links'] = 5;
$paging_config['page_query_string'] = TRUE;
$paging_config['use_page_numbers'] = TRUE;
aslamdoctor / ContextCmder-Disable.reg
Created Feb 7, 2020 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
View ContextCmder-Disable.reg
Windows Registry Editor Version 5.00
aslamdoctor /
Created Dec 27, 2019 — forked from avataru/
Laravel : Eloquent relationships cheat sheet
aslamdoctor /
Last active Dec 17, 2019
PM2 Commands for Nuxt
npm run build
pm2 start npm -- start # original command
pm2 start npm --name "aslam" -- start # naming the process
# once you name the proces, you can simple do 'pm2 start aslam' and 'pm2 stop aslam'
# other useful commands
pm2 delete all
pm2 stop process_name
aslamdoctor / nginx-nuxt-wordpress-config
Last active Dec 29, 2019
nginx configurations for Nuxt + WordPress
View nginx-nuxt-wordpress-config
map $sent_http_content_type $expires {
"text/html" epoch;
"text/html; charset=utf-8" epoch;
default off;
server {
listen 80;
listen [::]:80;
aslamdoctor / laravel-json-orderby.php
Created Nov 27, 2019
Laravel : Maintain Sort order in JSON Response
View laravel-json-orderby.php
$user = $request->user();
$submissions = $user->submissions;
// do these in the end
$submissions = $submissions->sortByDesc(function($submission){
return $submission->created_at;
$submissions = array_values($submissions->toArray());
aslamdoctor /
Last active Mar 16, 2020
Windows 10 - WSL LAMP Stack Setup
aslamdoctor / wp-list-thumbnail-sizes.php
Created Oct 4, 2019
Wordpress - List thumbnail sizes available
View wp-list-thumbnail-sizes.php
global $_wp_additional_image_sizes;
print '<pre>';
print_r( $_wp_additional_image_sizes );
print '</pre>';
aslamdoctor /
Last active Sep 17, 2019
Wordpress Plugin SVN Commands

To Clone Repo:

svn co my-local-dir

To Commit & Push Repo:

cd my-local-dir
svn add trunk/*
svn ci -m 'Adding first version of my plugin'
You can’t perform that action at this time.