Skip to content

Instantly share code, notes, and snippets.

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

Anibal anibalardid

🏠
Working from home
View GitHub Profile
@anibalardid
anibalardid / woocommerce-new-custom-payment-gateway.php
Created December 5, 2020 03:19
WooCommerce add new custom payment gateway
<?php
// CASH PAYMENT GATEWAY
/**
* Add the gateway to WC Available Gateways
*
* @since 1.0.0
* @param array $gateways all available WC gateways
* @return array $gateways all WC gateways + offline gateway
@anibalardid
anibalardid / zsh-ohmyzsh-powerlevel10k.txt
Created January 28, 2022 12:56
zsh powerlevel10k-ohmyzsh
https://ohmyz.sh/
https://safjan.com/top-popular-zsh-plugins-on-github/
https://github.com/b4b4r07/enhancd
https://awesomerank.github.io/lists/unixorn/awesome-zsh-plugins.html
@anibalardid
anibalardid / changelog_generator.sh
Last active December 1, 2021 18:43
CHANGELOG.md Generator for github and gitlab
#!/bin/bash
# This generator use the conventional commits:
# <type>[optional scope]: <description>
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ] || [ -z "$5" ]
then
echo -e "ERROR: Missing Parameters\n"
echo -e "Command: \n./changelog.sh {REPOSITORY_URL} {LATEST_TAG} {PREVIOUS_TAG} {RELEASE_DATE} {VERSION}\n"
echo -e "Example: \n./changelog.sh \"http://gitlab.com/asd/asd\" \"2021-11-26\" \"v4.1.1\" \"v4.1.1\" \"v4.2.1\" \n"
exit 9999 # die with error code 9999
@anibalardid
anibalardid / changelog
Created November 26, 2021 19:12 — forked from dennisreimann/changelog
CHANGELOG generator
#!/usr/bin/env ruby
#
# CHANGELOG generator
#
# Usage:
#
# $ changelog [SINCE UNTIL]
#
# This script collects git commits from a given range (SINCE and UNTIL
# are optional refs, SINCE defaults to the last tag, UNTIL to HEAD).
@anibalardid
anibalardid / changelog.sh
Created November 26, 2021 14:14 — forked from kingkool68/changelog.sh
Bash script to generate a markdown change log of GitHub pull requests between tagged releases
#!/bin/bash
# Generate a Markdown change log of pull requests from commits between two tags
# Author: Russell Heimlich
# URL: https://gist.github.com/kingkool68/09a201a35c83e43af08fcbacee5c315a
# HOW TO USE
# Copy this script to a directory under Git version control
# Make the script executable i.e. chmod +x changelog.sh
# Run it! ./changelog.sh
# Check CHANGELOG.md to see your results
@anibalardid
anibalardid / git-rm-repository-history.txt
Created November 15, 2021 13:34
git rm file and folders from history repository
https://dalibornasevic.com/posts/2-permanently-remove-files-and-folders-from-a-git-repository
@anibalardid
anibalardid / ubuntu-disable-energy-power-sleep-session.txt
Created October 18, 2021 21:19
disable my system from going to sleep
https://askubuntu.com/questions/47311/how-do-i-disable-my-system-from-going-to-sleep
@anibalardid
anibalardid / disable-calendar-gnome-notification-reminder.txt
Created September 30, 2021 12:53
disable gnome calendar notifications popup
Try copying /etc/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop
to ~/.config/autostart/ and then add Hidden=true to that file.
Then restart your session and check if evolution-alarm-notify is still running.
@anibalardid
anibalardid / wp-cli-all-in-one-wp-migration.md
Last active September 28, 2021 01:58
all in one wp migration - cli #WordPress #ai1wm #backups