# generate private key
openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048
# public (based on private key)
openssl rsa -pubout -in private_key.pem -out public_key.pem
Convert to base64 to be used in env variables
# generate private key
openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048
# public (based on private key)
openssl rsa -pubout -in private_key.pem -out public_key.pem
Convert to base64 to be used in env variables
import axios from 'axios' | |
export const api = axios.create({ | |
baseURL: "http://localhost:3333", | |
withCredentials: true, | |
}) | |
if (env.VITE_ENABLE_API_DELAY) { | |
api.interceptors.request.use(async (config) => { | |
await new Promise((resolve) => |
chmod +x heroku_env_to_dotenv.sh
./heroku_env_to_dotenv.sh
chmod +x set_heroku_env.sh
./set_heroku_env.sh
Profile | download (kb/s) | upload (kb/s) | latency (ms) |
---|---|---|---|
Native | 0 | 0 | 0 |
GPRS | 50 | 20 | 500 |
56K Dial-up | 50 | 30 | 120 |
Mobile EDGE | 240 | 200 | 840 |
2G Regular | 250 | 50 | 300 |
2G Good | 450 | 150 | 150 |
3G Slow | 780 | 330 | 200 |
{"name":"Udemy Profile","settings":"{\"settings\":\"{\\n // Window\\n \\\"window.zoomLevel\\\": 1,\\n\\n // Editor\\n \\\"editor.cursorBlinking\\\": \\\"solid\\\",\\n \\\"editor.fontSize\\\": 14,\\n \\\"editor.minimap.enabled\\\": false,\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.fixAll.eslint\\\": true,\\n },\\n \\\"editor.detectIndentation\\\": true,\\n \\n // Workbench\\n \\\"workbench.editor.enablePreviewFromQuickOpen\\\": false,\\n \\\"workbench.editor.enablePreview\\\": false,\\n \\\"workbench.colorTheme\\\": \\\"Dracula\\\",\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\n\\n // Git Project Manager\\n \\\"gitProjectManager.openInNewWindow\\\": true,\\n \\\"gitProjectManager.checkRemoteOrigin\\\": false,\\n \\\"gitProjectManager.maxDepthRecursion\\\": 1,\\n \\\"gitProjectManager.baseProjectsFolders\\\": [\\n \\\"~/Developer\\\"\\n ],\\n \\\"gitProjectManager.ignoredFolders\\\": [\\n \\\"node_m |
{"name":"Patrick's Profile","settings":"{\"settings\":\"{\\n // Workbench\\n \\\"workbench.startupEditor\\\": \\\"none\\\",\\n \\\"workbench.colorTheme\\\": \\\"Dracula\\\",\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\n \\\"workbench.editor.enablePreviewFromQuickOpen\\\": false,\\n \\\"workbench.editor.enablePreview\\\": false,\\n \\\"workbench.colorCustomizations\\\": {\\n \\\"statusBar.debuggingBackground\\\": \\\"#45C8FE\\\"\\n },\\n\\n // Editor\\n \\\"editor.cursorBlinking\\\": \\\"solid\\\",\\n \\\"editor.minimap.enabled\\\": false,\\n \\\"editor.wordWrap\\\": \\\"on\\\",\\n \\\"editor.rulers\\\": [\\n 120\\n ],\\n \\\"editor.fontSize\\\": 14,\\n \\\"editor.detectIndentation\\\": true,\\n \\\"editor.acceptSuggestionOnCommitCharacter\\\": false,\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.fixAll.eslint\\\": true,\\n },\\n \\\"editor.quickSuggestionsDelay\\\": 100,\\n \\\"editor.accessibilitySupp |
// =================== | |
// Typescript Exercises | |
// =================== | |
// Utility types: https://www.typescriptlang.org/docs/handbook/utility-types.html | |
// Reference: https://pokeapi.co/api/v2/pokemon?limit=10 | |
type Pokemon = unknown | |
const bulbasaur: unknown = { | |
name: 'bulbasaur', |
// .hyper.js | |
// See https://hyper.is#cfg for all currently supported options. | |
// After installing hyper, run the following: | |
// hyper i hyper-dracula hypercwd hyper-active-tab | |
module.exports = { | |
config: { | |
fontSize: 18, | |
fontFamily: '"Meslo LG M for Powerline", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
fontWeight: 'normal', |