Copy file content to clipboard
cat path/to/filename | pbcopyCount words in file
cat path/to/filename | wc -w| #!/usr/bin/env bash | |
| DRUPAL_VERSION="8.4.1" | |
| # Install Drupal | |
| wget http://ftp.drupal.org/files/projects/drupal-${DRUPAL_VERSION}.tar.gz | |
| tar -xzf drupal-${DRUPAL_VERSION}.tar.gz | |
| rm -f drupal-${DRUPAL_VERSION}.tar.gz | |
| cd drupal-${DRUPAL_VERSION} | |
| cp -rf . .. |
| (function($) { | |
| $('.scroll-to').on('click', function(event) { | |
| event.preventDefault(); | |
| $('html, body').animate({ | |
| scrollTop: $($.attr(this, 'href')).offset().top | |
| }, 800); | |
| return false; |
| #!/usr/bin/env bash | |
| # Install CraftCMS | |
| curl -L -o latest.zip https://craftcms.com/latest.zip?accept_license=yes | |
| unzip latest.zip | |
| rm -f latest.zip |
| #!/usr/bin/env bash | |
| # Contao 4 standard releases: https://github.com/contao/standard-edition/releases/ | |
| # Contao Check releases: https://github.com/contao/check/releases | |
| CONTAO_CORE_VERSION="4.4.5" | |
| CONTAO_CHECK_VERSION="12.0" | |
| # Install Contao | |
| wget https://github.com/contao/standard-edition/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 | pbcopyCount words in file
cat path/to/filename | wc -wGet status
git statusAdd file to staging area
git add FILESearch in URL
inurl:
Seach in Title
intitle:
| // 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(); | |
| })() |
| // 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)