###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
| <script> | |
| function fbShare(siteUrl, picture, title, caption, descr, winWidth, winHeight) { | |
| var winTop = (screen.height / 2) - (winHeight / 2); | |
| var winLeft = (screen.width / 2) - (winWidth / 2); | |
| window.open('http://www.facebook.com/sharer.php?s=100&u=' + siteUrl + '&picture=' + picture + '&title=' + title + '&caption=' + caption , '&description=' + descr, 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); | |
| } | |
| </script> |
| {% 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> |
| // Main containers | |
| .container | |
| @include outer-container | |
| // Rows | |
| .row | |
| @include row() | |
| // A basic column without a defined width or height |
| <?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; |
| <?php | |
| class dekaForm{ | |
| function getData(){ | |
| $data = ""; | |
| $data[] .= fw_get_db_settings_option('email_form'); |
###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 | |
| 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; |
| # 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 |
| /** | |
| * Hide update messages in admin panel | |
| */ | |
| remove_action( 'admin_notices', 'woothemes_updater_notice' ); |
| 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' ) ) { |