Skip to content

Instantly share code, notes, and snippets.

@bewithdhanu
bewithdhanu / upgrade_python_3.10_to_3.11.md
Last active April 7, 2025 07:41
Upgrade Python 3.10 to 3.11 on Ubuntu 22.04

Check python version use python and python3

The first comman will Not show version info.

The second one show 3.10 as version as it is provided by ubuntu as default

python --version
python3 --version

Add additional repository to download python 3.11

@amanjuman
amanjuman / SendMail with Office365 SMTP Relay
Created September 28, 2021 20:40
SendMail with Office365 SMTP Relay
// Update Packages
sudo apt-get update && sudo apt-get -y upgrade && sudo apt dist-upgrade -y && sudo apt-get autoremove -y
// Setup Hostname
hostnamectl set-hostname subdomain.domain.tld
// Create Host Record
sudo nano /etc/hosts
// Add this line

If error

Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.
Done.

On Linux Mint 20 before HP hplip setup you need install

@mcharytoniuk
mcharytoniuk / Makefile
Last active November 24, 2024 18:44
Create self-signed certificate for local development.
PASS=yourcertificatemasterpassword
SUBJ=/C=PL/ST=MyState/L=MyLocation/O=MyOrganization/OU=MyOrganisationUnit/CN=localhost/emailAddress=admin@localhost
# Targets
localhostCA.crt: localhostCA.pem
openssl x509 \
-in localhostCA.pem \
-inform PEM \
-out localhostCA.crt
@diggeddy
diggeddy / Elementor Price Table Align Height
Created November 17, 2018 00:22
Force same height on all pricing tables in a row and push footer to bottom
.elementor-widget-price-table, .elementor-widget-price-table>div, .elementor-price-table {
height: 100%;
}
.elementor-price-table {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
@csalzano
csalzano / elementor-form-additional-webhook.php
Last active September 27, 2024 17:35
Elementor Form additional webhook example
<?php
/**
* Plugin Name: Elementor Form Additional Webhook
* Plugin URI: https://gist.github.com/csalzano/dfd754e0fe8b6ac10731fad8f257c0bf
* Description: Adds a second Webhook to an Elementor form
* Version: 1.0.1
* Author: Corey Salzano
* Author URI: https://breakfastco.xyz/
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@jayllellis
jayllellis / custom-action-url.php
Last active August 3, 2021 08:34
Custom Contact Form 7 action URL
<?php
// Place this in your functions.php file
add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url');
function wpcf7_custom_form_action_url(){
return 'send.php';// replace this with the new action url (excluding the 'http://')
}
?>
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@pensierinmusica
pensierinmusica / monit-conf
Last active February 7, 2016 09:55
Monit control file (http://mmonit.com/monit/)
###############################################################################
## Monit control file
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
##
## Below you will find examples of some frequently used statements. For
## information about the control file and a complete list of statements and
## options, please have a look in the Monit manual.
@Sloy
Sloy / AutoSummaryListPreference
Created June 29, 2013 13:16
Android custom ListPreference which shows its selected value as summary, as suggested in the official guidelines. No need to use OnPreferenceChangeListener in the Activity or anything like that. Only assign entries and entryValues.
package com.your.package;
import android.content.Context;
import android.preference.ListPreference;
import android.util.AttributeSet;
/**
* Created by Rafa Vázquez on 29/06/13.
*
* ListPreference item that shows its selected value as summary.