Skip to content

Instantly share code, notes, and snippets.

View rebaz88's full-sized avatar

Rebaz rebaz88

View GitHub Profile
@rebaz88
rebaz88 / Excction.ts
Created April 21, 2023 10:43
Custom errors
interface ITFMError {
message(): string;
trigger(): void;
}
class TFMInvalidRequest implements ITFMError {
message() {
return 'Invalid request';
}
@rebaz88
rebaz88 / remove-all-from-docker.sh
Created March 21, 2022 10:33 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes