Skip to content

roytang121/dotfiles

Repository files navigation

dotfiles

Installation

vimplug

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

tmux conf

https://github.com/tmux-plugins/tpm

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Linux

screen dpi

xrdb ~/.Xresources

remap key

# ~/.xprofile
setxkbmap -option ctrl:swapcaps

gnome

env XDG_CURRENT_DESKTOP=GNOME gnome-control-center

Disable TLP USB Power Saving

  1. **Install TLP
sudo apt install tlp
  1. Open the TLP configuration file:
sudo nano /etc/tlp.conf
3. **Uncomment and modify following items
```bash
USB_AUTOSUSPEND=0
USB_BLACKLIST_BTUSB=1
  1. Save the file and restart TLP:
sudo systemctl restart tlp

perf mode

# WARNING: Kernel address maps (/proc/{kallsyms,modules}) are restricted,
# cat /proc/sys/kernel/kptr_restrict
# cat /proc/sys/kernel/perf_event_paranoid

sudo sysctl -w kernel.kptr_restrict=0

# The current value is 3:
# -1: Allow use of (almost) all events by all users
# Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK
# >= 0: Disallow ftrace function tracepoint by users without CAP_SYS_ADMIN
# Disallow raw tracepoint access by users without CAP_SYS_ADMIN
# >= 1: Disallow CPU event access by users without CAP_SYS_ADMIN
# >= 2: Disallow kernel profiling by users without CAP_SYS_ADMIN

sudo sysctl -w kernel.perf_event_paranoid=-1

# reload
sysctl -p /etc/sysctl.conf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •