Skip to content

Instantly share code, notes, and snippets.

git push --force

Marco Biedermann marcobiedermann

git push --force
Block or report user

Report or block marcobiedermann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
marcobiedermann /
Created Dec 10, 2019
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)
View css-levels.js
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 / promise.js
Last active Oct 18, 2019
Promise Cheatsheet
View promise.js
// await must only be used if you want to execute something after promise to await the result
const createdUser = await createUser();
const user = await getUser();
// async must be used in function if you want to await something
(async () => {
await foo();
marcobiedermann / cloudSettings
Last active Sep 18, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
marcobiedermann /
Created Jan 28, 2018
Cheatsheet of composer commands

Initialize new composer.json

composer init

Install all dependencies specified in composer.json

composer install
marcobiedermann /
Last active May 11, 2019
Contao Core Installation Setup
#!/usr/bin/env bash
# Contao Core releases:
# Contao Check releases:
# Install Contao
tar -xzf contao-${CONTAO_CORE_VERSION}.tar.gz
marcobiedermann /
Last active Sep 28, 2018
Mac OS Command Line Snippets


Archive tar and gzip

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

Extract tar and gzip

marcobiedermann /
Created Feb 11, 2018
Google Search Parameters

Search in URL


Seach in Title

marcobiedermann /
Last active Jan 10, 2018
Cheatsheet of git commands

Get status

git status

Add file to staging area

git add FILE
marcobiedermann /
Last active Dec 22, 2017
Typo3 Installation Setup
#!/usr/bin/env bash
# Download and extract Typo3
curl -L -o typo3_src.tgz${TYPO3_VERSION}
tar -xzf typo3_src.tgz
rm -f typo3_src.tgz
# Symlink Typo3 source folder
You can’t perform that action at this time.