Skip to content

Instantly share code, notes, and snippets.

@wideawakening
Last active April 24, 2024 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wideawakening/278a9a43b7251917052e9010a2f93ce2 to your computer and use it in GitHub Desktop.
Save wideawakening/278a9a43b7251917052e9010a2f93ce2 to your computer and use it in GitHub Desktop.
workstation backup+reset checks
# leapfroging tips from the past into the future
# workstation backup and restore checks
# 1. backup-tasks
# 2.0. shared-tasks
# 2.1. personal-specific
# 2.2. work-specific
# 3. firefox config
# 4. user-interface
# 5. zshrc
# 6. goland
- dotfiles (ssh, vim, ...)
~/.gnupg/
- history commands to safe
- out-of-sync-folder organization into sync-folders (backup or cloud drives)
Documetns, Downloads, ...
- ~/bin folder where custom installations may have been made ¬.¬
# install
minimal ubuntu (currently gnome, but no preference)
---
# installation
- apt
; ppa's
https://git-scm.com/download/linux
; base
sudo apt-get update && sudo apt-get install git zsh zsh-autosuggestions \
fzf (alt.: mcfly) htop tree curl libreoffice autojump baobab meld trash-cli vim tmux terminator chromium-browser \
gedit-plugin-bracket-completion gedit-plugin-text-size
; customization
sudo apt-get install dconf dconf-editor
; misc
sudo apt-get install libavcodec-extra usb-creator-gtk build-essential xsel
- pip3
pip3 install trash-cli
## manual
- firefox: account sync + blank homepage + ducky search + addons (tab-group, web-scrobler https://github.com/web-scrobbler/web-scrobbler)
- typora | https://typora.io/#linux
- oh-my-zsh | https://github.com/ohmyzsh/ohmyzsh
---
# app tunnig
## terminator
- general: hide titlebar
- keybinding: for H/V split
- default profile: 80% transparency + inifinite scroll + no window title
- new profile for defaults
## zsh
- history manipulation; ignoredups, erasedups, ignorespace (for secrets)
---
# bugfixing
- firefox won't play videos
sudo apt install libavcodec-extra
https://askubuntu.com/questions/1224214/video-error-code-102630
# installation
# ; misc
sudo apt-get install calibre grub-customizer klavaro peek mplayer totem alacarte
## manual
- anki
- serviio
- vpn
- steam
- synergy
- switchToScreen() hotkey configuration
https://symless.com/help-articles/add-a-hotkey-or-keyboard-shortcut-to-change-to-different-screens
- keybind
| cntrl+shift+h | left monitor |
| cntrl+shift+j | right monitor |
---
# fstab config
UUID=9bd2c4f5-e31f-45ac-a5b8-4790f8728efb /home ext4 errors=remount-ro 0 1
UUID=01CBAEA12107FB50 /media/data auto errors=remount-ro,umask=0002,gid=users,uid=1000 0 1
//moxie.local/moxie.docs/ /mnt/moxie cifs user,uid=1001,rw,suid,credentials=/home/work/.smbpasswd 0 0
- vpn
##
## base installation
##
sudo apt-get install sdkman worknetwork-manager-openconnect-gnome
##
## programming stack
##
# py-stack
sudo apt-get install python3 \
python-is-python3 # use this instead of alias for better compatibility
# go stack
## manual
- firefox: addons (containers)
##
## other miscelanea
## manual
#
- synapse server/client ; for KM sharing
#- teams, onedrive (ppa) ; windows-work stack
- role-stack; krew (kubectl,kubens)
- kadeck for kafka
- compass for mongodb
- ... wip
; misc
- lego, draw.io
# sync with mozilla account
# settings
## search-suggestions; [ ] show search sugg ahead of browsing history in address bar result (disabled)
## default search engine
# autoplay block audio + video
## conflict when real-time input source select with multiple bluetooths (plt focus headset)
accessibility.typeaheadfind.enablesound = false
# conflict with pulseaudio (white sound) in some webs
media.webspeech.synth.enabled = false
# NOP. remove 'other bookmars' folder on bookmarks pannel (unsorted bookmarks)
# deprecated. now this can be down with contextual actions
browser.toolbars.bookmarks.2h2020 = false
# accessibility
dconf write /org/gnome/desktop/interface/cursor-size 64
dconf write /org/gnome/desktop/a11y/keyboard/mousekeys-enable true
dconf write /org/gnome/desktop/a11y/keyboard/mousekeys-accel-time 1500
dconf write /org/gnome/desktop/a11y/keyboard/mousekeys-max-speed 500
dconf write /org/gnome/desktop/a11y/keyboard/mousekeys-init-delay 100
---
# keyboard
english (us, intl. with AltGr dead keys) to work with áéíóúñ¿?'" baaaaammbo!
---
# keybindings
| switch workspace 1..4 | alt+1..4 |
| screenshot snap clip to clipboard | cntrl+shift+insert |
| " " " file | cntrl+shift+print |
| shutdown now | cntrl+alt+escape |
| terminal,home,browser | super+s / super+e / super+z |
| hide all windows | super+d |
| window hide | super+down |
| maximize window horizontally | alt+right |
| maximize window vertically | alt+up |
| decrease UI text size | cntrl+shift+- |
| increase text size | cntrl+shift++ |
---
# desktop
- paint it black
gsettings set org.gnome.desktop.background picture-uri ""
gsettings set org.gnome.desktop.background primary-color '#000000'
- remove dock bar
gsettings set org.gnome.shell.extensions.dash-to-dock autohide false
gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false
gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false
- hide icons from desktop
#gsettings set org.gnome.shell.extensions.desktop-icons show-trash false
gsettings set org.gnome.shell.extensions.ding show-trash false
#gsettings set org.gnome.shell.extensions.desktop-icons show-home false
gsettings set org.gnome.shell.extensions.ding show-home false
- disable system sound (to avoid unnecesary source switch on multi-device headsets)
gsettings set org.gnome.desktop.sound event-sounds false
- disable dynamic-workspaces
gsettings set org.gnome.mutter dynamic-workspaces false
- cycle through current workspace only (may require default keybinding modification)
gsettings get org.gnome.shell.app-switcher current-workspace-only
- do not use cntrl+num to launch docked apps
gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false
---
# autologin setup
# - /etc/gdm3/custom.conf
[daemon]
AutomaticLoginEnable=False
TimedLoginEnable=true
TimedLogin=
TimedLoginDelay=20
---
# gnome extensions
## avoid x app is ready
- noannoyance by sindex
## move clock right
- frippery move clock
- openweather by jens
- simple monitor by fcaballero
- pomodoro by kamilprusko
- Sound Input & Output Device Chooser by kgshank
# reference only, to be polished
############
# themes
############
# embrace toc chaos
ZSH_THEME="random"
############
# history
############
# avoid duplicated history with fzf
# https://leetschau.github.io/remove-duplicate-zsh-history.html
#
HIST_IGNORE_DUPS="true"
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
# evitar añadir línea con datos sensibles al histórico
setopt HIST_IGNORE_SPACE
setopt HIST_FIND_NO_DUPS
setopt HIST_SAVE_NO_DUPS
setopt HIST_BEEP
# mod. requires plugin history-substring-search
bindkey '^R' history-incremental-pattern-search-backward
############
# plugins
# previously install
# - zsh-autosuggestions | https://github.com/zsh-users/zsh-autosuggestions
############
plugins=(
git
autojump
colorize
battery
kubectl
history
history-substring-search
zsh-autosuggestions
)
############
# aliases
############
alias cat="batcat"
alias cert="gcr-viewer"
alias w="watch "
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
# work
alias mk="sudo microk8s.kubectl"
alias k="kubectl "
#alias kubectl="echo NOP"
alias tf="terraform "
alias kubectx="kubectl-ctx"
alias kubens="kubectl-ns"
##############
# bug with numpad symbols on terminator o_O wtf
###############
# enter
bindkey -s "^[OM" "^M"
# + - * / =
bindkey -s "^[Ok" "+"
bindkey -s "^[Om" "-"
bindkey -s "^[Oj" "*"
bindkey -s "^[Oo" "/"
bindkey -s "^[OX" "="
##################
# go settings
##################
- Go > Go Modules > [x] enable go modules integration
- Editor > Code Style > Go
[x] add parentheses for single import
[x] remove redundant import aliases. go fmt inport type
##################
# file watchers
##################
- go fmt
- goimports
- golangci-lint
##################
# plugins
##################
- .env files support / envfile ; still have not decided
- key promoter x ; to start learning keybinds)
##################
# key binding
##################
try to keep it default but some things can't unTOC
| close tab | cntrl+w |
| dec/increase/reset text size | cntrl+shift++/-/back |
#
# thx https://gist.github.com/ChriRas/b9aef9771a97249cb4620e0d6ef538c4 :)
#
# /etc/pulse/default.pa
# default sink/source devices
# get list from
# pactl list short [sinks sources]
# pulseaudio -k to restart
#
set-default-sink alsa_output.usb-Plantronics_Poly_BT600_09faf4b7805840d8a2c9e615bf71db7e-00.analog-stereo
set-default-source alsa_input.usb-Plantronics_Poly_BT600_09faf4b7805840d8a2c9e615bf71db7e-00.mono-fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment