<?php $c = 0; ?>
@foreach($products as $product)
<?php $b = ( ++$c % 2 == 0 ) ? true : false; ?>
@if($b)
<div class="row ">
@endif
<div class="col-xs-12 col-sm-6 service_2i">
public function getModelsbymake()
{
try{
$statusCode = 200;
$response = [
'make' => []
// 'models' => []
];
sudo systemctl stop mysql
sudo apt-get remove --purge mysql-server mysql-common -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo rm -rf /var/lib/mysql/ sudo rm -rf /etc/mysql/
This file contains hidden or 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
#!/bin/bash | |
# Copyright (c) 2016 Jacob Martin | |
# MIT license | |
# Fixes the permissions of the application for secure serving. | |
# Note that "www-data" is used here; feel free to change this for your own | |
# web server's username. | |
# If you don't have permissions to modify files and folders in the first place, | |
# this script will not work for you until you fix that with: |
public static function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {
$url = 'http://www.gravatar.com/avatar/';
$url .= md5( strtolower( trim( $email ) ) );
$url .= "?s=$s&d=$d&r=$r";
if ( $img ) {
$url = '<img src="' . $url . '"';
foreach ( $atts as $key => $val )
$url .= ' ' . $key . '="' . $val . '"';
$url .= ' />';
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
This file contains hidden or 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
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
colorscheme xoria256 | |
set guifont=menlo\ for\ powerline:h16 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set linespace=15 |
This file contains hidden or 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
You need to first remove the problematic Merge List and then re-create it. Open your terminal and run the following codes: | |
sudo rm /var/lib/apt/lists/* -vf | |
sudo rm /var/cache/apt/archives/lock | |
sudo rm /var/lib/dpkg/lock | |
sudo dpkg --configure -a | |
sudo apt-get update && sudo apt-get upgrade | |
This file contains hidden or 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
# Initial system update | |
sudo apt-get update && sudo apt-get upgrade | |
# Install system utilities | |
## TLP | |
sudo apt-get install tlp tlp-rdw | |
sudo tlp start | |
## Sublime Text 2 |
NewerOlder