Skip to content

Instantly share code, notes, and snippets.

View Prakash4844's full-sized avatar
💭
Probably bingeing something.

Prakash Prakash4844

💭
Probably bingeing something.
View GitHub Profile
@squarism
squarism / iterm2.md
Last active July 28, 2024 13:44
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@jamesmacwhite
jamesmacwhite / ffmpeg_mkv_mp4_conversion.md
Last active July 9, 2024 09:52
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example

@Prakash4844
Prakash4844 / How to fix a .gitignore that is not working.md
Created January 18, 2023 13:51
This Gist Try to to fix a .gitignore that is not working.

How to fix a .gitignore that is not working

Sometimes, your .gitignore suddenly stops working as in even though you have added files and folder in it, they are not actually being ignored by git and is still getting tracked.

it might happen due to you have added the .gitignore after you added these files(That are not being ignored) to the repo.

it happens because, the files are already added to the repo before it could be ignored as .gitignore was created after the actual files in the repo.

@Prakash4844
Prakash4844 / How to Setup endeavourOS for Gaming.md
Last active May 18, 2024 09:28
how to set up EndeavourOS for gaming on Linux.

How to set up EndeavourOS for gaming on Linux.

EndeavourOS

EndeavourOS styles itself as Terminal-centric Arch based Linux distribution, which means that you will be expected to use the Terminal for installation of everything from drivers, software, and kernels.

Step 1. Update The System.

Since EndeavourOS is classed as a rolling release distribution, this does mean that your system will be frequently updated, and from a gaming perspective, this will give you access to drivers and bug fixes faster than other distributions such as Ubuntu.

@Prakash4844
Prakash4844 / CrossOver.sh
Created November 12, 2023 16:52 — forked from santaklouse/CrossOver.sh
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS