aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-03-04 10:43:07 +0000
committerterminaldweller <thabogre@gmail.com>2022-03-04 10:43:07 +0000
commit9032842969ffa5c7eb673adb8b65eadd31dfc30b (patch)
treeea91616172dcf934599f62279b595bdf79083bec
parentrsync (diff)
downloadscripts-9032842969ffa5c7eb673adb8b65eadd31dfc30b.tar.gz
scripts-9032842969ffa5c7eb673adb8b65eadd31dfc30b.zip
some updates
-rw-r--r--.bashrc5
-rw-r--r--.config/i3/config6
-rw-r--r--.zshrc2
-rw-r--r--fedpackages.txt573
-rw-r--r--vagrant/disposable/Vagrantfile44
5 files changed, 51 insertions, 579 deletions
diff --git a/.bashrc b/.bashrc
index ee5f690..32f0d11 100644
--- a/.bashrc
+++ b/.bashrc
@@ -53,8 +53,9 @@ alias man="man -O width=210"
export LESS='--RAW-CONTROL-CHARS --ignore-case --status-column --LONG-PROMPT --HILITE-UNREAD --tabs=2'
export PATH=$PATH:/usr/sbin
-disk_usage=$(df | grep /dev/sda1 | awk '{print $5}')
+disk_usage=$(df | grep /dev/sdb3 | awk '{print $5}')
+# https://www.askapache.com/linux/bash-power-prompt/
function aa_prompt_defaults ()
{
local colors=`tput colors 2>/dev/null||echo -n 1` C=;
@@ -77,5 +78,3 @@ function aa_prompt_defaults ()
export PS1 AA_P PROMPT_COMMAND SSH_TTY
}
aa_prompt_defaults
-LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31: *.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01; 31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:* .cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*. tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:* .ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=0 1;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36 :*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:';
-export LS_COLORS
diff --git a/.config/i3/config b/.config/i3/config
index 959be1f..fa6809d 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -17,7 +17,7 @@ set $mod Mod4
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono For Powerline Book 12
-font pango:DejaVu Sans Mono for Powerline 10
+font pango:DejaVuSansMono Nerd Font Mono 10
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
@@ -31,14 +31,14 @@ floating_modifier $mod
# start a terminal
#bindsym $mod+Return exec gnome-terminal
-bindsym $mod+Return exec st -f "DejaVu Sans Mono for Powerline-11.3"
+bindsym $mod+Return exec st -f "DejaVuSansMono Nerd Font Mono-12"
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run -nhb "dark slate gray" -nhf white -shb "forest green" -shf white -l 14
-bindsym $mod+d exec dmenu_run -nb black -sb tomato -l 12
+bindsym $mod+d exec dmenu_run -l 12
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
diff --git a/.zshrc b/.zshrc
index 4d33335..1d07fd7 100644
--- a/.zshrc
+++ b/.zshrc
@@ -20,6 +20,7 @@ autoload -U compinit && compinit -u
eval `dircolors ~/.dir_colors`
# _evalcache dircolors ~/.dir_colors
+alias rm="rm -I --one-file-system --preserve-root=all"
alias vv="vim"
alias ls="exa"
# alias ls="ls --color=auto"
@@ -509,6 +510,7 @@ setopt +o nomatch
# eval "$(goenv init -)"
# export PATH="$GOROOT/bin:$PATH"
# export PATH="$PATH:$GOPATH/bin"
+export GOPROXY=https://goproxy.io
fzf_postit() {
cat ~/scripts/postit | fzf-tmux -p 70%,70% -- --bind 'enter:execute(tmux set-buffer {})+accept'
diff --git a/fedpackages.txt b/fedpackages.txt
deleted file mode 100644
index 4c43932..0000000
--- a/fedpackages.txt
+++ /dev/null
@@ -1,573 +0,0 @@
-ModemManager
-NetworkManager
-NetworkManager-adsl
-NetworkManager-bluetooth
-NetworkManager-openconnect
-NetworkManager-openvpn-gnome
-NetworkManager-pptp-gnome
-NetworkManager-vpnc-gnome
-NetworkManager-wifi
-NetworkManager-wwan
-PackageKit-command-not-found
-PackageKit-gstreamer-plugin
-PackageKit-gtk3-module
-R
-SDL2_image-devel
-SDL_image
-SDL_ttf
-ShellCheck
-VirtualBox-5.1
-aajohan-comfortaa-fonts
-abattis-cantarell-fonts
-abrt-cli
-abrt-desktop
-abrt-java-connector
-acl
-acpi
-adcli
-adobe-source-han-sans-cn-fonts
-adobe-source-han-sans-tw-fonts
-adwaita-qt4
-alsa-plugins-pulseaudio
-alsa-utils
-anaconda
-android-tools
-apvlv
-at
-at-spi2-atk
-at-spi2-core
-atmel-firmware
-attr
-audit
-authconfig
-automake
-avahi
-b43-fwcutter
-b43-openfwwf
-baobab
-basesystem
-bash
-bash-completion
-bc
-beep
-bicon
-bijiben
-bind-utils
-binutils-devel
-binutils-x86_64-linux-gnu
-bison
-bluez-cups
-boost
-boost-devel
-boost-static
-bridge-utils
-btrfs-progs
-bzip2
-bzip2-libs-debuginfo
-calcurse
-capstone-debuginfo
-capstone-devel
-caribou
-caribou-gtk2-module
-caribou-gtk3-module
-cheese
-chrony
-cifs-utils
-clisp
-cmake
-colord
-colordiff
-control-center
-coreutils
-cpio
-cronie
-crontabs
-cryptsetup
-cups
-cups-filters
-cups-pk-helper
-curl
-cyrus-sasl-plain
-dbus
-dconf
-dejagnu
-dejavu-sans-fonts
-dejavu-sans-mono-fonts
-dejavu-serif-fonts
-deltarpm
-deluge-console
-device-mapper-multipath
-dhcp-client
-dkms
-dmraid
-dnf
-dnf-plugins-core
-dnf-yum
-docker-ce
-dos2unix
-dosfstools
-dracut-config-rescue
-dracut-live
-dracut-network
-dtrx
-e2fsprogs
-eclipse-jdt
-efibootmgr
-elfutils-libelf-devel
-emacs
-emacs-nox
-empathy
-eog
-erlang
-ethtool
-evince
-evince-browser-plugin
-evince-djvu
-evince-nautilus
-evolution
-evolution-ews
-evolution-help
-fcoe-utils
-fedora-productimg-workstation
-fedora-release-workstation
-fedora-user-agent-chrome
-file
-file-roller
-filesystem
-firefox
-firewalld
-fish
-flex
-foomatic
-foomatic-db-ppds
-fpaste
-fprintd-pam
-freerdp1.2
-freetype-freeworld
-fribidi
-fribidi-devel
-fros-gnome
-frotz
-fwupd-labels
-gcc
-gcc-c++
-gdm
-gdouros-symbola-fonts
-gedit
-ghc-libffi-devel
-ghostscript
-git
-glances
-glib-devel
-glib-networking
-glib2-devel
-glibc
-glibc-debuginfo
-glibc-devel
-glx-utils
-gmp-devel
-gnome-backgrounds
-gnome-bluetooth
-gnome-boxes
-gnome-calculator
-gnome-characters
-gnome-classic-session
-gnome-clocks
-gnome-color-manager
-gnome-contacts
-gnome-disk-utility
-gnome-documents
-gnome-font-viewer
-gnome-getting-started-docs
-gnome-initial-setup
-gnome-screenshot
-gnome-session-wayland-session
-gnome-session-xsession
-gnome-settings-daemon
-gnome-shell
-gnome-shell-extension-background-logo
-gnome-software
-gnome-system-monitor
-gnome-terminal
-gnome-themes-standard
-gnome-tweak-tool
-gnome-user-docs
-gnome-user-share
-gnome-weather
-gnu-free-mono-fonts
-gnu-free-sans-fonts
-gnu-free-serif-fonts
-gnupg2
-gnupg2-smime
-gobject-introspection-devel
-golang
-google-android-emoji-fonts
-google-noto-emoji-fonts
-google-noto-sans-lisu-fonts
-google-noto-sans-mandaic-fonts
-google-noto-sans-meetei-mayek-fonts
-google-noto-sans-tagalog-fonts
-google-noto-sans-tai-tham-fonts
-google-noto-sans-tai-viet-fonts
-gource
-gparted
-grubby
-gsl-devel
-gstreamer1-plugins-bad-free
-gstreamer1-plugins-bad-free-gtk
-gstreamer1-plugins-good
-gutenprint
-gutenprint-cups
-gvfs-afc
-gvfs-afp
-gvfs-archive
-gvfs-fuse
-gvfs-goa
-gvfs-gphoto2
-gvfs-mtp
-gvfs-smb
-haskell-platform
-hfsplus-tools
-hostname
-hplip
-htop
-http-parser
-hunspell
-hyperv-daemons
-i3
-ibus-gtk2
-ibus-gtk3
-ibus-hangul
-ibus-kkc
-ibus-libpinyin
-ibus-libzhuyin
-ibus-m17n
-ibus-qt
-ibus-rawcode
-ibus-typing-booster
-initscripts
-iproute
-iptstate
-iputils
-ipw2100-firmware
-ipw2200-firmware
-irssi
-iscsi-initiator-utils
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6000g2b-firmware
-iwl6050-firmware
-iwl7260-firmware
-jansson-devel
-jcal
-jomolhari-fonts
-jwhois
-kbd
-kernel
-kernel-core
-kernel-devel
-kernel-modules
-khmeros-base-fonts
-leafpad
-less
-libX11-devel
-libbsd
-libcanberra-gtk2
-libcanberra-gtk3
-libconfig-devel
-libcurl-devel
-libdnet-devel
-libedit-devel
-liberation-mono-fonts
-liberation-sans-fonts
-liberation-serif-fonts
-libertas-usb8388-firmware
-libevent-devel
-libfdt-devel
-libffi-debuginfo
-libffi-devel
-libgcc-debuginfo
-libglvnd
-libglvnd-egl
-libglvnd-gles
-libglvnd-glx
-liblangtag-data
-libmpc-devel
-libpcap-devel
-libpng-devel
-libpng12
-libproxy-mozjs
-libpskc
-libreoffice-calc
-libreoffice-draw
-libreoffice-emailmerge
-libreoffice-graphicfilter
-libreoffice-impress
-libreoffice-math
-libreoffice-writer
-librsvg2
-libsane-hpaio
-libstdc++-debuginfo
-libtool
-libuv
-libvirt-devel
-libxml2-devel
-lklug-fonts
-lm_sensors
-lm_sensors-libs
-logrotate
-lohit-assamese-fonts
-lohit-bengali-fonts
-lohit-devanagari-fonts
-lohit-gujarati-fonts
-lohit-gurmukhi-fonts
-lohit-kannada-fonts
-lohit-odia-fonts
-lohit-tamil-fonts
-lohit-telugu-fonts
-lrzsz
-lsof
-lua-devel
-lua-libs-debuginfo
-luarocks
-lvm2
-mactel-boot
-mailcap
-man-db
-man-pages
-mc
-mcelog
-mdadm
-memtest86+
-mesa-dri-drivers
-microcode_ctl
-mlocate
-mousetweaks
-mpage
-mpfr-devel
-mpg123
-mtr
-mupdf
-mutt
-nasm
-nautilus
-nautilus-sendto
-naver-nanum-gothic-fonts
-ncdu
-ncurses
-ncurses-compat-libs
-ncurses-libs-debuginfo
-neofetch
-neomutt
-net-tools
-nethack
-newsbeuter
-nfs-utils
-nm-connection-editor
-nmap
-nmap-ncat
-npm
-nss-mdns
-nss-pem
-ntfs-3g
-ntfsprogs
-nudoku
-nyquist
-ocaml
-ocaml-cryptokit-devel
-ocaml-findlib
-open-vm-tools-desktop
-opencv-devel
-openssh-clients
-openssh-server
-openssl-devel
-openssl-libs-debuginfo
-orca
-ostree-libs
-paktype-naskh-basic-fonts
-pam_krb5
-pam_pkcs11
-pandoc
-paps
-paratype-pt-sans-fonts
-parted
-passwd
-passwdqc
-patch
-pciutils
-pcmciautils
-php-cli
-pinentry-gnome3
-pinfo
-platform-python-tkinter
-plymouth
-plymouth-system-theme
-policycoreutils
-powerline-fonts
-ppp
-prboom
-procps-ng
-psacct
-pulseaudio
-pulseaudio-module-x11
-pulseaudio-utils
-putty
-pypy3
-python2-virtualenv
-python3-Cython
-python3-bind
-python3-debuginfo
-python3-devel
-python3-ipython
-python3-pygments
-python3-tkinter
-qemu
-qemu-guest-agent
-qodem-x11
-qt
-qt-settings
-qt-x11
-qt5-qtbase
-qt5-qtbase-gui
-qt5-qtdeclarative
-qt5-qtxmlpatterns
-quota
-qutebrowser
-ranger
-rdist
-readline-debuginfo
-readline-devel
-realmd
-redhat-lsb-core
-redhat-rpm-config
-rhash
-rhythmbox
-rng-tools
-rootfiles
-rp-pppoe
-rpm
-rpmfusion-free-release
-rsync
-rtv
-ruby
-ruby-devel
-rygel
-samba
-samba-client
-sane-backends-daemon
-sane-backends-drivers-scanners
-scl-utils
-screen
-screenfetch
-sdcv
-seahorse
-selinux-policy-targeted
-setroubleshoot
-setup
-setuptool
-shadow-utils
-shotwell
-sil-abyssinica-fonts
-sil-mingzat-fonts
-sil-nuosu-fonts
-sil-padauk-fonts
-smc-meera-fonts
-snapd
-sos
-spice-vdagent
-sssd
-sssd-nfs-idmap
-steghide
-stix-fonts
-stunnel
-subversion
-sudo
-sushi
-swig
-symlinks
-sysconftool
-syslinux
-syslinux-extlinux
-system-config-printer-udev
-systemd
-systemd-devel
-tabish-eeyek-fonts
-tar
-tcp_wrappers
-tcpdump
-teamd
-telegram-cli
-telnet
-texlive
-thai-scalable-waree-fonts
-time
-tinyxml2
-tlomt-orbitron-fonts
-tmux
-tmux-powerline
-tor
-totem
-totem-nautilus
-traceroute
-transmission-cli
-tree
-trousers
-uboot-tools
-unoconv
-unzip
-usb_modeswitch
-usbutils
-util-linux
-vconfig
-vim-enhanced
-vim-minimal
-vinagre
-vlgothic-fonts
-vorbis-tools
-w3m
-wget
-which
-wireless-tools
-wordgrinder
-words
-wvdial
-xdg-desktop-portal
-xdg-desktop-portal-gtk
-xdg-user-dirs-gtk
-xfsprogs
-xmlsec1
-xmlsec1-openssl
-xorg-x11-drv-ati
-xorg-x11-drv-evdev
-xorg-x11-drv-fbdev
-xorg-x11-drv-intel
-xorg-x11-drv-libinput
-xorg-x11-drv-nouveau
-xorg-x11-drv-openchrome
-xorg-x11-drv-qxl
-xorg-x11-drv-vesa
-xorg-x11-drv-vmware
-xorg-x11-drv-wacom
-xorg-x11-server-Xorg
-xorg-x11-utils
-xorg-x11-xauth
-xorg-x11-xinit
-xz-libs-debuginfo
-yelp
-z3
-zd1211-firmware
-zip
-zlib-debuginfo
-zlib-devel
-zsh
diff --git a/vagrant/disposable/Vagrantfile b/vagrant/disposable/Vagrantfile
new file mode 100644
index 0000000..3b0c3ac
--- /dev/null
+++ b/vagrant/disposable/Vagrantfile
@@ -0,0 +1,44 @@
+# vi: set ft=ruby :
+# frozen_string_literal: true
+
+ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
+Vagrant.require_version '>= 2.2.6'
+Vagrant.configure('2') do |config|
+ config.vm.box = 'generic/debian11'
+ config.vm.box_version = '3.6.6'
+ config.vm.box_check_update = false
+ config.vm.hostname = 'virt-disposable-deb11'
+
+ # ssh
+ config.ssh.insert_key = true
+ config.ssh.keep_alive = true
+ config.ssh.keys_only = true
+
+ # timeouts
+ config.vm.boot_timeout = 300
+ config.vm.graceful_halt_timeout = 60
+ config.ssh.connect_timeout = 15
+
+ # shares
+ config.vm.synced_folder '.', '/vagrant', type: 'nfs', nfs_version: 4, nfs_udp: false
+
+ config.vagrant.plugins = ['vagrant-reload', { 'vagrant-libvirt' => { 'version' => '^0.6.2' } }]
+
+ config.vm.provider 'libvirt' do |libvirt|
+ libvirt.default_prefix = 'disposable-deb11-'
+ libvirt.driver = 'kvm'
+ libvirt.memory = '512'
+ libvirt.cpus = 1
+ libvirt.sound_type = nil
+ libvirt.qemuargs value: '-nographic'
+ libvirt.qemuargs value: '-nodefaults'
+ libvirt.qemuargs value: '-no-user-config'
+ libvirt.qemuargs value: '-serial'
+ libvirt.qemuargs value: 'telnet::4321,server,nowait'
+ libvirt.random model: 'random'
+ end
+
+ # config.vm.provision 'i2p-install', type: 'shell', name: 'i2p-install', inline: <<-SHELL
+ # sudo apt update && sudo apt upgrade -y
+ # SHELL
+end