Skip to content

Instantly share code, notes, and snippets.

View infinityonlinesolutions's full-sized avatar

Santosh Ramachandran infinityonlinesolutions

View GitHub Profile
@infinityonlinesolutions
infinityonlinesolutions / paddle-wh-verify.php
Created October 16, 2024 11:23 — forked from tempelmann/paddle-wh-verify.php
Paddle.com webhook verification (PHP)
// https://developer.paddle.com/webhooks/signature-verification shows code using a `Verifier` class
// to check that the message from Paddle is authentic.
// Sadly, it doesn't explain where the value for the `$request` variable comes from. It seems you need to use
// the PSR framework for that, but I was unable to find a way to use it for getting the data for the POST
// I am handling in my webhook handler.
// Fortunately, I was able to resolve this by looking into the code of the Verifier class from the SDK.
// Here's a version that does not rely on PSR. You still haveo to install Paddle's PHP SDK, though,
// see https://github.com/PaddleHQ/paddle-php-sdk/
require_once 'vendor/autoload.php'; // the path to your vendor dir created with "composer" tool
@infinityonlinesolutions
infinityonlinesolutions / INSTALL.md
Created August 10, 2024 12:24 — forked from s-lyn/INSTALL.md
Configure Kubernetes Dashboard Web UI hosted with Nginx Ingress Controller
@infinityonlinesolutions
infinityonlinesolutions / README.md
Created June 23, 2024 05:39 — forked from gilangvperdana/README.md
Kubernetes with KubeSpray on BareMetal Ubuntu Server 20.04 LTS

Kubernetes with KubeSpray on BareMetal Ubuntu Server 20.04 LTS

Provisioning Kubernetes Cluster BareMetal with KubeSpray

Environment

2x Ubuntu Server 20.04LTS
@infinityonlinesolutions
infinityonlinesolutions / install-buildkit.sh
Created June 6, 2024 06:43 — forked from jniltinho/install-buildkit.sh
Enable BuildKit Docker Ubuntu 22.04|24.04
#!/bin/bash
#
# https://docs.docker.com/build/buildkit/
# https://github.com/docker/buildx/releases/
# https://github.com/docker/buildx
VERSION=v0.14.1
mkdir -p $HOME/.docker/cli-plugins
@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

RKE2 commands

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@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
*/
@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 / 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: