rearranges more logically, hopefully
This commit is contained in:
3
dev/add-openai-token.sh
Normal file
3
dev/add-openai-token.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
key=$(gpg --decrypt openai)
|
||||
echo "export OPENAI_API_KEY=\"${key}\"" >>~/.bashrc
|
||||
echo "OpenAI Token saved to bashrc: ${key}"
|
||||
54
dev/fedora/dev.sh
Normal file
54
dev/fedora/dev.sh
Normal file
@@ -0,0 +1,54 @@
|
||||
sudo cp ../sesh /usr/bin
|
||||
cp ../tmux/tmux.conf ~/.tmux.conf
|
||||
|
||||
sudo dnf install zig -y
|
||||
sudo dnf install neovim -y
|
||||
sudo dnf install npm -y
|
||||
sudo dnf install go -y
|
||||
sudo dnf install ripgrep -y
|
||||
sudo dnf install zlib -y
|
||||
sudo dnf install zlib-devel -y
|
||||
sudo dnf install ruby -y
|
||||
sudo dnf install ruby-devel -y
|
||||
sudo dnf install postgresql-devel -y
|
||||
sudo dnf install gh -y
|
||||
|
||||
sudo dnf copr enable atim/lazygit -y
|
||||
sudo dnf install lazygit -y
|
||||
sudo dnf install alacritty -y
|
||||
sudo dnf install tmux -y
|
||||
|
||||
sh ./add-openai-token.sh
|
||||
sudo flatpak install org.wezfurlong.wezterm -y
|
||||
|
||||
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
|
||||
dnf check-update
|
||||
sudo dnf install code -y
|
||||
|
||||
sudo dnf copr enable zawertun/hack-fonts -y
|
||||
sudo dnf install hack-fonts -y
|
||||
|
||||
# Docker
|
||||
sudo dnf -y install dnf-plugins-core
|
||||
sudo dnf-3 config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
|
||||
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
|
||||
sudo systemctl start docker
|
||||
|
||||
sudo npm i -g @railway/cli
|
||||
sudo npm i -g vercel
|
||||
sudo npm i -g vercel@latest
|
||||
|
||||
cd ~/.config/
|
||||
|
||||
git config --global user.email "noisycarlos@hey.com"
|
||||
git config --global user.name "Carlos Aldana"
|
||||
|
||||
git clone https://git.noisyserver.sbs/noisycarlos/nvim
|
||||
git clone https://git.noisyserver.sbs/noisycarlos/wezterm
|
||||
|
||||
sudo rm -r lazygit
|
||||
git clone https://git.noisyserver.sbs/noisycarlos/lazygit
|
||||
|
||||
#git clone https://git.noisyserver.sbs/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
#git clone https://git.noisyserver.sbs/noisycarlos/kitty
|
||||
9
dev/fedora/install-rails.sh
Normal file
9
dev/fedora/install-rails.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
### Ruby
|
||||
sudo dnf group install "C Development Tools and Libraries" -y
|
||||
sudo dnf install ruby-devel zlib-devel -y
|
||||
gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
|
||||
\curl -sSL https://get.rvm.io | bash -s stable --ruby
|
||||
gem install rails
|
||||
gem install solargraph
|
||||
sudo dnf install rubygem-rails -y
|
||||
sudo dnf group install 'Ruby on Rails' -y
|
||||
13
dev/kitty.sh
Normal file
13
dev/kitty.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
###### Kitty
|
||||
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
|
||||
# Create symbolic links to add kitty and kitten to PATH (assuming ~/.local/bin is in
|
||||
# your system-wide PATH)
|
||||
ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/
|
||||
# Place the kitty.desktop file somewhere it can be found by the OS
|
||||
cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/
|
||||
# If you want to open text files and images in kitty via your file manager also add the kitty-open.desktop file
|
||||
cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/
|
||||
# Update the paths to the kitty and its icon in the kitty.desktop file(s)
|
||||
sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop
|
||||
sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop
|
||||
######
|
||||
9
dev/nvim-reset.sh
Normal file
9
dev/nvim-reset.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
cd ~/.config
|
||||
sudo rm -rf nvim
|
||||
git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
|
||||
|
||||
nvim
|
||||
|
||||
cd ~/.config
|
||||
sudo rm -rf nvim
|
||||
git clone http://www.git.noisyserver.sbs/noisycarlos/nvim
|
||||
7
dev/openai
Normal file
7
dev/openai
Normal file
@@ -0,0 +1,7 @@
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0ECQMIjSxD4BWYPx//0m4Bt9bc63EtMmfIuqDGKOX+QLxL0pgc9ojm5DXze05m
|
||||
1l+XRbK9et9Z2taF2GWwzqB1xj3UcPNAiKGu1Jia0qDCmDosdRI9zFupnuHLrMnS
|
||||
C/v4FH4ecYu+jGD1uoTiHPjXo71K0FHPh3MH3jcyCw==
|
||||
=8TfO
|
||||
-----END PGP MESSAGE-----
|
||||
10
dev/repos-linkedag.sh
Normal file
10
dev/repos-linkedag.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
mkdir ~/repos
|
||||
cd ~/repos/
|
||||
git clone https://github.com/spotlightonag/linkedag-backend
|
||||
git clone https://github.com/spotlightonag/linkedag
|
||||
|
||||
cd ~/repos/linkedag
|
||||
npm install
|
||||
|
||||
cd ~/repos/linkedag-backend
|
||||
npm install
|
||||
2
dev/save-openai-token.sh
Normal file
2
dev/save-openai-token.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
read -p 'Enter token to encrypt:' key
|
||||
echo "${key}" | gpg --cipher-algo AES256 --symmetric --armor >openai
|
||||
74
dev/tmux/tmux.conf
Normal file
74
dev/tmux/tmux.conf
Normal file
@@ -0,0 +1,74 @@
|
||||
unbind r
|
||||
# unbind -n c-Enter
|
||||
|
||||
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
||||
|
||||
set -g prefix C-t
|
||||
set -g mouse on
|
||||
|
||||
bind-key m select-pane -L
|
||||
bind-key n select-pane -D
|
||||
bind-key e select-pane -U
|
||||
bind-key i select-pane -R
|
||||
|
||||
bind-key h resize-pane -Z
|
||||
|
||||
set -s extended-keys on
|
||||
set-option -g status-position top
|
||||
set-option -sg escape-time 0
|
||||
# set-option -g focus-events on
|
||||
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||
|
||||
bind-key = kill-session
|
||||
|
||||
# set-option -s escape-time 20
|
||||
|
||||
# Plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||
|
||||
# Catppuccin theme
|
||||
set -g @plugin 'catppuccin/tmux'
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @catppuccin_window_left_separator "█"
|
||||
set -g @catppuccin_window_right_separator "█ "
|
||||
set -g @catppuccin_window_number_position "right"
|
||||
set -g @catppuccin_window_middle_separator " █"
|
||||
set -g @catppuccin_window_default_fill "number"
|
||||
set -g @catppuccin_window_default_text "#W"
|
||||
set -g @catppuccin_window_current_fill "number"
|
||||
set -g @catppuccin_window_current_text "*#W"
|
||||
set -g @catppuccin_status_modules_right "directory application session "
|
||||
set -g @catppuccin_status_left_separator " "
|
||||
set -g @catppuccin_status_right_separator ""
|
||||
set -g @catppuccin_status_right_separator_inverse "no"
|
||||
set -g @catppuccin_status_fill "icon"
|
||||
set -g @catppuccin_status_connect_separator "no"
|
||||
set -g @catppuccin_directory_text "#{pane_current_path}"
|
||||
|
||||
|
||||
# Smart pane switching with awareness of Vim splits.
|
||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||
# is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?|fzf)(diff)?$'"
|
||||
# bind-key -n 'C-m' if-shell "$is_vim" 'send-keys C-m' 'select-pane -L'
|
||||
# bind-key -n 'C-n' if-shell "$is_vim" 'send-keys C-n' 'select-pane -D'
|
||||
# bind-key -n 'C-e' if-shell "$is_vim" 'send-keys C-e' 'select-pane -U'
|
||||
# bind-key -n 'C-i' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
||||
|
||||
# tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
|
||||
# if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
||||
# "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
|
||||
# if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
|
||||
# "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
|
||||
|
||||
# bind-key -T copy-mode-vi 'C-m' select-pane -L
|
||||
# bind-key -T copy-mode-vi 'C-n' select-pane -D
|
||||
# bind-key -T copy-mode-vi 'C-e' select-pane -U
|
||||
# bind-key -T copy-mode-vi 'C-i' select-pane -R
|
||||
# bind-key -T copy-mode-vi 'C-k' select-pane -l
|
||||
|
||||
|
||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
1
dev/tmux/tmuxConfLoad.sh
Executable file
1
dev/tmux/tmuxConfLoad.sh
Executable file
@@ -0,0 +1 @@
|
||||
cp ./tmux.conf ~/.tmux.conf
|
||||
4
dev/tmux/tmuxConfSave.sh
Executable file
4
dev/tmux/tmuxConfSave.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
cp ~/.tmux.conf ./tmux.conf
|
||||
git add tmux.conf
|
||||
git commit -m "Updates Tmux Configuration"
|
||||
git push
|
||||
80
dev/ubuntu/dev.sh
Normal file
80
dev/ubuntu/dev.sh
Normal file
@@ -0,0 +1,80 @@
|
||||
######################################## nvim
|
||||
sudo apt install zig -y
|
||||
snap install nvim --classic
|
||||
sudo apt install xsel xclip wl-clipboard
|
||||
sudo apt install ripgrep -y
|
||||
|
||||
sudo cp ../sesh /usr/bin
|
||||
cp ../tmux.conf ~/.tmux.conf
|
||||
|
||||
######################################## Node
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
nvm install node
|
||||
nvm install-latest-npm
|
||||
########
|
||||
|
||||
sudo apt install golang-go -y
|
||||
sudo apt install ripgrep -y
|
||||
sudo apt install ruby -y
|
||||
sudo apt install ruby-dev -y
|
||||
|
||||
sudo add-apt-repository ppa:lazygit-team/release -y
|
||||
sudo apt update
|
||||
|
||||
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
|
||||
tar xf lazygit.tar.gz lazygit
|
||||
sudo install lazygit /usr/local/bin
|
||||
|
||||
sudo apt install alacritty -y
|
||||
sudo flatpak install org.wezfurlong.wezterm -y
|
||||
|
||||
sudo apt install tmux -y
|
||||
|
||||
sudo apt install software-properties-common
|
||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
|
||||
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
|
||||
sudo apt update
|
||||
sudo apt install code -y
|
||||
|
||||
# sudo gem install solargraph
|
||||
|
||||
######################################## nerd fonts
|
||||
sudo apt install wget fontconfig &&
|
||||
wget -P ~/.local/share/fonts https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Meslo.zip &&
|
||||
cd ~/.local/share/fonts && unzip Meslo.zip && rm *Windows* && rm Meslo.zip && fc-cache -fv
|
||||
######
|
||||
######################################## Docker
|
||||
# Add Docker's official GPG key:
|
||||
sudo apt-get update
|
||||
sudo apt-get install ca-certificates curl
|
||||
sudo install -m 0755 -d /etc/apt/keyrings
|
||||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
# Add the repository to Apt sources:
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" |
|
||||
sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
|
||||
sudo apt-get update
|
||||
####
|
||||
|
||||
npm install -g @railway/cli
|
||||
npm install -g vercel
|
||||
npm install -g vercel@latest
|
||||
|
||||
cd ~/.config/
|
||||
|
||||
git config --global user.email "noisycarlos@hey.com"
|
||||
git config --global user.name "Carlos Aldana"
|
||||
|
||||
git config --global credential.helper store
|
||||
git clone https://git.noisyserver.sbs/noisycarlos/nvim
|
||||
git clone https://git.noisyserver.sbs/noisycarlos/wezterm
|
||||
|
||||
rm -r lazygit
|
||||
git clone https://git.noisyserver.sbs/noisycarlos/lazygit
|
||||
git clone https://git.noisyserver.sbs/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
Reference in New Issue
Block a user