Skip to content

Instantly share code, notes, and snippets.

@maxkostinevich
Last active February 2, 2016 09:28
Show Gist options
  • Save maxkostinevich/470bbcc81c2469d4983e to your computer and use it in GitHub Desktop.
Save maxkostinevich/470bbcc81c2469d4983e to your computer and use it in GitHub Desktop.
Update Ubuntu Packages
# Create symlink
ln -s target dest
find /path/to/folder -type f -exec grep -l 'string to find' {} \;
#Solution for Remote Host Identification Has Changed Error
ssh-keygen -R server_name_com
ssh-keygen -R server_ip_address
sass -t expanded sass/main.scss css/main.css
# Install WP-CLI
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
# Install Composer
curl -s https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
# Update NPM
npm cache clean -f
npm install -g npm
wp core download
wp core config --dbname=wordpress --dbuser=root --dbpass=root
wp core install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment