Compare commits
66 Commits
Author | SHA1 | Date | |
---|---|---|---|
91682d9992 | |||
bae580c72a | |||
be412ae489 | |||
c8cf2c98da | |||
ae4ce36eb4 | |||
c7bc5d1f60 | |||
ed811bbae2 | |||
a756072b69 | |||
c6f5a7f87d | |||
a71abc3962 | |||
cb1a72d78d | |||
579bf63c92 | |||
8b9f8233f9 | |||
d133d0eb6d | |||
4f711d1f3c | |||
e4d9373f1f | |||
4e9e21aa93 | |||
7cb2318610 | |||
85d31b4e87 | |||
7fcf02f968 | |||
fc4bfa54bf | |||
cbd00dd044 | |||
680ea33e1c | |||
03b8cc0f51 | |||
b56ff1d67f | |||
9bf8ff35a7 | |||
f990d4cd91 | |||
94c6854b3f | |||
b7c644bcca | |||
c76363a2ec | |||
7e1380cee3 | |||
064ef8cdb2 | |||
7d0528f634 | |||
ead0f980cc | |||
fe863dd3ec | |||
a64d47468d | |||
1f69c5ae8c | |||
6ffa44ddf2 | |||
c508d8b4ea | |||
c9440c40ed | |||
33276ce8e9 | |||
fa3bf6ff37 | |||
d3842431cc | |||
16cb1b0983 | |||
95bcbd543b | |||
78876b1fe9 | |||
ecda413f11 | |||
9b6d07193d | |||
e45b822767 | |||
fe34917fb5 | |||
8f48bd0aec | |||
55251c87d5 | |||
b279da9951 | |||
376a0f099b | |||
bef3880e68 | |||
f8a52a1308 | |||
168e40d440 | |||
946a694d6e | |||
59996a56c8 | |||
a6e3542ef2 | |||
337119fa02 | |||
ef8a6d4906 | |||
25900dc6c7 | |||
874faedf0b | |||
ce4e16917c | |||
5f25cd020c |
66
.bashrc
66
.bashrc
@ -87,12 +87,41 @@ fi
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
vc() {
|
||||
git add .
|
||||
git commit -m "commit: $(date "+%Y-%m-%d %H:%M:%S")"
|
||||
git push
|
||||
}
|
||||
# some more ls aliases
|
||||
alias ll='ls -alFh'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
#alias lb='lsblk -o+FSTYPE,FSAVAIL,FSUSED,FSUSE%,MODEL,UUID'
|
||||
#alias lb='lsblk -o+FSAVAIL,FSUSED,FSUSE%,MODEL,PARTTYPENAME,STATE'
|
||||
alias lb='lsblk -o+FSTYPE,FSAVAIL,FSUSED,FSUSE%,MODEL'
|
||||
alias opg="lsof 2>/dev/null +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g'"
|
||||
alias osw="lsof 2>/dev/null +D . | awk '\$NF ~ /swp$/ {print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g'"
|
||||
alias xpg="lsof 2>/dev/null +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
|
||||
alias xsw="lsof 2>/dev/null +D . | grep '.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
|
||||
alias ons='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)"'
|
||||
alias xns='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | sed "s/\\.swo$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $PG -f %'
|
||||
alias xnsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | sed "s/\\.swo$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $PG -f % | pspg'
|
||||
#alias xnsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)" | fzf | xargs -I % $PG -f % | pspg'
|
||||
alias mns='fzf | xargs -I {} sqlcmd -U Pricing -S mid-sql02 -C -i {} | pspg'
|
||||
alias xmsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $MS -i % | pspg'
|
||||
alias nv='~/nvim-linux64/bin/nvim'
|
||||
alias gs='git status -s'
|
||||
alias ga='git status --untracked-files=all -s | fzf -m | awk "{print \$2}" | xargs git add '
|
||||
alias gx='git status --untracked-files=all -s | fzf -m | awk "{print \$2}" | xargs git checkout '
|
||||
alias td='rg "\- \[[^x]\]"'
|
||||
# alias tdo='rg "\- \[[^x]\]" | fzf | xargs nvim'
|
||||
alias tdo='rg "\- \[ \]" --line-number | fzf | awk -F: "{print \$1, \"+\"\$2}" | xargs -r nvim'
|
||||
alias gr='git reset HEAD'
|
||||
alias gc='git commit -v'
|
||||
alias gd='git difftool'
|
||||
alias gl='git log --graph --oneline --format="%C(yellow)%h %C(green)%an%Creset %C(blue)%ad%Creset %s"'
|
||||
alias cj='cd ~/storage/shared/Documents/journal/'
|
||||
alias jr='cd ~/storage/shared/Documents/journal/ && git pull && vc && cd -'
|
||||
alias hc='cd ~/storage/shared/Documents/hc_notes/ && git pull && git push && cd -'
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
@ -118,38 +147,19 @@ if ! shopt -oq posix; then
|
||||
fi
|
||||
fi
|
||||
|
||||
EDITOR=/usr/bin/vim.basic
|
||||
#EDITOR=/usr/bin/vim.basic
|
||||
export EDITOR=vim
|
||||
export VISUAL=vim
|
||||
PAGER="less"
|
||||
LESS="-S"
|
||||
export PG="psql -U ptrowbridge -d ubm -p 5432 -h 10.56.60.254"
|
||||
export PSQL_PAGER="pspg"
|
||||
|
||||
# GOPATH=$HOME/go
|
||||
# function _update_ps1() {
|
||||
# PS1="$($GOPATH/bin/powerline-go -error $?)"
|
||||
# }
|
||||
# if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
|
||||
# PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
||||
# fi
|
||||
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
|
||||
GIT_PROMPT_ONLY_IN_REPO=1
|
||||
source $HOME/.bash-git-prompt/gitprompt.sh
|
||||
GIT_PROMPT_ONLY_IN_REPO=1
|
||||
source $HOME/.bash-git-prompt/gitprompt.sh
|
||||
fi
|
||||
|
||||
export JAVA_HOME=/opt/jdk-19.0.1
|
||||
export PATH=$PATH:$JAVA_HOME/bin
|
||||
export PATH=$PATH:/opt/gradle/gradle-7.6/bin
|
||||
export RUNNER_PATH=/opt/runner/
|
||||
export DB2PW=qqqx53@048
|
||||
export PGPW=qqqx53!030
|
||||
bind 'set bell-style none'
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
alias opg="lsof +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g'"
|
||||
#alias opg="lsof +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r realpath"
|
||||
alias osw="lsof +D . | awk '\$NF ~ /swp$/ {print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g'"
|
||||
alias xpg="lsof +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
|
||||
alias xsw="lsof +D . | grep '.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
|
||||
alias gl="git log --graph"
|
||||
[ -f ~/dot_config/.bashrc_local ] && source ~/dot_config/.bashrc_local
|
||||
export PATH=$PATH:~/lua-language-server/bin
|
||||
|
9
.bashrc_local_example
Normal file
9
.bashrc_local_example
Normal file
@ -0,0 +1,9 @@
|
||||
#export IPTOKEN=
|
||||
#export PG="psql -U ptrowbridge -d ubm -p 5432 -h usmidsap01"
|
||||
#export MS="sqlcmd.exe -S mid-sql02 -i"
|
||||
#export JAVA_HOME=/opt/jdk-19.0.1
|
||||
#export PATH=$PATH:$JAVA_HOME/bin
|
||||
#export PATH=$PATH:/opt/gradle/gradle-7.6/bin
|
||||
#export RUNNER_PATH=/opt/runner/
|
||||
#export DB2PW=
|
||||
#export PGPW=
|
11
.gitconfig
11
.gitconfig
@ -2,7 +2,7 @@
|
||||
email = paul@hptrow.me
|
||||
name = Paul Trowbridge
|
||||
[core]
|
||||
autocrlf = true
|
||||
autocrlf = input
|
||||
editor = vim
|
||||
[push]
|
||||
default = simple
|
||||
@ -15,5 +15,14 @@
|
||||
[diff]
|
||||
tool = vimdiff
|
||||
[safe]
|
||||
directory = /var/www/kimai2
|
||||
directory = /var/www/html/resume/
|
||||
directory = /var/www/html/resume
|
||||
directory = /opt/forecast_api/
|
||||
directory = /opt/forecast_api
|
||||
directory = /etc/postgresql/15/main/
|
||||
directory = /etc/postgresql/15/main
|
||||
directory = /storage/emulated/0/Documents/journal
|
||||
directory = /storage/emulated/0/Documents/hc_notes
|
||||
[pull]
|
||||
rebase = false
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.swp
|
||||
.bashrc_local
|
||||
|
12
.pspgconf
12
.pspgconf
@ -13,7 +13,7 @@ force_uniborder = false
|
||||
show_rownum = false
|
||||
without_commandbar = false
|
||||
without_topbar = false
|
||||
vertical_cursor = false
|
||||
vertical_cursor = true
|
||||
on_sigint_exit = false
|
||||
no_sigint_search_reset = false
|
||||
double_header = false
|
||||
@ -25,10 +25,16 @@ menu_always = false
|
||||
empty_string_is_null = true
|
||||
last_row_search = true
|
||||
progressive_load_mode = true
|
||||
highlight_odd_rec = false
|
||||
highlight_odd_rec = true
|
||||
hide_header_line = false
|
||||
theme = 0
|
||||
on_exit_reset = false
|
||||
on_exit_clean = false
|
||||
on_exit_erase_line = false
|
||||
on_exit_sgr0 = false
|
||||
direct_color = false
|
||||
theme = 18
|
||||
border_type = 2
|
||||
default_clipboard_format = 0
|
||||
clipboard_app = 0
|
||||
hist_size = 500
|
||||
esc_delay = -1
|
||||
|
5
.psqlrc
5
.psqlrc
@ -2,3 +2,8 @@
|
||||
\set x '\\setenv PAGER ''less -S'''
|
||||
\set xx '\\setenv PAGER \'pspg -bX --no-mouse\''
|
||||
\timing on
|
||||
\set QUIET 1
|
||||
\pset linestyle unicode
|
||||
-- \pset border 2
|
||||
\pset null ∅
|
||||
\unset QUIET
|
||||
|
17
.tmux.conf
17
.tmux.conf
@ -5,12 +5,27 @@ bind -r j select-pane -D # move down
|
||||
bind -r k select-pane -U # move up
|
||||
bind -r l select-pane -R # move right
|
||||
set -g mouse on
|
||||
bind -n C-PgDn next-window
|
||||
bind -n C-PgUp previous-window
|
||||
|
||||
#plugin manager for install tmux-resurrect
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'jimeh/tmux-themepack'
|
||||
set -g @tmux-themepack 'powerline/default/cyan'
|
||||
set -g @themepack 'powerline/default/cyan'
|
||||
#-----------------------nova---------------------------------------------
|
||||
#set -g @plugin 'o0th/tmux-nova'
|
||||
#set -g @nova-nerdfonts true
|
||||
#set -g @nova-nerdfonts-left
|
||||
#set -g @nova-nerdfonts-right
|
||||
#set -g @nova-segment-mode "#{?client_prefix,Ω,ω}"
|
||||
#set -g @nova-segment-mode-colors "#50fa7b #282a36"
|
||||
#set -g @nova-segment-whoami "#(whoami)@#h"
|
||||
#set -g @nova-segment-whoami-colors "#50fa7b #282a36"
|
||||
#set -g @nova-pane "#I#{?pane_in_mode, #{pane_mode},} #W"
|
||||
#set -g @nova-rows 0
|
||||
#set -g @nova-segments-0-left "mode"
|
||||
#set -g @nova-segments-0-right "whoami"
|
||||
|
||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
28
.vimrc
28
.vimrc
@ -9,7 +9,7 @@ Plugin 'gmarik/Vundle.vim'
|
||||
Plugin 'vim-airline/vim-airline'
|
||||
Plugin 'kien/ctrlp.vim'
|
||||
Plugin 'scrooloose/nerdtree'
|
||||
Plugin 'edkolev/tmuxline.vim'
|
||||
"Plugin 'edkolev/tmuxline.vim'
|
||||
Plugin 'vim-airline/vim-airline-themes'
|
||||
Plugin 'leafgarland/typescript-vim'
|
||||
Plugin 'peitalin/vim-jsx-typescript'
|
||||
@ -24,8 +24,9 @@ map <C-h> <C-W>h
|
||||
map <C-l> <C-W>l
|
||||
let NERDTreeShowHidden=1
|
||||
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
|
||||
"colorscheme ron
|
||||
colorscheme pablo
|
||||
set mouse=a
|
||||
set nowrap
|
||||
colorscheme desert
|
||||
syntax on
|
||||
set splitright
|
||||
set splitbelow
|
||||
@ -38,9 +39,14 @@ let g:netrw_altv = 1
|
||||
let g:netrw_winsize = 25
|
||||
"----airline tabs for buffers-------
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline_theme = 'sierra'
|
||||
let g:airline_theme = 'violet'
|
||||
let g:airline_solarized_bg='dark'
|
||||
let g:tmuxline_powerline_separators = 1
|
||||
let g:airline_powerline_fonts = 1
|
||||
"----markdown folding------------
|
||||
"let g:vim_markdown_folding_disabled = 1
|
||||
set nofoldenable " disable folding
|
||||
"---general--------------------
|
||||
let mapleader = ";"
|
||||
set showcmd
|
||||
map <Leader>a :bn<cr>
|
||||
@ -67,17 +73,3 @@ nnoremap <silent> <Up> 5<C-W>+
|
||||
nnoremap <silent> <Down> 5<C-W>-
|
||||
nnoremap <silent> <Right> 10<C-W>>
|
||||
nnoremap <silent> <Left> 10<C-W><
|
||||
"----------funcion to comment out every line except current---------------
|
||||
function! CommentOutUnselectedLines()
|
||||
let l:highlighted_lines = sort(getpos("'<")[1], getpos("'>")[1])
|
||||
let l:line_count = line("$")
|
||||
let l:comment_char = "--"
|
||||
|
||||
for l:line_number in range(1, l:line_count)
|
||||
if index(l:highlighted_lines, l:line_number) == -1
|
||||
execute l:line_number . "s/^/" . l:comment_char . "/"
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
nnoremap <Leader>cc :call CommentOutUnselectedLines()<CR>
|
||||
|
15
globals.sh
15
globals.sh
@ -1,15 +0,0 @@
|
||||
curl 'https://hccompanies-my.sharepoint.com/personal/ptrowbridge_hc-companies_com/_layouts/15/download.aspx?UniqueId=3a885a13%2D7742%2D4ade%2D8efb%2D02298332da2b' \
|
||||
-H 'authority: hccompanies-my.sharepoint.com' \
|
||||
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8' \
|
||||
-H 'accept-language: en-US,en;q=0.9' \
|
||||
-H 'cookie: MicrosoftApplicationsTelemetryFirstLaunchTime=1653311371691; MicrosoftApplicationsTelemetryDeviceId=a0610434-2a4e-5c2e-2c9b-b51ede5f92c1; ExcelWacDataCenter=PUS1; WacDataCenter=PUS1; rtFa=IdBNqEcPR1AjGrvv7SgQYjuC3opFgyf5Za4SSbG5swUmRTc4NEM0MkItMjkwMC00QTQyLUI3MzctMjA3N0U2NThFMzUzIzEzMzA4MTYwODEzNjkxODMxMCM5MURBNjZBMC1FMEEwLUQwMDAtNTUwOS1ERDcxNjcyQUFBMjgjUFRST1dCUklER0UlNDBIQy1DT01QQU5JRVMuQ09NCgvbSHzfO/7DBuCNA0ykejweiszYCu/9L1+nat9BE1ltqvGyBEYIhp8UxTAGTb3NyYBy3W6Daqf4SBd2X8yfuCkkWHMICjAvv1pyQeLrjQ482PKjEt1nER9dY23RBiyVTiLoXT8eja1IZtyFb1SfgjQRMwhTxK1rnJ4cAWnkp9AL1FTm/wklErgy4hWDMnrFxnlt8Scz9b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AwLGZlZDQ2NzAyLTgxNzAtNGE0MS1hNTcyLWEwYmFhMmNkNTE4MywsLCwsLDAsLE1ub2RleTF4eGxyTWtORC83SDBYUXRDTXpmaE9CajJCcUorZjJxY3hOVjFDTWdnTjBXOCs5M0R2TERWY0Jmc3NUc05jem1ZaFkvN3JZL1VkUUhQMHZrVWQ1VW5saFRXUDdWRFd3NjJTU1lYMGFqVGg4SFpXZjhncFE4aEY4Q2YwUWtOSkpmS21RakpOMlZWcWhaN1JhN3JSWDBtZlZHVHgzMFgxK09KZ0Z5cnZBeVZITGd2SUwwTFJhd0hZSHdvQ0NERGxDZEFtU3JudHhKUGpLMXlYdldvcXBJMUxNdmdxL0laUklSa2lISk1IRzAyaW52ZDV6WDdBT2FSVE1nUXR6VEZrRUl0ZzI2S0ZvRmdKQlQzVzAxR1FyV2ExemxFQUxOOE5YOWQwV3AwajVab3p5VE5id3psbkRTZU5Ba0Z3d0d4M2poc0ZGdVNiTG9yUXNJUWZ1UT09PC9TUD4=; KillSwitchOverrides_enableKillSwitches=; KillSwitchOverrides_disableKillSwitches=' \
|
||||
-H 'if-none-match: "{3A885A13-7742-4ADE-8EFB-02298332DA2B},278"' \
|
||||
-H 'referer: https://hccompanies-my.sharepoint.com/personal/ptrowbridge_hc-companies_com/_layouts/15/onedrive.aspx?login_hint=PTrowbridge%40HC%2DCompanies%2Ecom&id=%2Fpersonal%2Fptrowbridge%5Fhc%2Dcompanies%5Fcom%2FDocuments%2FBackups' \
|
||||
-H 'sec-fetch-dest: iframe' \
|
||||
-H 'sec-fetch-mode: navigate' \
|
||||
-H 'sec-fetch-site: same-origin' \
|
||||
-H 'sec-gpc: 1' \
|
||||
-H 'service-worker-navigation-preload: true' \
|
||||
-H 'upgrade-insecure-requests: 1' \
|
||||
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36' \
|
||||
--compressed --output ubm_globals.backup
|
16
grab.sh
16
grab.sh
@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
curl 'https://hccompanies-my.sharepoint.com/personal/ptrowbridge_hc-companies_com/_layouts/15/download.aspx?UniqueId=ece6a9ec%2D750b%2D44a1%2D8e77%2Dc5c84625949c' \
|
||||
-H 'authority: hccompanies-my.sharepoint.com' \
|
||||
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8' \
|
||||
-H 'accept-language: en-US,en;q=0.9' \
|
||||
-H 'cookie: MicrosoftApplicationsTelemetryFirstLaunchTime=1653311371691; MicrosoftApplicationsTelemetryDeviceId=a0610434-2a4e-5c2e-2c9b-b51ede5f92c1; ExcelWacDataCenter=PUS1; WacDataCenter=PUS1; KillSwitchOverrides_enableKillSwitches=; KillSwitchOverrides_disableKillSwitches=; nSGt-542D99B9054F514669678DDFE32E0756DC09EDEB6CD549BB=gYEwOEFFMTEwMzU5M0YwMDAzOENENDY2Qjc1NTA0NUU2NzI2NTQ0REFEODM5NjcwRDUzMDU0MkQ5OUI5MDU0RjUxNDY2OTY3OERERkUzMkUwNzU2REMwOUVERUI2Q0Q1NDlCQhIxMzMwODE2MTQxMTkwNzczNDUdaGNjb21wYW5pZXMtbXkuc2hhcmVwb2ludC5jb20CjaE83VUMs1yz9clsr1Lzs0o0E9Y75lS13NO7Ks0+VUJd7ewlCfUn1k+AO+/jrEm6J/hZT0FsE3g62ZMldwZZelQ5KqlRJc4cOXShAKdvlKDcnEz3CVScTWcyqHoUnJt+J7+TV5Oa3SQlIgi27VXitUV0PKsN4GnjDFTg+9B8Asv9lqCRAfH745b4YFTyg5zsyLKERLccaNmlVr/6pVX3107VmpPFzEi2B+DpW8RVc92RBr20ZCya+4j/rUME3GkEtCJQbHkDTawlWzMBFwHCAFAQ+oeirQywqqq4Qmbikpbw1ZbEuxGFzwET2TjcGIoAREPZW0fjRpImZKQIDmj/lQAAAA==; rtFa=IdBNqEcPR1AjGrvv7SgQ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MjksMTMzMDg0MjAwMTM2MTM3MDI5LCwsZXlKNGJYTmZZMk1pT2lKYlhDSkRVREZjSWwwaUxDSjRiWE5mYzNOdElqb2lNU0lzSW1GamNuTWlPaUpiWENKMWNtNDZkWE5sY2pweVpXZHBjM1JsY25ObFkzVnlhWFI1YVc1bWIxd2lYU0lzSW5CeVpXWmxjbkpsWkY5MWMyVnlibUZ0WlNJNklsQlVjbTkzWW5KcFpHZGxRRWhETFVOdmJYQmhibWxsY3k1amIyMGlMQ0oxZEdraU9pSnNaMHRYYzNGVE5HNVZkUzFhWWw5RFpGRTFPRUZCSW4wPSwxMzMwODE2NDQxMzY3NjIxNTYsMTMzMDgxNjA4MTIwMDAwMDAwLGZlZDQ2NzAyLTgxNzAtNGE0MS1hNTcyLWEwYmFhMmNkNTE4MywsLCwsLDAsLEpickw5MDg1SmVHRnFpWEdIUnc2aXk5K1h5Ky9JNzVVUmhiNlB2VHExclEyaW9WRnZGd1g0a2J1WFJzUGRWLzVIa3MxdEVTcVNUak1ra2VKbHJ2VjE1MWNVbWF1Vk1NQVRSd2tHanFUSFBaSTg5Rk5aVS8vQkpMUGdKejlueXVKWEgvbytvaUlzUDJnMjJUR1RnQmJzRlhSa2I5N29hek1nTk4xR3FJdEhDQXh4TUlFRWRnTndJTGdzQ0tIRWlPWWtJWFoyS2Z6ZFVwZkp1dnFBTFI1ZW5SWkJ2TG1teVJubmJ6Q2dRa2REa2R0cXJYeHJFeG5EalhuRnNjcllRaEpYTk9XSUVqVldFdnEvZUp3Vm8yN0RTeUlrSkM4cUtXUU9rNG9tb2lSbUdPZC85YUlTd0NBejZDOWpGY1JrY1IyWjZFSDRtamZmRzBIUHlyUUZveWZPZz09PC9TUD4=; cucg=1' \
|
||||
-H 'referer: https://hccompanies-my.sharepoint.com/personal/ptrowbridge_hc-companies_com/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fptrowbridge%5Fhc%2Dcompanies%5Fcom%2FDocuments%2FBackups' \
|
||||
-H 'sec-fetch-dest: iframe' \
|
||||
-H 'sec-fetch-mode: navigate' \
|
||||
-H 'sec-fetch-site: same-origin' \
|
||||
-H 'sec-gpc: 1' \
|
||||
-H 'service-worker-navigation-preload: true' \
|
||||
-H 'upgrade-insecure-requests: 1' \
|
||||
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36' \
|
||||
--compressed --output ubm.backup
|
12
install_postgres.sh
Executable file
12
install_postgres.sh
Executable file
@ -0,0 +1,12 @@
|
||||
# Create the file repository configuration:
|
||||
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
||||
|
||||
# Import the repository signing key:
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||
|
||||
# Update the package lists:
|
||||
sudo apt-get update
|
||||
|
||||
# Install the latest version of PostgreSQL.
|
||||
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
|
||||
sudo apt-get -y install postgresql
|
24
install_python3.sh
Executable file
24
install_python3.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update the package list
|
||||
sudo apt-get update
|
||||
|
||||
# Install the software-properties-common package
|
||||
sudo apt-get install software-properties-common
|
||||
|
||||
# Add the deadsnakes PPA to the sources list
|
||||
sudo add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
# Update the package list again
|
||||
sudo apt-get update
|
||||
|
||||
# Check the latest version of Python 3 available
|
||||
latest_version=$(apt-cache madison python3 | awk '{print $3}' | grep "^3\." | sort -V | tail -1)
|
||||
|
||||
# Install the latest version of Python 3
|
||||
sudo apt-get install -y python3=$latest_version
|
||||
|
||||
# Verify the installation
|
||||
python3 --version
|
||||
which python3
|
||||
|
1
nvchad.sh
Executable file
1
nvchad.sh
Executable file
@ -0,0 +1 @@
|
||||
git clone git@gitea.hptrow.me:pt/nvchad ~/.config/nvim
|
20
nvim_build.sh
Executable file
20
nvim_build.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install dependencies
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip
|
||||
|
||||
# Clone the Neovim repository
|
||||
git clone https://github.com/neovim/neovim.git ~/neovim
|
||||
|
||||
# Navigate into the Neovim directory
|
||||
cd ~/neovim
|
||||
|
||||
# Checkout the latest release tag
|
||||
git checkout $(git describe --tags --abbrev=0)
|
||||
|
||||
# Build and install Neovim
|
||||
make CMAKE_BUILD_TYPE=Release
|
||||
sudo make install
|
||||
|
||||
cd -
|
32
setup.sh
32
setup.sh
@ -16,7 +16,7 @@ then
|
||||
else
|
||||
echo "installing curl..."
|
||||
apt update -q4
|
||||
apt install curl -y
|
||||
sudo apt install curl -y
|
||||
fi
|
||||
|
||||
#----------vim-----------
|
||||
@ -26,7 +26,7 @@ then
|
||||
else
|
||||
echo "installing vim..."
|
||||
apt update -q4
|
||||
apt install vim -y
|
||||
sudo apt install vim -y
|
||||
fi
|
||||
|
||||
#----------tmux-----------
|
||||
@ -36,7 +36,7 @@ then
|
||||
else
|
||||
echo "installing tmux..."
|
||||
apt update -q4
|
||||
apt install tmux -y
|
||||
sudo apt install tmux -y
|
||||
fi
|
||||
|
||||
#----------pspg-----------
|
||||
@ -46,7 +46,7 @@ then
|
||||
else
|
||||
echo "installing pspg..."
|
||||
apt update -q4
|
||||
apt install pspg -y
|
||||
sudo apt install pspg -y
|
||||
fi
|
||||
|
||||
#------------------------------------------------ create the resore directory if it doesn't already exist--------------------------------------------------
|
||||
@ -171,3 +171,27 @@ then
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
while true; do
|
||||
read -p "do you want to install git-bash-prompt?" yn
|
||||
case $yn in
|
||||
[Yy]* )
|
||||
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
|
||||
break;;
|
||||
[Nn]* )
|
||||
break;;
|
||||
* ) echo "Please answer yes or no.";;
|
||||
esac
|
||||
done
|
||||
|
||||
while true; do
|
||||
read -p "do you want to install fzf, ripgrep?" yn
|
||||
case $yn in
|
||||
[Yy]* )
|
||||
sudo apt-get install fzf ripgrep
|
||||
break;;
|
||||
[Nn]* )
|
||||
break;;
|
||||
* ) echo "Please answer yes or no.";;
|
||||
esac
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user