Skip to content

Instantly share code, notes, and snippets.

View marcobiedermann's full-sized avatar
:octocat:
git push origin main -fu

Marco Biedermann marcobiedermann

:octocat:
git push origin main -fu
View GitHub Profile
// 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,
@marcobiedermann
marcobiedermann / docker.md
Created December 10, 2019 08:09
Clean up docker images, containers and volumes

Stop all Docker container

docker stop $(docker ps -aq)

Remove all Docker container

docker rm $(docker ps -aq)
@marcobiedermann
marcobiedermann / contao-setup.sh
Last active January 4, 2020 10:50
Contao Core Installation Setup
#!/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
@marcobiedermann
marcobiedermann / unix.md
Last active January 20, 2020 10:36
Unix tools and how to use them

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;
@marcobiedermann
marcobiedermann / snippets.md
Last active May 25, 2022 19:57
Mac OS Command Line Snippets

Compression

Archive tar and gzip

tar -czf output.tar.gz input_folder1 input_folder2 input_file …

Extract tar and gzip

@marcobiedermann
marcobiedermann / social-share-links.md
Last active May 25, 2022 19:58
social-share-links.md
### 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>
@marcobiedermann
marcobiedermann / head.html
Last active May 25, 2022 19:59
website-head-tags
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Website</title>
<base href="/">