Skip to content

Instantly share code, notes, and snippets.

:octocat:
git push --force

Marco Biedermann marcobiedermann

:octocat:
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
marcobiedermann / docker.md
Created Dec 10, 2019
Clean up docker images, containers and volumes
View docker.md

Stop all Docker container

docker stop $(docker ps -aq)

Remove all Docker container

docker rm $(docker ps -aq)
View css-levels.js
// 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 / 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
marcobiedermann / cloudSettings
Last active Sep 18, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-09-18T09:36:41.072Z","extensionVersion":"v3.4.2"}
@marcobiedermann
marcobiedermann / composer.md
Created Jan 28, 2018
Cheatsheet of composer commands
View composer.md

Initialize new composer.json

composer init

Install all dependencies specified in composer.json

composer install
@marcobiedermann
marcobiedermann / contao-setup.sh
Last active May 11, 2019
Contao Core Installation Setup
View contao-setup.sh
#!/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.0"
# 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 / snippets.md
Last active Sep 28, 2018
Mac OS Command Line Snippets
View snippets.md

Compression

Archive tar and gzip

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

Extract tar and gzip

@marcobiedermann
marcobiedermann / google.md
Created Feb 11, 2018
Google Search Parameters
View google.md

Search in URL

inurl:

Seach in Title

intitle:
@marcobiedermann
marcobiedermann / git.md
Last active Jan 10, 2018
Cheatsheet of git commands
View git.md

Get status

git status

Add file to staging area

git add FILE
@marcobiedermann
marcobiedermann / typo3-setup.sh
Last active Dec 22, 2017
Typo3 Installation Setup
View typo3-setup.sh
#!/usr/bin/env bash
TYPO3_VERSION="8.7.9"
# Download and extract Typo3
curl -L -o typo3_src.tgz get.typo3.org/${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.