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 |
import { ZodError, z } from "zod"; | |
interface RequestBody { | |
name: string; | |
} | |
const RequestBody = z.object({ | |
name: z.string(), | |
}); |
function getBrowserPath(params) { | |
// your implementation here | |
} | |
const URL_UPDATE_DELAY = 750; | |
export default function useKeepBrowserPathUpdated(params) { | |
const path = getBrowserPath(params); | |
useEffect(() => { |
import { auth } from '../../firebase/firebase-admin' | |
import { NextApiRequest, NextApiResponse } from 'next' | |
type NextContextApiHandler = (req: NextApiRequestWithContext, res: NextApiResponse) => Promise<void> | |
export interface Context { | |
uid: string | |
} | |
export interface NextApiRequestWithContext extends NextApiRequest { |
import axios, { AxiosError, AxiosResponse } from 'axios'; | |
import token from './somewhere'; | |
interface Todo { | |
id: string; | |
title: string; | |
} | |
interface User { | |
id: string; |
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
These are alternative packages/frameworks in NodeJS that cover some of the primary features in Laravel. This is by no means a comprehensive list of Laravel features (or a comprehensive list of NodeJS alternatives).
Depending on your perspective, this list either shows how it's possible to switch from Laravel to NodeJS or shows why you'd want to stay with Laravel 😃
-
apt-get update problems: Invalid signature -> run
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
-
Couldn't run
hello-world:latest locally
: change the /etc/default/docker file, specifially the following lines:
# Use DOCKER_OPTS to modify the daemon startup options.
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
Just plug in your own values for registry and repo/image name.
registry='localhost:5000'
name='my-image'
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
curl -sSL -I \
-H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
#!/usr/bin/env bash | |
### | |
# A CMD or ENTRYPOINT script for a Dockerfile to use to start a Nginx/PHP-FPM | |
# | |
# For more details, see 🐳 https://shippingdocker.com | |
## | |
if [ ! "production" == "$APP_ENV" ] && [ ! "prod" == "$APP_ENV" ]; then | |
# Enable xdebug |