Skip to content

Instantly share code, notes, and snippets.

View refactormyself's full-sized avatar

Saheed O. Bolarinwa refactormyself

View GitHub Profile
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
KEYBINDINGS
byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used). The common key bindings
are:
F2 - Create a new window
F3 - Move to previous window
F4 - Move to next window
@refactormyself
refactormyself / byobuCommands
Created May 3, 2021 00:37 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@refactormyself
refactormyself / Disk_Partition.md
Last active August 16, 2021 08:50
Linux Stuffs

CELL 1

# install the world of CUDA

!apt update -qq;
!wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb;
!dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb;
!apt-key add /var/cuda-repo-8-0-local-ga2/7fa2af80.pub;
!apt-get update -qq;
!apt-get install cuda gcc-5 g++-5 -y -qq;
@refactormyself
refactormyself / how-to-install-latest-gcc-on-ubuntu-lts.txt
Created May 13, 2020 13:06 — forked from application2000/how-to-install-latest-gcc-on-ubuntu-lts.txt
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@refactormyself
refactormyself / VirtualBoxSharedFolder.md
Created May 4, 2020 22:47
Create VirtualBox Shared Folder and Enable Symbolic Link
  • Do the obvious creation of shared folder
  • Add user to group $ sudo adduser $(whoami) vboxsf && reboot
  • Permit symblink creation $ VBoxManage setextradata LK-Dev-LubuntuBionic VBoxInternal2/SharedFoldersEnableSymlinksCreate/lkdev 1

ref:

@refactormyself
refactormyself / irc.md
Created April 28, 2020 14:18 — forked from xero/irc.md
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
@refactormyself
refactormyself / Freenode Registration Help.md
Created April 28, 2020 13:35
Here'e an example of how to register a nickname on Freenode IRC.

Here'e an example of how to register a nick on Freenode IRC. It's a little tricky, but if you follow some simple steps, you'll get through it okay. All you need to do is connect to the Freenode IRC network and have a little talk with NickServ.

The first and most confusing questions can be combined:

  1. How do I know if my nick is already registered to someone else?
  2. How do I talk to NickServ?

Start by connecting your client to irc.freenode.net and joining any chat.

Next, type this command in the chat window:

@refactormyself
refactormyself / clean-up-boot-partition-ubuntu.md
Created April 20, 2020 06:40 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r