Skip to content

Instantly share code, notes, and snippets.

View 4i8's full-sized avatar

Arth 4i8

View GitHub Profile
4i8 /
Last active August 1, 2023 02:10
The provided code adds a convenient "Copy" button to the CrowdIn translation section, streamlining the process of copying texts. It allows you to quickly copy text content without having to manually select and copy. Simply click the "Copy" button next to the desired text, and it will be copied to your clipboard.


- Open the translation section on [CrowdIn](
- Press F12 to open the developer console. or use [tampermonkey](
- Paste the code in the console and hit Enter.
- A "Copy" button will appear next to each text and A "Copy All" add in navbar
- Click the "Copy" button to copy the respective text to your clipboard.
- If you want to use GPT prompt for translation, include your desired prompt within the parentheses on the last line of the code. If not, leave the parentheses empty. - This script enhances the translation workflow, making it easier and faster to copy content, saving valuable time. Enjoy a smoother translation experience with this handy utility!

"Your prompt"; To enable GPT prompt

4i8 /
Created April 30, 2023 09:09
This Gist provides the steps to add a custom resolution to your primary display on Ubuntu 22.04. It uses the cvt and xrandr commands to generate the timings for the new resolution and add it to your primary display.

Here are the steps to add a custom resolution to your primary display on Ubuntu 22.04:

  1. First, you need to generate the timings for your desired resolution and refresh rate. You can use the cvt command to generate the timings. For example, if you want to add a resolution of 1920x1080 at 60Hz, you can run the following command:
cvt 1920 1080 60

This will output the timings you need to add the resolution. image

4i8 /
Created March 29, 2023 02:52
This is a simple explanation of software versioning using the A.B.C format, where A represents the major version, B represents the minor version, and C represents the patch version. I also included examples of how the version numbers can be incremented to indicate changes to the software. My aim was to provide a clear and concise overview of sof…


A => Major

B => Minor

C => Patch

Major: Major changes, not backwards-compatible

Minor: Minor changes, backwards-compatible

Patch: Bug fixes, security updates

Format:v1.2.3❌️ Not Recommended


if Major++[increase]