AKZN Notes

Archives for My Lazy and Forgetful Mind

Category: IT Stuff

Install Server Stack to Armbian for CVCMA

This article is my notes for step by step to install and configure set top box Armbian into kiosk device. List of Bugs browser failed to launch immediately solution : add sleep 60 before launching the browser display need to restart or reattach the hdmi cable if system rebooted. solution: use xrandr to relaunch the […]

General folder for react native (expo)

When you initialize an Expo React Native app, it follows a specific folder structure to help you organize your code and assets efficiently. Here’s the usual folder structure you’ll find in an Expo React Native project: your-project/ ├── App.tsx // Entry point of the app ├── app.json // Configuration file for Expo ├── assets/ // […]

Configuring DNS in Linux with resolv.conf

In Linux, you can configure DNS settings using the resolv.conf file. Here’s a quick guide to get you started: Open a terminal. Edit the resolv.conf file using a text editor: sudo nano /etc/resolv.conf Add your preferred DNS servers: nameserver 8.8.8.8 nameserver 8.8.4.4 Save the changes and close the text editor. To prevent overwriting, create a […]

Using dd Command with Windows 10 Using Cygwin

Using dd Command with Windows 10 Using Cygwin The dd command is a powerful tool commonly used in Unix-like operating systems for disk-related operations. While Windows 10 does not have a built-in dd command, you can leverage the capabilities of Cygwin to use dd in a Windows environment. Cygwin provides a collection of GNU and […]

Nmap Install & Usage

if you want to scan your network, you can use Nmap Nmap is a powerful network exploration and security auditing tool that can be used to discover hosts and services on a computer network. Here’s a tutorial on how to install and use Nmap on Linux: Installation: Open the terminal on your Linux system. # […]

Git Archieve only Changed File and folder on current commit

tl;dr use syntax below git diff-tree -r –no-commit-id –name-only –diff-filter=ACMRT $commit_id | tar -czf file.tgz -T – $commit_id = commit sha id you want to archieve to know commit id git log To exit git log command press q key. Git Archieve only Changed File and folder on current commit To create an archive of […]

Limit OpenVPN Client Bandwidth

How to Limit Client Bandwidth in OpenVPN OpenVPN is a popular open-source VPN protocol that allows users to connect securely to a remote network. While OpenVPN is designed to provide fast and reliable connectivity, it can be useful to limit client bandwidth to prevent congestion and ensure fair usage for all users. There are two […]

Archieving git master branch

first make sure you’re checkout to master branch git checkout master The correct syntax for zipping the master branch in Git using the git archive command with the output filename specified is: git archive –format=zip –output=[filename].zip HEAD This command creates a new zip file named master.zip containing the contents of the master branch. You can […]

How to Set up ZeroTier for Port Forwarding in OpenWrt

ZeroTier is a virtual network software that allows users to create a private network with ease. One of its features is the ability to perform port forwarding, which is crucial in accessing devices remotely. In this article, we’ll guide you on how to set up ZeroTier for port forwarding in OpenWrt. Step 1: Connect ZeroTier […]

How to backup and restore all mysql database from vps

how to backup all database To backup all MySQL data, you can follow these steps: Connect to your VPS: Log in to your VPS using SSH. Navigate to the MySQL data directory: MySQL data files are typically located in the /var/lib/mysql directory. Navigate to this directory by running the following command: cd /var/lib/mysql Create a […]