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
yum -y install gcc make glib2-devel libcurl-devel openssl-devel gmp-devel tar automake autoconf libtool wget asciidoc -y | |
wget https://megatools.megous.com/builds/megatools-1.10.0-rc1.tar.gz | |
tar -xzvf megatools*.tar.gz | |
cd megatools* | |
./configure | |
make | |
make install |
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
#!/bin/bash | |
value="open_basedir" | |
for USER in $(ls -I system /var/cpanel/users/) | |
do | |
if [ ! -f /home/$USER/.user.ini ]; then | |
sudo -H -u$USER bash -c "echo 'open_basedir = /home/$USER:/tmp:/opt/cpanel/composer/bin/composer:/var/cpanel/php/sessions/' >> /home/$USER/.user.ini" | |
chmod 0555 /home/$USER/.user.ini |
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
#!/bin/bash | |
echo "Chmoding user files to 0644..." | |
for i in `/usr/local/vesta/bin/v-list-sys-users | awk '{if(NR>2)print}'`; do find /home/$i/web/ -name 'public_html' -type d -print0 | xargs -0 -I {} find '{}' -type f -print0 | xargs -0 -I {} chmod 0644 {}; done | |
echo "Done." | |
echo "Chmoding user folder to 0755..." | |
for i in `/usr/local/vesta/bin/v-list-sys-users | awk '{if(NR>2)print}'`; do find /home/$i/web/ -name 'public_html' -type d -print0 | xargs -0 -I {} find '{}' -type d -print0 | xargs -0 -I {} chmod 0755 {}; done | |
echo "Done." | |
echo "Fixing ownership of files..." |
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
#!/bin/bash | |
# Script will not be updating themes. If you want to update themes uncomment last two lines | |
#Get latest WP-CLI | |
rm -rf /home/wp | |
wget --quiet https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /home/wp | |
chmod +x /home/wp | |
sleep 2 | |
#Color play |
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
// I changed this | |
if ($ffprobe->streams($file)->videos()->first()->get("codec_name") != "h264" || $ffprobe->streams($file)->audios()->first()->get("codec_name") != "aac") { | |
// Vide is not MP4, should be converted | |
$save = true; | |
} | |
// To this | |
if ($ffprobe->streams($file)->videos()->first()->get("codec_name") != "h264") { |
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
Fatal error: Uncaught Error: Call to undefined method FLBuilderAJAX::doing_ajax() in /home/user/public_html/wp-content/plugins/bb-ultimate-addon/classes/class-uabb-backward.php:363 | |
To fix this error simply open | |
/home/user/public_html/wp-content/plugins/bb-ultimate-addon/classes/class-uabb-backward.php | |
Find: | |
if ( ! FLBuilderModel::is_builder_active() && FLBuilderAJAX::doing_ajax() ) { |
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
# Disable Woocommerce cart fragments for homepage via .htaccess | |
# By creating empty response | |
# Please replace yoursite.com | |
# Disable only on homepage | |
RewriteEngine On | |
RewriteCond %{HTTP_REFERER} ^https://yoursite.com/$ [NC] | |
RewriteCond %{QUERY_STRING} ^wc-ajax=get_refreshed_fragments$ | |
RewriteRule ^(.*)$ $1 [R=204,L] |
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
disable_functions = "pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,show_source,system,passthru,shell_exec,proc_open,popen,phpinfo" |
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
#!/bin/bash | |
# Installing prerequisites | |
yum -y group install "Development Tools" | |
yum -y install glibc-static libstdc++-static | |
# Install | |
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz |
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 | |
// Ukoliko je kategorija jednaka.... a NEMA biografija | |
if($_GET['kategorija']=="Biografije Poznatih Veštica" && !isset($_GET['biografija'])) | |
{ | |
include("Pocnimo/Clanci/Lista-BPV_Vesticarenje.php"); | |
} | |
//Ukoliko je kategorija jednaka.... a IMA biografija |
OlderNewer