Skip to content

Instantly share code, notes, and snippets.

View yashkumaratri's full-sized avatar
☂️
:)

Yash Kumar Atri yashkumaratri

☂️
:)
View GitHub Profile
@yashkumaratri
yashkumaratri / repaire-damaged-ext-drive.sh
Created July 5, 2024 15:21 — forked from kabacs/repaire-damaged-ext-drive.sh
Repairing damaged external drive (flash drive) on OS X
# If "Disk Utility" can't erase a demaged disk and throw errors, like these:
# a) "-69888: Couldn't unmount disk";
# b) "Couldn't modify partition map".
# You can repair disk (if it is damaged partially, just by a program error, while changing partition map of a disk in) by
# FULL ERASING OF A DISK - you can do that ONLY in A COMMAND LINE, using "diskutil" command (on OS X)
# 1. Firstly you must get path of a drive in a system, like this:
diskutil list
# Than complete erasing of a disk:
diskutil eraseDisk free EMPTY /dev/disk4
@yashkumaratri
yashkumaratri / git-lfs-install.md
Created August 12, 2024 02:12 — forked from pourmand1376/git-lfs-install.md
Single User Installation of Git-LFS without sudo

I wanted to install GIT-Lfs on my user account without access to server root account. I write this to my future self.

  1. Download tar.gz file from git-lfs website.
wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-linux-amd64-v3.2.0.tar.gz

2.Untar it

tar xvf git-lfs-linux-amd64-v3.2.0.tar.gz
@yashkumaratri
yashkumaratri / tmux_install_without_sudo.sh
Created January 28, 2025 19:28
Installing Tmux without sudo on linux based environments
wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
tar xvzf libevent-2.1.12-stable.tar.gz
cd libevent-2.1.12-stable.tar.gz
./configure --prefix=$HOME/local --disable-shared
make
make install
cd ..
wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.5.tar.gz
tar xvzf ncurses-6.5.tar.gz
cd ncurses-6.5
@yashkumaratri
yashkumaratri / Moralai.pelican
Last active April 17, 2025 15:54
Moral.ai book
https://webtor.io/9cdd25cda5fef8a9cf921222e2b37a22a3b3b5cd
@yashkumaratri
yashkumaratri / console.run
Created October 30, 2025 16:48
Speed up videos on the stupid igotkarmayogi.gov.in platform
(() => {
const RATE = 2; // set 1.25, 1.5, 1.75, 2.0
const setRate = m => {
try {
m.defaultPlaybackRate = RATE;
m.playbackRate = RATE;
if ('preservesPitch' in m) m.preservesPitch = false;
if ('webkitPreservesPitch' in m) m.webkitPreservesPitch = false;
} catch (_) {}