Skip to content

Instantly share code, notes, and snippets.

View infinityonlinesolutions's full-sized avatar

Santosh Ramachandran infinityonlinesolutions

View GitHub Profile
@infinityonlinesolutions
infinityonlinesolutions / modifying-setup-wizard.php
Created August 10, 2020 06:41 — forked from claudiulodro/modifying-setup-wizard.php
WooCommerce Setup Wizard - Adding/Removing Setup Wizard steps.
<?php
/**
* This is simple demo showing how to add and remove steps for the WooCommerce Setup Wizard
*/
/**
* Add new steps to the setup wizard.
* To insert new steps in the middle use array_slice
*
<?php
// Usage:
//
// Copy the 2 functions below into your theme.
//
// Add the 'auto_install' attribute when registering the plugins:
//
// array(
// 'name' => 'Some Plugin',
@infinityonlinesolutions
infinityonlinesolutions / functions.php
Created January 22, 2021 09:33 — forked from maddisondesigns/functions.php
WooCommerce Custom Fields for Simple & Variable Products
/*
* Add our Custom Fields to simple products
*/
function mytheme_woo_add_custom_fields() {
global $woocommerce, $post;
echo '<div class="options_group">';
// Text Field
@infinityonlinesolutions
infinityonlinesolutions / Create-Custom-Fields-in-Woocommerce-Checkout-Page.md
Created January 22, 2021 09:39 — forked from nadeem-khan/Create-Custom-Fields-in-Woocommerce-Checkout-Page.md
Create Custom Fields in Woocommerce Checkout Page and Display them in Orders Details Page in Admin Area

Create Custom Fields in Woocommerce Checkout Page and Display them in Orders Details Page in Admin Area with this WordPress plugin:

<?php


/**
 * Plugin Name: Flowershop - WooCommerceCustomOverrides
 * Plugin URI: http://chillopedia.com
 * Description: Overrides WooCommerce Checkout Form Fields
  • Version: 1.0
@infinityonlinesolutions
infinityonlinesolutions / README.md
Created March 23, 2021 08:07 — forked from nikhilweee/registration_info.py
Get vehicle info from an Indian registration number

Programmatically extract owner info from Indian registration numbers

Usage

$ python owner.py MH02CL 0555
Registration No:
MH02CL0555
Registration Date:
@infinityonlinesolutions
infinityonlinesolutions / .htaccess
Created March 24, 2021 06:21 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@infinityonlinesolutions
infinityonlinesolutions / install-wp-plugins.php
Created April 25, 2021 08:17 — forked from hansschuijff/install-wp-plugins.php
Programmatically install and activate wordpress plugins
<?php
/**
* Plugin Name: Activate required plugins.
* Description: Programmatically install and activate plugins based on a runtime config.
* Version: 1.0
* Author: Hans Schuijff
* Author URI: http://dewitteprins.nl
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/

RKE2 commands

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@infinityonlinesolutions
infinityonlinesolutions / README.md
Created February 21, 2024 05:43 — forked from etiennetremel/README.md
Simple Wireguard setup as VPN server and multiple clients

Simple WireGuard configuration

1 server, 2 clients

Getting started

Install Wireguard on all machines.

Generate all keys