Skip to content

Instantly share code, notes, and snippets.

View st3no's full-sized avatar

Stefano Esposito st3no

View GitHub Profile
@st3no
st3no / auth.interceptor.ts
Created January 30, 2024 13:17
interceptor
// auth.interceptor.ts
import { inject } from '@angular/core';
import { HttpInterceptorFn } from '@angular/common/http';
import { AuthService } from '../services/auth.service';
import { jwtDecode } from 'jwt-decode';
import { switchMap } from 'rxjs';
export const authInterceptor: HttpInterceptorFn = (req, next) => {
const authService = inject(AuthService);
st = status
co = checkout
ci = commit
br = branch
df = diff
dfs = diff --staged
logg = log --graph --decorate --oneline --all
fp = fetch -p
lg = log --oneline
ss = stash
@st3no
st3no / .bashrc
Last active January 20, 2022 10:34
alias winget="winpty winget"
alias ls='ls --color'
alias l='ls --color'
alias ll='ls -l --color'
alias la='ls -la --color'
alias c='clear'
alias h='history'
alias r='dotnet run'
alias p='dotnet publish -r win-x64 -c Release'
alias fpp='git fetch -p && git pull'
if test -f /etc/profile.d/git-sdk.sh
then
TITLEPREFIX=SDK-${MSYSTEM#MINGW}
else
TITLEPREFIX=$MSYSTEM
fi
if test -f ~/.config/git/git-prompt.sh
then
. ~/.config/git/git-prompt.sh