Skip to content

Instantly share code, notes, and snippets.

mikebratt /
Last active March 14, 2024 09:19
needrestart settings
if [[ -f "/etc/needrestart/needrestart.conf" ]]; then
# Disable "Pending kernel upgrade" prompt
sudo sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf
# Set Restart mode to automatic
sudo sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf
mikebratt / gist:19af96357d5fd50a25ac24b9ab7ff5cd
Created September 15, 2023 12:45
Ubuntu / Mint Linux - No ports detected in Arduino IDE
sudo ls -l /dev/ttyACM* /dev/ttyUSB*
# if the above command returns "No such file or directory" for both /dev/ttyACM* and /dev/ttyUSB* try disabling or uninstalling brltty and reboot.
sudo apt purge brltty
sudo systemctl stop brltty-udev.service
sudo systemctl mask brltty-udev.service
mikebratt / gist:7df6ef9537c24a238ae0bc2da83ac33c
Created July 28, 2023 12:57
Linux Lint - remove flatpak
sudo apt remove --autoremove flatpak
sudo apt purge flatpak gir1.2-flatpak-1.0
mikebratt / .tmux.conf
Created May 5, 2023 10:51
tmux config
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

Keybase proof

I hereby claim:

  • I am mikebratt on github.
  • I am mikebratt ( on keybase.
  • I have a public key ASCfxqF5gvGA6qe0bPHp9GyV6jhgXVfLUy6OasyD5dNVxAo

To claim this, I am signing this object: