Skip to content

Instantly share code, notes, and snippets.

View tonyclemmey's full-sized avatar

Tony Clemmey tonyclemmey

  • London
View GitHub Profile
@tonyclemmey
tonyclemmey / install_libdb4.8.sh
Created June 28, 2022 20:17 — forked from darosior/install_libdb4.8.sh
Install libdb4.8 on Debian (from Ubuntu ppa) for i386 or amd64
#!/usr/bin/env bash
if [ "$#" -ne "1" ]; then
echo "usage :"
echo " $0 <amd64|i386>"
elif ! [ "$1" = "amd64" ] && ! [ "$1" = "i386" ]; then
echo "Bad architecture argument. First and only argument must be amd64 or i386."
else
mkdir "tmplibdb" && cd "tmplibdb"
if [ "$1" = "amd64" ]; then
@tonyclemmey
tonyclemmey / usps-remove-priority-flat-rate-envelopes.php
Last active October 2, 2022 12:57 — forked from woogists/usps-remove-priority-flat-rate-envelopes.php
[USPS Shipping Method] To remove all the USPS Priority Flat Rate envelopes, leaving only the Small, Medium, and Large Flat Rate boxes, add this to your theme's functions.php file:
<?php
/**
* Plugin Name: Woocommerce USPS Shipping Method remove flat rate envelopes
* Plugin URI: https://tcdesignio.co.uk
* Description: <code>Woocommerce USPS Shipping Method remove flat rate envelopes <strong> - TCDESIGN</strong></code>
* Version: 1.0.0
* Tested up to: 6.0
*/
/**
@tonyclemmey
tonyclemmey / netplan2NM.sh
Created November 24, 2022 12:40 — forked from dbkinghorn/netplan2NM.sh
Change Ubuntu 20.04 server netplan to use NetworkManager instead of networkd
#!/usr/bin/env bash
# netplan2NM.sh
# Ubuntu server 20.04 Change from netplan to NetworkManager for all interfaces
echo 'Changing netplan to NetowrkManager on all interfaces'
# backup existing yaml file
cd /etc/netplan
cp 01-netcfg.yaml 01-netcfg.yaml.BAK