Skip to content

Instantly share code, notes, and snippets.

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

Kishore Chandra Sahoo kish2011

🏠
Working from home
View GitHub Profile
@kish2011
kish2011 / coupon-radio-button.php
Last active October 25, 2024 17:18
Add radio button below Add to Cart button
/**
* Snippet: Apply Coupon when a radio button is clicked on The Product Page
* Author: https://profiles.wordpress.org/kishores
* Url: https://upnrunn.com
* Note: Please make sure to create the coupon in the WC Admin
*/
// Add radio button below Add to Cart button
add_action( 'woocommerce_after_add_to_cart_button', 'add_coupon_radio_button', 10 );
function add_coupon_radio_button() {
@kish2011
kish2011 / hello.php
Created October 18, 2024 10:31
WooCommerce Product Collections
<?php
/*
Plugin Name: WooCommerce Product Collections
Plugin URI: http://upnrunn.com
Description: Set WooCommerce Product Collections based on Price range
Author: Kishore Sahoo
Version: 0.0.1
Author URI: http://upnrunn.com
*/
@kish2011
kish2011 / 01-introduction.md
Created October 5, 2024 06:38 — forked from gemmadlou/01-introduction.md
WordPress Composer Starter (Steps)

Develop WordPress as a Modern PHP Project with Composer


WordPress is popular because it's easy to setup without much technical know-how. However, to build a more robust PHP project with command line deployments, updates and ongoing maintenance, working with WordPress out-of-the-box raises specific challenges:


  • How can we make our WordPress projects portable between developers?
@kish2011
kish2011 / twitter-remove-retweets.js
Created August 30, 2024 07:23 — forked from antlionguard/twitter-remove-retweets.js
With this script, you can remove all retweets you are retweeted on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
// Unretweet normally
const unretweetTweet = async (tweet) => {
await tweet.querySelector('[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}
@kish2011
kish2011 / functions.php
Created January 24, 2024 15:46 — forked from sirbrillig/functions.php
Post file using wp_remote_post in WordPress
<?php
$local_file = 'file_path'; //path to a local file on your server
$post_fields = array(
'name' => 'value',
);
$boundary = wp_generate_password( 24 );
$headers = array(
'content-type' => 'multipart/form-data; boundary=' . $boundary,
);
@kish2011
kish2011 / PostgreSQL-EXTENSIONs.md
Created April 20, 2023 07:54 — forked from joelonsql/PostgreSQL-EXTENSIONs.md
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

@kish2011
kish2011 / lockbit_macos_string_decryption.py
Created April 18, 2023 06:25 — forked from X-Junior/lockbit_macos_string_decryption.py
Static String Decryption For Lockbit 3.0 MacOS Variant
'''
Author: Mohamed Ashraf (@X__Junior)
tested samples:
0be6f1e927f973df35dad6fc661048236d46879ad59f824233d757ec6e722bde
3e4bbd21756ae30c24ff7d6942656be024139f8180b7bddd4e5c62a9dfbd8c79
usage:
python3 lockbit_macos_string_decryption.py sample.bin
'''
@kish2011
kish2011 / self-hosted-email-server.md
Created March 24, 2023 18:08 — forked from F1LT3R/self-hosted-email-server.md
Self-Hosted Email Server

#Self-Hosted Email Server

This guide shows you how to set up a self-hosted email server.

##The Stack

Stack Diagram

###At The Core

@kish2011
kish2011 / hello-dolly.php
Created April 16, 2022 03:28
remove notices of hello dolly plugin.
add_action( 'admin_head', 'remove_notices');
function remove_notices() {
$current_screen = get_current_screen();
if ( $current_screen && ( 'woocommerce_page_trackipal/trackipal-admin' === $current_screen->id ) ) {
// Hello Dolly.
if ( function_exists( 'hello_dolly' ) ) {
remove_action( 'admin_notices', 'hello_dolly' );
}
}
}

What Hiring Should Look Like

This is definitely not the first time I've written about this topic, but I haven't written formally about it in quite awhile. So I want to revisit why I think technical-position interviewing is so poorly designed, and lay out what I think would be a better process.

I'm just one guy, with a bunch of strong opinions and a bunch of flaws. So take these suggestions with a grain of salt. I'm sure there's a lot of talented, passionate folks with other thoughts, and some are probably a lot more interesting and useful than my own.

But at the same time, I hope you'll set aside the assumptions and status quo of how interviewing is always done. Just because you were hired a certain way, and even if you liked it, doesn't mean that it's a good interview process to repeat.

If you're happy with the way technical interviewing currently works at your company, fine. Just stop, don't read any further. I'm not going to spend any effort trying to convince you otherwise.