Skip to content

Sarankumar

Just a Developer Blog

  • About me
  • Contact me
  • WordPress
    • My Plugins
    • Plugins
  • Portfolio

 

Categories: UncategorizedAuthor adminPosted on Sep 27, 2019Oct 26, 2019No comment on How To Export/Import Large Database On MAMP

How To Export/Import Large Database On MAMP

It should be done via terminal as below. In the terminal navigate to bin folder of MAMP using below command cd /Applications/MAMP/library/bin Use this command […]

Categories: UncategorizedAuthor adminPosted on Sep 23, 2019Sep 23, 2019No comment on Get date from mongoid using Php

Get date from mongoid using Php

function getDatefromMongoID($mongoId) { $timestamp = intval(substr($mongoId, 0, 8), 16); $datum = (new DateTime())->setTimestamp($timestamp); return $datum->format(‘d/m/Y’); }

Categories: UncategorizedAuthor adminPosted on Aug 27, 2019No comment on Install mongodb in easyengine

Install mongodb in easyengine

step 1 : ee shell yatramantra.com “pecl install mongodb” –user=root step 2: edit /opt/easyengine/sites/example.com/config/php/php.ini step 3: add “extenion=mongodb.so”

Categories: UncategorizedAuthor adminPosted on Aug 21, 2019Aug 22, 2019No comment on Setup mongodb in 5 minutes mac

Setup mongodb in 5 minutes mac

How to Setup MongoDB on MAMP in 5 minutes list brew services brew services list stop server brew services stop mongodb-community;  

terminal mac
Categories: UncategorizedAuthor adminPosted on Aug 1, 2019Aug 1, 2019No comment on Edit host file in mac

Edit host file in mac

Step 1:  Open terminal and type following command and press enter key. sudo nano /private/etc/hosts Step 2: edit file according to your requirement. make sure […]

find files with pattern
Categories: UncategorizedAuthor adminPosted on Dec 16, 2018Dec 18, 2018No comment on Find all files contains a string -Easyway through Terminal

Find all files contains a string -Easyway through Terminal

grep -rnw ‘/path/to/somewhere/’ -e ‘pattern’ Eg: grep -rnw ‘/var/www/sarankumar.xyz/htdocs/’ -e ‘google.com’ -r or -R is recursive, -n is line number, and -w stands for match […]

woocommerce cart price override
Categories: WordpressAuthor adminPosted on Dec 15, 2018Dec 18, 2018No comment on WooCommerce add product to cart with price override

WooCommerce add product to cart with price override

some times we need to woocommerce change product price programmatically. add_action( ‘woocommerce_before_calculate_totals’, ‘add_custom_price’ ); function add_custom_price( $cart_object ) { $custom_price = 10; // This will be […]

Categories: My Plugins WordpressAuthor adminPosted on Dec 15, 2018Dec 18, 2018No comment on Flexslider for WordPress Native Gallery

Flexslider for WordPress Native Gallery

WordPress plugin that create an awesome flexslider gallery instead of the default static thumbnails.No custom classes or extra posts necessary, just use the normal add […]

adminbar manager
Categories: My Plugins WordpressAuthor adminPosted on Dec 14, 2018Dec 18, 2018No comment on Adminbar Default Menu Manager

Adminbar Default Menu Manager

Plugin help to remove some default admin bar menus. WordPress logo,sitename,comments,updates,loginout etc can be easily removed. Also you can change the color of the adminbar […]

upload files via terminal
Categories: ServerAuthor adminPosted on Dec 14, 2018Feb 3, 2019No comment on Uploading local folder and files to server easily using terminal

Uploading local folder and files to server easily using terminal

If your server setup support SSH then use following code to upload the folders from local system. scp -r mydirectory [email protected]:destdir The -r means “recursive” so it […]

foundation zurb angular
Categories: AngularAuthor adminPosted on Dec 14, 2018Dec 18, 2018No comment on Foundation sites 6.5.x with angular 7.x

Foundation sites 6.5.x with angular 7.x

Step 1: Create a new angular app by following command. ng new my-foundation-app Step 2: change directory to new created app folder. cd my-foundation-app Step […]

Categories: UncategorizedAuthor adminPosted on Dec 14, 2018Dec 18, 2018No comment on WordPress Gutenberg – My views and Reviews

WordPress Gutenberg – My views and Reviews

I have using wordpress for my clients and personally using for  business purpose too. While checking with wordpress gutenburg I can see that the most […]

first angular app
Categories: AngularAuthor adminPosted on Dec 14, 2018Dec 18, 2018No comment on Creating first Angular 6 Application in Mac

Creating first Angular 6 Application in Mac

This is angular 6 tutorial for beginners. Steps you need to do is: Install Nodejs Install NPM(Package manager will automatically install while installing Nodejs) Install […]

Posts navigation

Previous Page 1 Page 2

Categories

  • Angular
  • My Plugins
  • MySql
  • Server
  • Uncategorized
  • Wordpress

Recent Posts

  • How To Export/Import Large Database On MAMP
  • Get date from mongoid using Php
  • Install mongodb in easyengine
  • Setup mongodb in 5 minutes mac
  • Edit host file in mac
Sarankumar.xyz | Sitemap