Skip to content

Instantly share code, notes, and snippets.

View Tanmoytkd's full-sized avatar
🏠
Working from home

Tanmoy Krishna Das Tanmoytkd

🏠
Working from home
View GitHub Profile
@Tanmoytkd
Tanmoytkd / install-gcc-9.sh
Created June 5, 2021 10:34 — forked from alexandreelise/README.md
Install gcc 9 on Ubuntu LTS 12.04,14.04,16.04 and 18.04
#!/usr/bin/env sh
sudo apt-get update -y && \
sudo apt-get upgrade -y && \
sudo apt-get dist-upgrade -y && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update -y && \
sudo apt-get install gcc-9 g++-9 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
@Tanmoytkd
Tanmoytkd / linux-usb-file-copy-fix.md
Created January 18, 2019 07:27 — forked from 2E0PGS/linux-usb-file-copy-fix.md
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

Keybase proof

I hereby claim:

  • I am tanmoytkd on github.
  • I am tanmoytkd (https://keybase.io/tanmoytkd) on keybase.
  • I have a public key ASAiVLlG_vUWcYuaAQTqm0dXD0ElR6m2rCHGeNoTSu-09Ao

To claim this, I am signing this object: