Skip to content

Instantly share code, notes, and snippets.

View debaraj-barua's full-sized avatar
🧙‍♂️
“Hat = wizard, wizard = hat. Everything else is frippery.”

Debaraj Barua debaraj-barua

🧙‍♂️
“Hat = wizard, wizard = hat. Everything else is frippery.”
View GitHub Profile
@debaraj-barua
debaraj-barua / vim-cheat.md
Last active August 13, 2020 11:57
VIM cheat sheet
  • Move split to new tab: <C-W>T
  • Resize splits:
    • Decrease/Increase width: <C-w> 5 </<C-w> 5 > or :vertical resize -5/:vertical resize +5
    • Decrease/Increase height: <C-w> 5 -/<C-w> 5 + or :resize -5/:resize +5
    • Resize all windows to equal dimensions based on their splits, you can use <C-w> =
    • Increase a window to its maximum height, use <C-w> _.
  • Increase a window to its maximum height, use |.
@debaraj-barua
debaraj-barua / ubuntu16WifiResume.md
Last active October 30, 2019 00:33
After waking up from suspend, the `network-manager` stops showing Wi-Fi networks, (although the Wi-Fi connection may still be active).

Issue:

After waking up from suspend, the network-manager stops showing Wi-Fi networks, (although the Wi-Fi connection may still be active).

Attached screenshot

Solution

@debaraj-barua
debaraj-barua / installNvidiaDriver.md
Last active June 18, 2021 10:41
How to make hybrid graphics running Ubuntu 16.04 play nice with nvidia drivers and CUDA?

with Ubuntu 18.04 and higher, this might be useful: https://askubuntu.com/questions/61396/how-do-i-install-the-nvidia-drivers/61433#61433

However, it seems that contrary to what the ubuntu-drivers devices | grep nvidia recommends, for Ubuntu 16.04, installing the latest recommended version of the driver (currently 430) does not play nice with X (maybe my kernal is not updated). And once I update the kernal I'll have to go through this all over again. So, better write shit down.

For now, following this

Removing earlier versions

NOTE: May remove CUDA installations as well*