Compare commits

...

6 Commits

5 changed files with 70 additions and 2 deletions

View File

@ -8,6 +8,7 @@ gnu-sed
htop
imagemagick
ipcalc
mtr
neovim
newsboat
parallel

View File

@ -3,10 +3,10 @@ chatterino
dbeaver-community
displaylink
docker
chromium
firefox@nightly
font-hack-nerd-font
gimp
google-chrome
hiddenbar
iterm2
jordanbaird-ice
@ -20,6 +20,7 @@ mongodb-compass
mpv
mysides
obsidian
postman
platypus
qbittorrent
qview

View File

@ -14,6 +14,7 @@ keep-open=yes
# Always save the current playback position on exit
save-position-on-quit=yes
ontop=yes
# Geometry settings
geometry=50%:50%

View File

@ -484,11 +484,73 @@ function install_winbox_old() {
xattr -cr ~/Applications/winbox.exe
}
function install_prettier(){
function install_prettier() {
$install prettier
$install prettierd
}
function install_google_cloud_sdk() {
# Install google cloud sdk
if [[ "$(uname)" == "Darwin" ]]; then
$install google-cloud-sdk
else
curl -s https://sdk.cloud.google.com | bash
fi
}
function install_lib_wandio() {
local REPO="LibtraceTeam/wandio"
local REMOTE_VERSION=$(curl -s \
https://api.github.com/repos/$REPO/releases/latest |
grep -iEo '"tag_name":.*' |
sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
local RELEASE="${REMOTE_VERSION}.tar.gz"
local DEST="/tmp/wandio-$REMOTE_VERSION.tar.gz"
local DEST_FOLDER="/tmp/wandio-$REMOTE_VERSION"
$install autoconf automake libtool
wget https://github.com/$REPO/archive/refs/tags/$RELEASE -O $DEST
tar -xvf $DEST -C /tmp
cd $DEST_FOLDER || err "Folder $DEST_FOLDER has been NOT found"
./bootstrap.sh
./configure
make -j"$(nproc)"
sudo make install && timestamp "Installed the newest version of the $REPO"
rm -rfv $DEST $DEST_FOLDER
}
function install_bgpreader() {
local CURRENT_VERSION="0.0.0"
local REPO="CAIDA/libbgpstream"
local NAME="${REPO##*/}"
local REMOTE_VERSION=$(curl -s \
https://api.github.com/repos/$REPO/releases/latest |
grep -iEo '"tag_name":.*' |
sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
local RELEASE="$NAME-${REMOTE_VERSION/v/}.tar.gz"
local DEST="/tmp/$NAME-$REMOTE_VERSION.tar.gz"
local DEST_FOLDER="/tmp/$NAME-$REMOTE_VERSION"
if command_exists bgpreader; then
CURRENT_VERSION="v$(bgpreader -v 2>&1 | grep -ioE '[0-9\.]+')"
fi
if [ "$CURRENT_VERSION" == "$REMOTE_VERSION" ]; then
timestamp "The current version of the BGPREADER is the same as the newest version"
return 0
else
$install autoconf automake libtool
command_start install_lib_wandio
wget https://github.com/$REPO/releases/download/$REMOTE_VERSION/$RELEASE -O $DEST
tar -xvf $DEST -C /tmp
cd /tmp/$NAME-* || err "Folder /tmp/$NAME-* has been NOT found"
./configure --without-kafka
make -j"$(nproc)"
sudo make install && timestamp "Installed the newest version of the $REPO"
rm -rfv /tmp/$NAME-*
fi
}
function main() {
command_start update_pip
command_start install_neovim_module_for_python
@ -527,6 +589,8 @@ function main() {
command_start install_fzf
command_start install_winbox_old
command_start install_prettier
command_start install_google_cloud_sdk
command_start install_bgpreader
command_start install_zsh_addons
command_start install_brew_programs
}

1
.zshrc
View File

@ -167,6 +167,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
alias sleep-lid-off="sudo pmset -b sleep 0; sudo pmset -b disablesleep 1"
alias sleep-lid-on="sudo pmset -b sleep 5; sudo pmset -b disablesleep 0"
alias restart-network-share="sudo pkill -i netauthsysagent"
alias streamlink="streamlink --config $HOME/.config/streamlink/config"
# Terraform
export TFENV_ARCH=amd64