Compare commits
No commits in common. "66ba2ad74538f5178f3aee3551b90952bce66b13" and "cb122db07e86cb1aa533c5db188d0c8aa476ad81" have entirely different histories.
66ba2ad745
...
cb122db07e
|
|
@ -15,7 +15,6 @@ alias cd='cd -P'
|
|||
alias x='chmod +x'
|
||||
alias nx='chmod -x'
|
||||
alias m=make
|
||||
alias vd='echo $DISPLAY'
|
||||
|
||||
# setfont
|
||||
alias f32='setfont /usr/share/kbd/consolefonts/latarcyrheb-sun32.psfu.gz'
|
||||
|
|
@ -57,8 +56,6 @@ alias lastf='/bin/ls -rt1|tail -1'
|
|||
alias slf='run-mailcap "$(/bin/ls -rt1|tail -1)"'
|
||||
alias vlf='edit "$(/usr/bin/ls -rt1|tail -1)"'
|
||||
|
||||
# tmux - force 256color
|
||||
alias tmux='tmux -2'
|
||||
|
||||
# vim
|
||||
alias vr='vim ~/.vimrc'
|
||||
|
|
@ -109,9 +106,9 @@ alias kgp='kubectl get po'
|
|||
alias kgd='kubectl get deploy'
|
||||
alias kgs='kubectl get svc'
|
||||
|
||||
# alias v=vagrant
|
||||
# alias vu='vagrant up'
|
||||
# alias vd='vagrant destroy'
|
||||
alias v=vagrant
|
||||
alias vu='vagrant up'
|
||||
alias vd='vagrant destroy'
|
||||
|
||||
|
||||
# ssh
|
||||
|
|
|
|||
20
.bashrc
20
.bashrc
|
|
@ -440,21 +440,13 @@ function lastfile () {
|
|||
}
|
||||
|
||||
function newpasswd() {
|
||||
# from perflexity.ai (juin 2025)
|
||||
# version 32 cara parmi alnum + symboles [entropie = 6,25bits]
|
||||
# cat /dev/urandom | tr -dc 'A-Za-z0-9!@#$%^&*()_+=' | fold -w 32 | head -n 1
|
||||
|
||||
# version 32 cara parmi alnum + symboles sans 1 i I l [entropie = 6,17bits]
|
||||
cat /dev/urandom | tr -dc 'A-HJ-KM-Za-hj-km-z0234567890!@#$%^&*()_+=' | fold -w 32 | head -n 1
|
||||
|
||||
#
|
||||
# version 32 carac parmi base64 [entropie = 6bits]
|
||||
# (suppression du/des = final)
|
||||
# openssl rand -base64 32 | tr -d =
|
||||
|
||||
# version 32 carac parmi les lettres et les chiffres (62 carac) [entropie = 5,95bits]
|
||||
# cat /dev/urandom | tr -cd '[:alnum:]' | fold -w32 | head -1
|
||||
# from llama 3.3 70B
|
||||
tr -dc 'a-hj-km-no-pqrs-tuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ023456789' < /dev/urandom | fold -w 10 | head -n 1
|
||||
|
||||
# base64: pas une bonne idee car limite le nombre de caracteres
|
||||
# date +%s | sha256sum | base64 | head -c 32 ; echo
|
||||
# hexadecimal=base16: pire
|
||||
# openssl rand -hex 32
|
||||
}
|
||||
|
||||
## llm https://rez0.blog/hacking/2023/09/18/vim-llm-hacks.html
|
||||
|
|
|
|||
12
.tmux.conf
12
.tmux.conf
|
|
@ -39,16 +39,10 @@ set-option -g history-limit 10000
|
|||
set -g status on
|
||||
set -g status-keys vi
|
||||
|
||||
# check config file is readen
|
||||
# set -g status-left "CONFIG OK"
|
||||
|
||||
# Si connecté en SSH, changer la bg en red, sino en gree
|
||||
if-shell 'env | grep -q SSH_CONNECTION' \
|
||||
'set -g @bg red' \
|
||||
'set -g @bg green'
|
||||
set -g status-style "bg=#{@bg} fg=black italics"
|
||||
# change color
|
||||
set -g status-right "#[fg=blue bg=black noitalics bold] %R #[fg=yellow nobold italics]#{user}#[fg=white noitalics]@#[fg=#{@bg} bg=black noitalics bold]#h #[bg=#{@bg} fg=black ] "
|
||||
set -g status-style 'bg=green fg=black italics'
|
||||
# time et hostname
|
||||
set -g status-right "#[fg=blue bg=black noitalics bold] %R #[fg=yellow nobold]#{user}#[fg=white bg=black noitalics bold]@#h #[bg=green fg=black ] "
|
||||
|
||||
# reload this file
|
||||
bind r source-file /home/patrick/.tmux.conf \; display-message ".tmux.conf reloaded"
|
||||
|
|
|
|||
12
muttrc
12
muttrc
|
|
@ -90,9 +90,9 @@ bind pager <down> half-down
|
|||
macro index .r ":source ~/.mutt/muttrc<enter>" "Reload muttrc"
|
||||
macro index <esc>T <untag-pattern>
|
||||
|
||||
# urlview >> handle by tmux : ctrl-a u
|
||||
# macro index,pager \cb "<pipe-message>urlview<enter>" "open URL in urlview"
|
||||
# macro attach,compose \cb "<pipe-entry> urlview<Enter>" "call urlview to extract URLs out of a message"
|
||||
# urlscan
|
||||
macro index,pager \cb "<pipe-message>urlscan<enter>" "open URL in urlscan"
|
||||
macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"
|
||||
|
||||
# save messages
|
||||
macro index >I <tag-prefix><save-message>=SERVICE.INFO<enter> 'save to service info'
|
||||
|
|
@ -181,10 +181,6 @@ set attribution="Le %d, %n a écrit :"
|
|||
#
|
||||
# headers
|
||||
#
|
||||
|
||||
# DEBUG
|
||||
# set edit_headers = yes
|
||||
|
||||
ignore *
|
||||
unignore from date subject to cc reply-to User-Agent Content-Length
|
||||
unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
|
||||
|
|
@ -193,8 +189,6 @@ unignore X-j-chkmail-Status: X-Spam-Status: X-Amavis-Spam-Status: X-Renater-Spam
|
|||
# reset header order
|
||||
unhdr_order *
|
||||
hdr_order Date: Subject: From: From To: Cc: reply-to: User-Agent: x-mailer: posted-to: List-Id: x-mailing-list: Content-Length: X-*:
|
||||
send-hook . "unmy_hdr Reply-To:"
|
||||
reply-hook . "unmy_hdr Reply-To:"
|
||||
|
||||
# pager
|
||||
set pager_stop # dont exit at the end of the message with <space>
|
||||
|
|
|
|||
Loading…
Reference in New Issue