Skip to content

Instantly share code, notes, and snippets.

View amarilindra's full-sized avatar
💯
Focusing

Amar Ilindra amarilindra

💯
Focusing
View GitHub Profile
@amarilindra
amarilindra / Last-upadted-date-genesis
Last active March 24, 2022 06:05
Add this to code to your themes functions.php file to show last modified date in Genesis powered child themes
// Code for showing last updated date in Genesis Child Themes - (www.GeekDashboard.com)
add_filter( 'genesis_post_info', 'gd_post_last_modified_date' );
function gd_post_last_modified_date($post_info) {
if ( !is_page() ) {
$post_info = 'Last Updated on [post_modified_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}
}
@amarilindra
amarilindra / genesis-simple-edit-entry-meta-field
Last active March 24, 2022 06:02
Add this line in Genesis Simple Edits; Entry Meta (above content) field
To show Only Last Modified Date:
Last Updated on [post_modified_date] By [post_author_posts_link] [post_comments] [post_edit]
To show both Published Date and Last Modified Dates:
Published on [post_date], Last Updated on [post_modified_date] by [post_author_posts_link] [post_comments] [post_edit]
@amarilindra
amarilindra / comments-before-widget.php
Last active January 4, 2017 07:05
Widget Before Comments Section
//widget area right before the comments section
add_action( 'genesis_before_comments', 'my_widget_area' );
//Registering the widget area
genesis_register_sidebar( array( 'id' => 'after-post', 'name' => __( 'Before Comments ', 'geekdashboard' ), 'description' => __( 'Yoo This is the widget before Comments section.', 'geekdashboard' ), ) );
<?php
/*
* License: Copyright (c) 2008 Pawan Agrawal. All rights reserved.
*
* This code is part of commercial software and for your personal use
* only. You are not allowed to resell or distribute this script.
*
*/
/**
* MBPNinjaAffiliate - MaxBlogPress Ninja Affiliate Class
@amarilindra
amarilindra / custom-static-page-template.php
Created March 5, 2017 17:28
Home Page template of AmarIlindra.com
<?php
/**
* Template Name: Custom Static Page
*/
?>
<head>
<title>Amar Ilindra - Blogger | Entrepreneur | Dog Lover</title>
<meta name="description" content="Amar Ilindra is one of the finest blogger from India completed his Computer Science and Engineering. He loves to code under moonlight and pet his dog."/>
<meta name="robots" content="noodp"/>
<link rel="canonical" href="http://amarilindra.com/" />
@amarilindra
amarilindra / geek.cmd
Last active July 18, 2017 06:20
Fix Error 0x80070005 - Access is Denied in Windows
@echo off
setlocal
echo.
echo Determine whether we are on an 32 or 64 bit machine
echo.
if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto x86
@amarilindra
amarilindra / functions.php
Created September 4, 2018 17:03
Add Noindex and Nofollow meta tag to WordPress attachment pages
/*
*
* Author: Amar Ilindra
* URL: https://www.geekdashboard.com/
*
* Add this code in your themes function.php file
*/
/*
@amarilindra
amarilindra / pragmaSolidity.sol
Created November 13, 2018 12:02
Learn with the Smart Education Solution
//version 1.3
import "browser/SafeMath.sol";
import "browser/DateTime.sol";
contract ERC20 {
function totalSupply() public constant returns (uint256);
function balanceOf(address _owner) public constant returns (uint);
function transfer(address _to, uint _value) public returns (bool);
@amarilindra
amarilindra / VM_code.bat
Created November 27, 2018 14:21
Installing macOS (OS X) on Windows 10 PC or Laptop using Virtual Box
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "Name of your Virtual Machine" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "Name of your Virtual Machine" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "Name of your Virtual Machine" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "Name of your Virtual Machine" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "Name of your Virtual Machine" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "Name of your Virtual Machine" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
@amarilindra
amarilindra / sources.list
Created March 3, 2022 11:12
Installing Firefox Standard Version on ARM-based Chromebooks
[Desktop Entry]
Name=Firefox
Comment=Browse the World Wide Web
GenericName=Web Browser
X-GNOME-FullName=Firefox Web Browser
Exec=/home/USERNAME/firefox/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox-esr