Skip to content

Instantly share code, notes, and snippets.

View hamzahjamad's full-sized avatar
🏞️
Learning things.

Hamzah Jamad hamzahjamad

🏞️
Learning things.
View GitHub Profile
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon
@hamzahjamad
hamzahjamad / main.py
Created August 15, 2021 10:27
popcat-clicker
import unittest
import time
from selenium import webdriver
class PythonOrgSearch(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome(
"D:\laragon\www\popcat-clicker\chromedriver.exe")
@hamzahjamad
hamzahjamad / add-tracking-information-into-woocomerce-order-email-using-trackingmy.php
Last active August 16, 2023 09:14
Add tracking.my shippment tracking number to woocommerce email order
<?php
// The plugin: https://www.tracking.my/integration/woocommerce
//
// To integrate tracking.my shipment tracking number to woocomerce order email
// add below function to functions.php
// Tracking.my add tracking number to email
function add_tracking_info_to_order_email( $order, $sent_to_admin, $plain_text, $email ) {
// Get the order ID