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
<?php | |
namespace Application\Sonata\MediaBundle\Listener; | |
use Application\Sonata\MediaBundle\Entity\Media; | |
use Doctrine\ORM\Event\LifecycleEventArgs; | |
use Sonata\MediaBundle\Provider\MediaProviderInterface; | |
use Sonata\MediaBundle\Provider\Pool; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
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
<?php | |
function is_smarttv() | |
{ | |
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); | |
if (strpos($user_agent, 'smart-tv') !== false) { | |
return true; | |
} elseif (strpos($user_agent, 'smarttv') !== false) { | |
return true; | |
} elseif (strpos($user_agent, 'tv') !== false) { | |
return true; |
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
$args = array( | |
//Author Parameters - Show posts associated with certain author. | |
'author' => '1,2,3,' | |
'author_name' => 'luetkemj', | |
'author__in' => array( 2, 6 ), | |
'author__not_in' => array( 2, 6 ), | |
//Category Parameters - Show posts associated with certain categories. | |
'cat' => 5, |
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
# Logs # | |
###################### | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# OS generated files # |
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
Show hidden characters
{ | |
"ignored_packages" : | |
[ | |
"Vintage" | |
], | |
// THEME OPTIONS | |
"icon_file_type_enable" : true, | |
"centurion_folder_icons": true, |
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 | |
# This script is used for create virtual hosts on CentOs. | |
# Feel free to modify it | |
# PARAMETERS | |
# | |
# $usr - User | |
# $dir - directory of web files | |
# $servn - webserver address without www. | |
# $cname - cname of webserver | |
# EXAMPLE |
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 | |
#------------------------------------------------------------------------------------ | |
# Install vsFTPd | |
#------------------------------------------------------------------------------------ | |
yum install -y vsftpd libdb4-utils | |
systemctl enable vsftpd.service | |
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 | |
#------------------------------------------------------------------------------------ | |
# Initialize some variables | |
#------------------------------------------------------------------------------------ | |
SHELL=/sbin/nologin | |
FTPCONF=/etc/vsftpd | |
HOMEDIR=/var/www | |