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
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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 | |
//* Force auto-updates for WordPress plugins | |
add_filter( 'auto_update_plugin', '__return_true' ); |
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 //* Mind this opening PHP tag | |
/* | |
* Full list source: https://gist.github.com/wpsmith/3666330 | |
*/ | |
/* | |
* Force Layout - No User Override | |
*/ |
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
/* | |
* The Events Calendar - Load Tribe Bar Script on Single Events | |
* @version 3.11.1 | |
*/ | |
add_action( 'template_redirect', 'tribe_admin_bar_script' ); | |
function tribe_admin_bar_script() { | |
if ( is_singular( 'tribe_events' ) ) { | |
add_filter( 'tribe-events-bar-should-show', '__return_true' ); | |
//wp_enqueue_script( 'tribe-events-bar' ); |
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
/* | |
* The Events Calendar - Redirect Mobile Users to List View | |
* @version 3.9 | |
* | |
* @link http://theeventscalendar.com/support/forums/topic/forcing-list-view-on-mobile-only/ | |
*/ | |
add_action( 'template_redirect', 'tec_mobile_template_redirect' ); | |
function tec_mobile_template_redirect() { | |
if( tribe_is_month() && wp_is_mobile() ) { | |
wp_redirect( tribe_get_listview_link() ); |
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
/* Countdown Title */ | |
.widget.tribe-events-countdown-widget { | |
width: 300px; | |
margin: 0 auto; | |
} | |
/* Countdown */ | |
.widget.tribe-events-countdown-widget .tribe-countdown-timer { | |
margin: 0 auto; | |
width: 200px; |
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 | |
#Below steps will only install the plugin.It wont be enabled | |
yum -y install epel-release | |
yum -y install http://rpm.piserve.com/nDeploy-release-centos-1.0-1.noarch.rpm | |
yum --enablerepo=ndeploy install nginx-nDeploy nDeploy | |
#Below Step is optional.It is required if you need Phusion Passenger(Ruby/Python/NodeJS) | |
/usr/nginx/scripts/nginx-passenger-setup.sh | |
#Below step will enable the plugin. |