Automatic add
This commit is contained in:
parent
424fa56e0a
commit
4eb338bc82
26
.bashrc
26
.bashrc
|
@ -1,3 +1,4 @@
|
|||
alias bsq='cd /nfs/homes/tischmid/repos/piscine/bsq && zellij'
|
||||
alias l='ls -lArthF --color=auto'
|
||||
alias v='vim'
|
||||
alias ..='cd ..'
|
||||
|
@ -6,13 +7,16 @@ alias tmux='tmux -2'
|
|||
alias ft='cc -Wall -Wextra -Werror -o main -xc -- <(grep -v "////" *.c) && ./main ; rm -f -- ./main ; :'
|
||||
alias ft2='cc -Wall -Wextra -Werror -o main -xc -- <(grep -v "////" *.c) && ./main'
|
||||
alias git='EDITOR=vim git'
|
||||
alias cmatrix='cmatrix -cu3 -Cred'
|
||||
alias cmatrix='cmatrix -u3 -Cred'
|
||||
alias gca='git add -u && git commit -m "Automatic add"'
|
||||
alias watch='watch -cn.1'
|
||||
alias push='git push origin master ; git push gitea master'
|
||||
alias francinette=/nfs/homes/tischmid/francinette/tester.sh
|
||||
alias paco=/nfs/homes/tischmid/francinette/tester.sh
|
||||
alias norm='alacritty -e sh -c '\''git rev-parse --show-toplevel || { echo "Exiting in 5" ; sleep 1 ; echo "Exiting in 4" ; sleep 1 ; echo "Exiting in 3" ; sleep 1 ; echo "Exiting in 2" ; sleep 1 ; echo "Exiting in 1" ; sleep 1 ; } && cd "$(git rev-parse --show-toplevel)" && watch -cn.5 date \&\& norminette -R CheckForbiddenSourceHeader'\'' & disown'
|
||||
# alias zellij='zellij options --disable-mouse-mode'
|
||||
alias z='zellij'
|
||||
|
||||
norminette () {
|
||||
version="$($(type -P norminette) -v | cut -d" " -f2)"
|
||||
if [ ! "${version}" = "3.3.50" ]; then
|
||||
|
@ -31,14 +35,18 @@ xset r rate 200 60
|
|||
|
||||
PATH="${PATH}:/nfs/homes/tischmid/.local/bin"
|
||||
|
||||
# if [ ! -f ~/git-prompt.sh ] ; then
|
||||
# curl --silent --location 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh' -o "~/git-prompt.sh"
|
||||
# fi
|
||||
#
|
||||
# . ~/git-prompt.sh
|
||||
# export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
# PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\[\033[36m\]$(__git_ps1 " (%s)")\[\033[m\]\n$ '
|
||||
PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\[\033[36m\]\[\033[m\]\n$ '
|
||||
GIT_PROMPT="1"
|
||||
if [ ! -f ~/git-prompt.sh ] && [ "${GIT_PROMPT}" = "1" ] ; then
|
||||
curl --silent --location 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh' -o "/nfs/homes/tischmid/git-prompt.sh"
|
||||
fi
|
||||
|
||||
if [ "${GIT_PROMPT}" = "1" ] ; then
|
||||
. ~/git-prompt.sh
|
||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\[\033[36m\]$(__git_ps1 " (%s)")\[\033[m\]\n\[\033[35m\]~>\[\033[m\] '
|
||||
else
|
||||
PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\n\[\033[36m\]~>\[\033[m\] '
|
||||
fi
|
||||
|
||||
##-----------------------------------------------------
|
||||
## synth-shell-greeter.sh
|
||||
|
|
3
.vimrc
3
.vimrc
|
@ -82,3 +82,6 @@ let @w='gg^/START
cc/* ////Go*/ ////<C-o>'
|
|||
let @q='gg^/\/\/\/\/
cc#define STARTndd<C-o>'
|
||||
|
||||
let @c='G:Stdheader
o
#define START
#include <stdio.h>
int main(void)
{
}O
return (0);k'
|
||||
|
||||
let g:user42 = 'tischmid'
|
||||
let g:mail42 = 'tischmid@student.42berlin.de'
|
||||
|
|
13
autoslot.sh
13
autoslot.sh
|
@ -10,13 +10,14 @@ for i in $(seq ${ITERS}); do
|
|||
printf '\033[33m%s\033[m\n' "Iter: ${i} / ${ITERS}"
|
||||
printf '\033[32m%s\033[m\n' "$(date)"
|
||||
printf '\033[34m%s\033[m\n' "Next ${HEAD} Slots Open At:"
|
||||
curl 'https://projects.intra.42.fr/projects/c-piscine-c-04/slots.json?team_id=4774473&start=2023-03-27&end=2023-04-03' \
|
||||
ls |
|
||||
curl 'https://projects.intra.42.fr/projects/c-piscine-c-09/slots.json?team_id=4794452&start=2023-04-03&end=2023-04-10' \
|
||||
-H 'authority: projects.intra.42.fr' \
|
||||
-H 'accept: application/json, text/javascript, */*; q=0.01' \
|
||||
-H 'accept-language: en-US,en;q=0.9' \
|
||||
-H 'cookie: user.id=MTQ3ODQ1--2ed4a01852220e3253f40a3457511a8ae91ca457; _intra_42_session_production=60362104f7b575ee5c0a2764a22ac359' \
|
||||
-H 'if-none-match: W/"3bfb45a09a79f3940293bae4678eb998"' \
|
||||
-H 'referer: https://projects.intra.42.fr/projects/c-piscine-c-04/slots?team_id=4784181' \
|
||||
-H 'accept-language: en-US,en;q=0.5' \
|
||||
-H 'cookie: user.id=MTQ3ODQ1--2ed4a01852220e3253f40a3457511a8ae91ca457; _intra_42_session_production=d388a07c3b652d22cb38c0a479fd92c3' \
|
||||
-H 'if-none-match: W/"ee8b807b4fc232c12d6bcc25febf4edf"' \
|
||||
-H 'referer: https://projects.intra.42.fr/projects/c-piscine-c-09/slots?team_id=4794734' \
|
||||
-H 'sec-ch-ua: "Chromium";v="110", "Not A(Brand";v="24", "Brave";v="110"' \
|
||||
-H 'sec-ch-ua-mobile: ?0' \
|
||||
-H 'sec-ch-ua-platform: "Linux"' \
|
||||
|
@ -25,7 +26,7 @@ for i in $(seq ${ITERS}); do
|
|||
-H 'sec-fetch-site: same-origin' \
|
||||
-H 'sec-gpc: 1' \
|
||||
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36' \
|
||||
-H 'x-csrf-token: 1R6II2iekGI6lv91zJMfI2oKoUoeWuuI366x+L5U41RFGqNc9PpfY9YkLzG2vkKv/wO1w66dm/dd4fYeg2brWA==' \
|
||||
-H 'x-csrf-token: /jMPY039ROQ/9Kh17Oy23ixJ6iX70nRmy00o8F2ROZQcuCha0rjtlQ/zEon7X4MfAKXECBSS4ghsaRuDuj8xLQ==' \
|
||||
-H 'x-requested-with: XMLHttpRequest' \
|
||||
--compressed \
|
||||
-s |
|
||||
|
|
Loading…
Reference in New Issue