This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "One Monokai", | |
"window.zoomLevel": 0, | |
"vim.easymotion": true, | |
"vim.incsearch": true, | |
"vim.useSystemClipboard": true, | |
"vim.useCtrlKeys": false, | |
"vim.hlsearch": true, | |
"vim.insertModeKeyBindings": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'atom-text-editor.vim-mode-plus:not(.normal-mode)': | |
'j j': 'vim-mode-plus:activate-normal-mode' | |
'atom-text-editor.vim-mode-plus:not(.insert-mode)': | |
', w': 'core:save' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provision "shell", inline: <<-SHELL | |
mv /var/www/public /var/www | |
sudo sed -i s,/var/www/public,/var/www,g /etc/apache2/sites-available/000-default.conf | |
sudo sed -i s,/var/www/public,/var/www,g /etc/apache2/sites-available/scotchbox.local.conf | |
sudo service apache2 restart | |
SHELL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update packages | |
sudo yum update | |
# Search package | |
sudo yum search package_name | |
# Install package | |
# -y : confirm the installation with no prompt | |
sudo yum -y install package_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add new user | |
sudo useradd newuser | |
# Set password for newuser user | |
sudo passwd newuser | |
# Delete newuser user | |
sudo userdel newuser | |
# Create a group |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check date | |
date | |
# Change date format MMddhhmmyyyy.ss | |
sudo date 123122302016.45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create new user | |
sudo useradd liz | |
# Set password for user | |
sudo passwd liz | |
# Add user to wheel group | |
sudo usermod -g wheel liz | |
# Check user group |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Commands to install required packages | |
sudo yum -y update | |
sudo yum -y install epel-release | |
sudo yum -y wget | |
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm | |
wget https://centos6.iuscommunity.org/ius-release.rpm | |
sudo rpm -Uvh ius-release*.rpm | |
sudo yum -y update | |
sudo yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$thumbnail_id = get_woocommerce_term_meta( $category->term_id, 'thumbnail_id', true ); | |
$cat_image = wp_get_attachment_url( $thumbnail_id ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Modify Genesis Featured Post HTML structure | |
$('.featuredpost article').each(function(index) { | |
//* Element variables | |
var $thumbnail = $(this).find('a.alignleft'); | |
var $header = $(this).find('.entry-header'); | |
var $content = $(this).find('.entry-content'); | |
$thumbnail.removeClass('alignleft'); | |
//* Apply Genesis column classes | |
$thumbnail.addClass('one-fourth'); |
NewerOlder