Skip to content

Instantly share code, notes, and snippets.

@hakerdefo
hakerdefo / byobu_F-keys_in_tty.md
Last active September 19, 2021 03:37
Make Byobu's F-keys keybindings work in virtual console (TTY).

Byobu's F-keys keybindings were not working for me in virtual console a.k.a TTY. However, the Byobu F-keys keybindings were working fine in X Window terminals (LXTerminal, Sakura, Terminology, Xfce-Terminal) under X-Window-System. It was perplexing. 'byobu-keybindings' script written by Byobu author Dustin Kirkland to check the Byobu keybindings was giving me "Byobu keybindings: [ON]" message but F-keys were failing me in virtual console (TTY). Very perplexing indeed, mysterious even. I changed Byobu backend from tmux to screen and back but alas no joy. Google and DuckDuckGo also decided to left me high & dry this time. So it was time for soul-searching and man-page reading. After traveling through a gazillion man-pages, wrestling with escape codes & sequences, here, ladies & gentlemen is the holy grail.

If you use Bash as your login shell, add following code to your ~/.bashrc or /etc/bashrc or /etc/bash.bashrc

shopt -q login_shell
RETVAL=$?
if [[ "$RETVAL" == 0 ]] ; then
export TERM='linux'
else
@hakerdefo
hakerdefo / interesting_stocks.md
Created March 18, 2018 15:56
For The Love Of Money Is The Root Of All Evil
Stock
8K Miles Software Services Ltd
Ajanta Pharma Ltd
apl apollo tubes ltd
Ashok Leyland Ltd
Avanti Feeds Ltd
Bharat Rasayan Ltd
Caplin Point Laboratories Ltd
gabriel india ltd
@hakerdefo
hakerdefo / sources.list
Last active March 20, 2024 06:25
Ubuntu 22.04 LTS (Jammy Jellyfish) complete sources.list
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
@hakerdefo
hakerdefo / sources.list
Last active June 11, 2023 18:42
Debian Sid (Unstable) complete sources.list
deb https://ftp.debian.org/debian/ sid contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ sid contrib main non-free non-free-firmware
@hakerdefo
hakerdefo / sources.list
Last active June 11, 2023 18:38
Debian Stable complete sources.list
deb https://ftp.debian.org/debian/ stable contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ stable contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ stable-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ stable-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ stable-proposed-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ stable-proposed-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ stable-backports contrib main non-free non-free-firmware
@hakerdefo
hakerdefo / sources.list
Last active October 12, 2023 09:08
Debian Testing complete sources.list
deb https://ftp.debian.org/debian/ testing contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ testing contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ testing-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ testing-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ testing-proposed-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ testing-proposed-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ testing-backports contrib main non-free non-free-firmware
@hakerdefo
hakerdefo / sources.list
Created June 11, 2023 18:47
Debian 12 "bookworm" complete sources.list
deb https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
@hakerdefo
hakerdefo / Debian_Stable_Download_Links.md
Created July 12, 2023 18:06
Debian stable download links