Skip to content

Instantly share code, notes, and snippets.

@pinedamg
Last active December 7, 2023 13:47
Show Gist options
  • Save pinedamg/d74b763ea52f92552afe3562b63e6399 to your computer and use it in GitHub Desktop.
Save pinedamg/d74b763ea52f92552afe3562b63e6399 to your computer and use it in GitHub Desktop.
My Setup

SOFTWARES

.. PDF editing

  • Xournal

.. DESIGN

  • PENCIL

.. PROGRAMMING

  • PHPSTORM
  • DOCKER
  • DOCKER-COMPOSE

.. OTHERS

.. CONFIGS

.. UTILS

.. MESSAGING

  • WHATDESK
  • ZOOM
  • SLACK
  • SKYPE
  • TEAMS
  • TELEGRAM

.. EMAIL

  • HIRI

.. CLOUD FILES

  • DROPBOX

SHORTCUT

  • screenshot: flameshot gui

GNOME EXTENSIONS

image

AMITOSAI MTSAUDIO PRO

Install PulseAudio and change profile

sudo apt install pavucontrol

image

ZSH

PLUGINS

plugins=(git ubuntu docker docker-compose extract universalarchive debian common-aliases jump)

THEME

ZSH_THEME="ys"

EXTRA CONFIG PHPSTORM & ANDROID

#!/bin/zsh

# starver mod
# Jetbrains uses jediterm as a java terminal emulator for all terminal uses.
# There are some apparent limits on use:
# - must use old-style shebang - not the #!/usr/bin/env zsh
# - must implement the startup file loading here
#
# Note: original contents are in lib/terminal.jar

# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
bindkey '^[^[[C' forward-word
bindkey '^[^[[D' backward-word

ZDOTDIR=$_OLD_ZDOTDIR

if [ -n "$JEDITERM_USER_RCFILE" ]
then
  source "$JEDITERM_USER_RCFILE"
  unset JEDITERM_USER_RCFILE
fi

if [ -n "$ZDOTDIR" ]
then
  DOTDIR=$ZDOTDIR
else
  DOTDIR=$HOME
fi

if [ -f "/etc/zshenv" ]; then
     source "/etc/zshenv"
fi

if [ -f "$DOTDIR/.zshenv" ]; then
     source "$DOTDIR/.zshenv"
fi

if [ -n $LOGIN_SHELL ]; then
  if [ -f "/etc/zprofile" ]; then
       source "/etc/zprofile"
  fi
  if [ -f "$DOTDIR/.zprofile" ]; then
       source "$DOTDIR/.zprofile"
  fi
fi

if [ -f "/etc/zshrc" ]; then
     source "/etc/zshrc"
fi

if [ -f "$DOTDIR/.zshrc" ]; then
     source "$DOTDIR/.zshrc"
fi

if [ -n $LOGIN_SHELL ]; then
  if [ -f "/etc/zlogin" ]; then
       source "/etc/zlogin"
  fi
  if [ -f "$DOTDIR/.zlogin" ]; then
       source "$DOTDIR/.zlogin"
  fi
fi

if [ -n "$JEDITERM_SOURCE" ]
then
  source $(echo $JEDITERM_SOURCE)
  unset JEDITERM_SOURCE
fi

function override_jb_variables {
  for VARIABLE in $(env)
  do
    NAME=${VARIABLE%%=*}
    if [[ $NAME = '_INTELLIJ_FORCE_SET_'* ]]
    then
      NEW_NAME=${NAME:20}
      if [ -n "$NEW_NAME" ] && [ "$NEW_NAME" != "PATH" ]
      then
        VALUE=${VARIABLE#*=}
        export "$NEW_NAME"="$VALUE"
      fi
    fi
  done
}
#!/bin/sh
## UPDATE AFTER FRESH INSTALL
sudo apt-get update -y
## INSTALL BASIC
sudo apt-get install -y \
snapd \
zsh \
git \
vim \
htop \
terminator \
flameshot \
cpu-checker \
network-manager-openvpn-gnome \
openvpn-systemd-resolved \
openvpn \
gnome-user-share
## INSTALL NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
## INSTALL GITPROMPT
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
chsh -s $(which zsh)
## INSTALL OHMYZSH
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
## INSTSALL CHEZMOI
snap install chezmoi --classic
## CHEZMOI INIT REPO
chezmoi init https://personal:glpat-G9Zd3MhmDs1WBtmsHPsQ@gitlab.com/pinedamg/chezmoi-dot-secret-files.git
chezmoi apply
## INSTALL HOMEBREW
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/mpineda/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
## INSTALL GITHUB CLI WITH BREW
brew install gh
## INIT GH
gh auth login
## INSTALL SNAP SOFT
sudo snap install hiri
sudo snap install brave
sudo snap install ramboxpro
sudo snap install authy
sudo snap install hplip-printer-app
sudo snap install --edge hplip-printer-app
sudo snap install code --classic
sudo snap install postman
sudo snap install dbeaver-ce
## ANDROID STUDIO
curl -o StudioInstaller.sh https://raw.githubusercontent.com/pinedamg/Android-Studio-Installer-Script/master/StudioInstaller.sh
chmod +x StudioInstaller.sh
./StudioInstaller.sh
## INSTALL FLUTTER
sudo snap install flutter --classic
## UPDATE FLUTTER
flutter upgrade
## INSTALL FLATPACK SOFT
flatpak install -y \
com.bitwarden.desktop \
com.dropbox.Client \
us.zoom.Zoom com.drobox.Client \
com.spotify.Client \
org.gnome.meld
## INSTALL GNOME EXTENSIONS
# wget -O gnome-shell-extension-installer "https://github.com/brunelli/gnome-shell-extension-installer/raw/master/gnome-shell-extension-installer"
# sudo chmod +x gnome-shell-extension-installer
# sudo mv gnome-shell-extension-installer /usr/bin/
## DASH TO DOCK - SOUND - GSCONNECT - CAFFEINE - CLIPBOARD - SCROLL WORKSPACE
# gnome-shell-extension-installer 317 517 701 53 1319 906 779
## INSTALL DOCKER
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
sudo mkdir -m 0755 -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
## POST DOCKER INSTALLATION
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx "$HOME/.docker" -R
## INSTALL DOCKER-COMPOSE
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
#!/bin/sh
## UPDATE AFTER FRESH INSTALL
sudo apt-get update -y
## INSTALL BASIC
sudo apt-get install -y \
snapd \
zsh \
git \
vim \
htop \
cpu-checker \
openvpn-systemd-resolved \
openvpn \
ca-certificates \
curl \
gnupg \
lsb-release
## INSTALL NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
## INSTALL GITPROMPT
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
chsh -s $(which zsh)
## INSTALL OHMYZSH
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
## INSTALL HOMEBREW
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/mpineda/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get install build-essential -y
brew install gcc
## INSTSALL CHEZMOI
brew install chezmoi
## CHEZMOI INIT REPO
chezmoi init https://personal:glpat-G9Zd3MhmDs1WBtmsHPsQ@gitlab.com/pinedamg/chezmoi-dot-secret-files.git
chezmoi apply
brew cleanup totp-cli
## INSTALL GITHUB CLI WITH BREW
# brew install gh
## INIT GH
# gh auth login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment