Skip to content
Writing

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.

General Jun 30, 2023 2 min read

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.

Coding May 29, 2023 1 min read

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)).

Apple Jan 5, 2023 1 min read

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…

General Oct 14, 2022 1 min read

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…

Apple May 6, 2022 1 min read

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…

Coding Sep 28, 2018 1 min read

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.

Coding Sep 28, 2018 1 min read

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.

Coding Sep 27, 2018 1 min read

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!

Coding Sep 23, 2018 1 min read

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.

Coding Sep 22, 2018 1 min read

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.

Coding Sep 19, 2018 1 min read

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 Sep 18, 2018 1 min read

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.