This file contains 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 React from "react"; | |
import ReactDOM from "react-dom"; | |
// set the defaults | |
const LanguageContext = React.createContext({ | |
language: "en", | |
setLanguage: () => {} | |
}); | |
const LanguageSwitcher = () => { |
This file contains 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 * as https from 'https'; | |
import { JwksModel, JwksKidToPemMap } from '../models/jwks'; | |
import jwkToPem from 'jwk-to-pem'; | |
import { AWS_CONFIG } from '../variables-config'; | |
export class CachedJwks { | |
private static jwks: JwksKidToPemMap = new Map<string, string>(); | |
private static invalidTime = 0; |
This file contains 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 { decode, verify } from 'jsonwebtoken'; | |
import { Request, Response, NextFunction } from 'express'; | |
import { CachedJwks } from '../common/cached-jwks'; | |
import { UserInformationFromToken } from '../models/api/user/user-metadata'; | |
import HttpStatusCode from 'http-status-typed'; | |
import { AWS_CONFIG } from '../variables-config'; | |
import { UNAUTHORIZED_RESPONSE } from '../models/api/shared/unauthorized-response'; | |
import ProfileLogger from '../common/logger'; | |
import { UserService } from '../services/user-service'; | |
import { getCompanyNameAndSuffix } from '../common/group-naming'; |
This file contains 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
# let partition take all the extra space | |
$ sudo growpart <disk location: /dev/nvme0n1> <partition num> # i.e. nvme0n1p3 typically means it is on partition 3 | |
# run a lsblk to validate what you see | |
$ lsblk | |
# you should see the partition has grown to consume all the leftover space | |
# then run pvresize to have your physical volume (on that partition) | |
$ sudo pvresize /dev/nvme0n1p3 |