###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| <div id="main"> | |
| <div id="abc"> | |
| <span>content</span> | |
| </div> | |
| </div> | |
| body{ | |
| padding: 0; | |
| margin: 0; | |
| margin:0px auto; |
| remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10); | |
| add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10); | |
| if ( ! function_exists( 'woocommerce_template_loop_product_thumbnail' ) ) { | |
| function woocommerce_template_loop_product_thumbnail() { | |
| echo woocommerce_get_product_thumbnail(); | |
| } | |
| } | |
| if ( ! function_exists( 'woocommerce_get_product_thumbnail' ) ) { |
| /** | |
| * Hide update messages in admin panel | |
| */ | |
| remove_action( 'admin_notices', 'woothemes_updater_notice' ); |
| # Add correct content-type for fonts | |
| AddType application/vnd.ms-fontobject .eot | |
| AddType font/ttf .ttf | |
| AddType font/otf .otf | |
| AddType font/x-woff .woff | |
| AddType image/svg+xml .svg | |
| # Compress compressible fonts | |
| AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml |
| <?php | |
| namespace Ormigo\Bundle\BackofficeBundle\Menu; | |
| use Knp\Menu\FactoryInterface; | |
| use Symfony\Component\DependencyInjection\ContainerAware; | |
| use Ormigo\Bundle\UserBundle\Model\User\UserQuery; | |
| use Symfony\Component\Security\Core\Role\SwitchUserRole; |
###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| <?php | |
| class dekaForm{ | |
| function getData(){ | |
| $data = ""; | |
| $data[] .= fw_get_db_settings_option('email_form'); |
| <?php if (!defined('FW')) die('Forbidden'); | |
| // file: {theme}/inc/includes/demo-settings-page.php // https://github.com/ThemeFuse/Theme-Includes | |
| final class _Andromeda_Unyson_Settings_Page | |
| { | |
| /** | |
| * @var FW_Form | |
| */ | |
| private static $settings_form; |
| // Main containers | |
| .container | |
| @include outer-container | |
| // Rows | |
| .row | |
| @include row() | |
| // A basic column without a defined width or height |
| {% macro recursiveCategory(category) %} | |
| <li> | |
| <h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4> | |
| {% if category.children|length %} | |
| <ul> | |
| {% for child in category.children %} | |
| {{ _self.recursiveCategory(child) }} | |
| {% endfor %} | |
| </ul> |