This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open ~/.p10k.zsh, search for POWERLEVEL9K_SHORTEN_STRATEGY and change the value of this parameter to truncate_to_last | |
Alternatively, you can try changing the value of POWERLEVEL9K_DIR_MAX_LENGTH to 1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name website; | |
root /srv/sites/website; | |
# index.html fallback | |
location / { | |
try_files $uri $uri/ /index.html; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { fromFetch } from 'rxjs/fetch'; | |
import { catchError, delay, mergeMap, retryWhen, switchMap } from 'rxjs/operators'; | |
import { from, Observable, of, throwError } from 'rxjs'; | |
const retryWithBackOff = (delayMs: number = 0, maxRetry: number = 0, backOffMs: number = 0) => { | |
let currentRetries = maxRetry; | |
return (source: Observable<any>) => | |
source.pipe( | |
retryWhen((error: Observable<any>) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd sites-enabled | |
sudo ln -s ../sites-available/foo.conf . | |
ls -l |