Stop all Docker container
docker stop $(docker ps -aq)
Remove all Docker container
docker rm $(docker ps -aq)
// https://gist.github.com/rosszurowski/67f04465c424a9bc0dae | |
function lerpColor(a, b, amount) { | |
var ah = parseInt(a.replace(/#/g, ""), 16), | |
ar = ah >> 16, | |
ag = (ah >> 8) & 0xff, | |
ab = ah & 0xff, | |
bh = parseInt(b.replace(/#/g, ""), 16), | |
br = bh >> 16, | |
bg = (bh >> 8) & 0xff, | |
bb = bh & 0xff, |
Stop all Docker container
docker stop $(docker ps -aq)
Remove all Docker container
docker rm $(docker ps -aq)
#!/usr/bin/env bash | |
# Contao Core releases: https://github.com/contao/core/releases | |
# Contao Check releases: https://github.com/contao/check/releases | |
CONTAO_CORE_VERSION="3.5.40" | |
CONTAO_CHECK_VERSION="12.2" | |
# Install Contao | |
wget https://github.com/contao/core/releases/download/${CONTAO_CORE_VERSION}/contao-${CONTAO_CORE_VERSION}.tar.gz | |
tar -xzf contao-${CONTAO_CORE_VERSION}.tar.gz |
Copy file content to clipboard
cat path/to/filename | pbcopy
Count words in file
cat path/to/filename | wc -w
import React, { ReactNode } from 'react' | |
interface ProjectProps { | |
children: ReactNode; | |
name: string; | |
} | |
function Project(props: ProjectProps): JSX.Element { | |
const { children, name } = props; |
### Headings | |
# Heading 1 | |
## Heading 2 | |
### Heading 3 | |
#### Heading 4 |
<h3>Headings</h3> | |
<h1>Heading 1</h1> | |
<h2>Heading 2</h2> | |
<h3>Heading 3</h3> | |
<h4>Heading 4</h4> | |
<h5>Heading 5</h5> | |
<h6>Heading 6</h6> | |
<h3>Text</h3> |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>Website</title> | |
<base href="/"> |