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 Feb 11, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
marcobiedermann /
Created Feb 11, 2018
Google Search Parameters

Search in URL


Seach in Title

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 Jan 10, 2018
Cheatsheet of git commands

Get status

git status

Add file to staging area

git add FILE
marcobiedermann /
Last active Jan 20, 2020
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
marcobiedermann /
Last active Mar 31, 2017
PHP Coding Styleguide

Do not use closing PHP tag at end of file


Capitalize class names.

class MyClassName
You can’t perform that action at this time.