Notes, fixes and guides.
Sixteen years of working notes on Linux and networking, Django and Laravel deployment, SwiftUI and AWS. Written down mostly so I can find them again.
WordPress: How to Fix the “Missing a temporary folder” Error
The "Missing a temporary folder" error typically stems from incorrect server configurations. When WordPress attempts to upload files or carry out temporary operations, it requires access to a temporary folder.
Stripe Fee Calculator and Formula with custom rates
Stripe Fee Calculator and Formula with custom rates. To calculate Stripe fees for a transaction, you can use the following formula: Total Fee = (Transaction Amount * Fee Percentage) + Fixed Fee. To calculate the amount to ask for with the stripe fee included, you can use the following formula: Ask For = (Transaction Amount + Fixed Fee) / (1 - (Fee Percentage / 100)).
Find the expiry of a Certificate that was used to sign an .ipa App file
Extract the ipa file: $ unzip -q App.ipa Extract Certificates: $ codesign -d --extract-certificates Payload/*.app $ openssl x509 -inform DER -in codesign0 -out codesign0.pem $ openssl x509 -inform…
How to upgrade Ubuntu server 20.04 to Ubuntu 22.04 (latest)
1. Let's fetch the latest version of the package list from the repositories. 8883500986aab41f8c49ac_000002 2. Upgrade the installed packages. 8883500986aab41f8c49ac_000003 3. Upgrade the distribution…
How to Convert a Apple Certificate .p12 file to a PEM File
To convert PKCS#p12 file to a PEM file, use: 8883500986aab41f8c49ac_000009 Now you will have both the certificate and key in the cert.pem file without a password. If you…
Python: Add Two or More Numbers – Linked List
Learn how to add two non-negative integers represented by linked lists in reverse order. Check out this Python code example.
Python: Two Sum Problem
Learn how to find indices of two numbers in an array that add up to a specific target using Python. Check out this code and examples.
Python: Stack with Push, Pop and seek Minimum Value with O(1)
Learn how to implement a stack with push, pop, and seekMin functions in Python 3 with a time complexity of O(1). Check out this code!
Python: Lowest Common Ancestor of a Binary Tree – Non Recursive
Python 3 code to find the Lowest Common Ancestor of a Binary Tree This is a Non Recursive solution using DFS method. 8883500986aab41f8c49ac_000017 8883500986aab41f8c49ac_000018 Hope it helps.
Python: Lowest Common Ancestor of a Binary Search Tree
Python 3 code to find the Lowest Common Ancestor of a Binary Search Tree 8883500986aab41f8c49ac_000019 Hope it helps.
Python: Array/List Rotation – Right
Python program to rotate an array towards its right Inplace Method 8883500986aab41f8c49ac_000020 Split and Merge Method 8883500986aab41f8c49ac_000021 Hope this helps.
Python: Array/List Rotation – Left
Python program to rotate an array towards its left Inplace Method 8883500986aab41f8c49ac_000022 Split and Merge Method 8883500986aab41f8c49ac_000023 Hope this helps.