Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View sojimaxi's full-sized avatar
💻
Working on something awesome! ;)

Oluwasoji Ojo sojimaxi

💻
Working on something awesome! ;)
View GitHub Profile
@sojimaxi
sojimaxi / uninstall_python_macos.sh
Created July 19, 2025 16:27
A simple uninstaller for python on macOS via the python.org downloaded installers. This was created with the help of Google AI (Gemini) and refined to work correctly by me.✌️
#!/bin/bash
# WARNING: This script attempts to uninstall a Python version installed via the macOS installer.
# Use with EXTREME CAUTION. Incorrect usage can damage your macOS installation.
# It is HIGHLY RECOMMENDED to have a full system backup (Time Machine) before proceeding.
# This script is provided as a guide and you are responsible for its use.
# It will prompt you before deleting files.
echo "--- Python Uninstaller Script (macOS Installer Version) ---"
echo "This script attempts to remove files associated with a Python installation."
@sojimaxi
sojimaxi / smart_cherry_pick.py
Created April 10, 2025 14:01
Smart Git Cherry Pick using Python
"""
Smart Git Cherry Pick
Developed with help of AI
"""
import subprocess
import sys
import argparse
import shlex
@sojimaxi
sojimaxi / For Mac 4.2.6 unlimited trial.md
Created August 21, 2024 04:18 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@sojimaxi
sojimaxi / wordpress-plugin-svn-to-git.md
Created December 25, 2023 06:46 — forked from kasparsd/wordpress-plugin-svn-to-git.md
Using Git with Subversion Mirroring for WordPress Plugin Development

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@sojimaxi
sojimaxi / functions.php
Created November 2, 2022 15:41 — forked from Genyus/functions.php
Fix for broken Elementor landing pages when using custom permalinks (v3.4.3+)
/**
* Fixes landing page 404 when non-standard permalinks are enabled.
*
* @param \WP_Query $query
*/
function elementor_pre_get_posts( \WP_Query $query ) {
if (
// If the post type includes the Elementor landing page CPT.
class_exists( '\Elementor\Modules\LandingPages\Module' )
&& is_array( $query->get( 'post_type' ) )
@sojimaxi
sojimaxi / minio_mc.sh
Created December 21, 2021 14:26 — forked from aliartiza75/minio_mc.sh
Command to use mini/mc with minio server
# Step 1 : Start minio server with non-persistent data storage policy
#
# Description: -p 9000:9000: Minio server runs on port 9000 inside the docker container, -e 9000:9000 command is exposing the internal port on
# on external port.
#
# -e "MINIO_ACCESS_KEY=access_key": It sets an envrionment variable inside container named as MINIO_ACCESS_KEY
# with the value provided by user. It will be used when a user wants to access
# minio server
#
# -e "MINIO_SECRET_KEY=access_key_secret": It sets an envrionment variable inside container named as MINIO_SECRET_KEY
@sojimaxi
sojimaxi / countries.enum.ts
Created April 28, 2021 08:40 — forked from kyranjamie/countries.enum.ts
TypeScript enum Country Codes ISO 3166
export enum Country {
Afghanistan = 'AF',
AlandIslands = 'AX',
Albania = 'AL',
Algeria = 'DZ',
AmericanSamoa = 'AS',
Andorra = 'AD',
Angola = 'AO',
Anguilla = 'AI',
Antarctica = 'AQ',
@sojimaxi
sojimaxi / Application.js
Created November 1, 2017 10:06 — forked from koistya/App.js
How to add `onscroll` event in ReactJS component
'use strict';
var React = require('react');
var ExecutionEnvironment = require('react/lib/ExecutionEnvironment');
var Application = React.createClass({
componentDidMount() {
if (ExecutionEnvironment.canUseDOM) {
document.documentElement.addEventListener('scroll', this.handleScroll);
@sojimaxi
sojimaxi / meta-tags.md
Created July 2, 2016 23:25 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>