Copy file content to clipboard
cat path/to/filename | pbcopy
Count words in file
cat path/to/filename | wc -w
Copy file content to clipboard
cat path/to/filename | pbcopy
Count words in file
cat path/to/filename | wc -w
#!/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 |
#!/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 |
(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 | |
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 . .. |
#!/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 |
#!/usr/bin/env bash | |
# Download and extract WordPress | |
wget https://wordpress.org/latest.tar.gz | |
tar -xzf latest.tar.gz | |
rm -f latest.tar.gz | |
mv wordpress/* . | |
rm -rf wordpress | |
# Remove setup file |
#!/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 |
#!/usr/bin/env bash | |
# settings | |
BACKUP_DIRECTORY="backups" | |
SITE="" | |
DB_HOST="" | |
DB_NAME="" | |
DB_USER="" | |
DB_PASS="" |