Skip to content

Instantly share code, notes, and snippets.

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

mohitesachin217 mohitesachin217

🏠
Working from home
View GitHub Profile
@mohitesachin217
mohitesachin217 / owner-permission
Last active June 19, 2016 14:37
managing file ownership and permissions for linux
ownershop
-- chmod / chgrp
permission
-- files & folder
-- chmod
-- octal
-- umask
special permissons
@mohitesachin217
mohitesachin217 / wordpress-ftp-on-localhost
Created June 20, 2016 02:23
wordpress ftp credentials requirement on localhost override
define('FS_METHOD', 'direct');
add this line to stop wordpress asking for ftp while installing on localhost
@mohitesachin217
mohitesachin217 / new_gist_file_0
Last active August 16, 2016 12:35
get age from date of birth javascript code
function getAge(birth) {
ageMS = Date.parse(Date()) - Date.parse(birth);
age = new Date();
age.setTime(ageMS);
ageYear = age.getFullYear() - 1970;
return ageYear;
}