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.

AWS Jul 21, 2023 1 min read

How To Mount an AWS S3 bucket on an Ubuntu Server

To mount an AWS S3 bucket on Ubuntu, you can use a tool called "s3fs." S3fs allows you to access your AWS S3 bucket as if it were…

Ubuntu Jul 6, 2023 2 min read

How To Mount a Remote hard drive on an Ubuntu server

If you want to mount a remote hard drive on an AWS Ubuntu instance, you can use the SSHFS (SSH File System) utility. SSHFS allows you to mount…

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. 11262326536ac0d65156475_000013 2. Upgrade the installed packages. 11262326536ac0d65156475_000014 3. Upgrade the…

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: 11262326536ac0d65156475_000020 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. 11262326536ac0d65156475_000028 11262326536ac0d65156475_000029 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 11262326536ac0d65156475_000030 Hope it helps.