How to reset everything Docker when stuff is seriously broken.
Source: https://stackoverflow.com/a/72296103/9208523
sudo systemctl stop docker
sudo rm -rf /var/lib/docker
sudo systemctl start docker| javascript:(function(){ | |
| document.querySelectorAll(`link[rel="stylesheet"], style`).forEach((element) => element.remove()); | |
| document.querySelectorAll(`*`).forEach((element) => element.removeAttribute(`style`)); | |
| })(); |
| import { computed, useAttrs } from "vue"; | |
| export function useBindAttrs() { | |
| const attrs = useAttrs(); | |
| const rootAttrs = computed(() => ({ | |
| class: attrs.class, | |
| style: attrs.style, | |
| })); |
How to reset everything Docker when stuff is seriously broken.
Source: https://stackoverflow.com/a/72296103/9208523
sudo systemctl stop docker
sudo rm -rf /var/lib/docker
sudo systemctl start dockerThis video by ThePrimeagen sent me on a fun archaeology trip.
The case to solve: Why is the following statement true? why is an empty string parsed as a number in JS?
Number("") === 0| /** | |
| * Copy into dev tools console and hit enter. | |
| * It may take a while and the page will be blocked while the script is running. | |
| * | |
| * Source: | |
| * https://twitter.com/ChrisFerdinandi/status/1417947102731190277 | |
| * https://twitter.com/ChrisFerdinandi/status/1417947104111104002 | |
| */ | |
| let checked = document.querySelectorAll('input:checked') |
| /** | |
| * Fontsource makes open source fonts available on npm. | |
| * https://github.com/fontsource/fontsource | |
| */ | |
| @use "@fontsource/font-name/scss/mixins" as font-name; | |
| @include font-name.fontFace( | |
| $weight: 400, | |
| $style: normal, |
| #!/bin/sh | |
| # Usage: | |
| # -e: Exclude folders | |
| # -p: Prioritize folders | |
| # -c: Run this command | |
| # execute.sh -e "folder1 folder2" -p "folder3 folder4" -c "command" | |
| while getopts "e:p:c:" OPTION; do | |
| case "$OPTION" in |