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_user_logged_in() { | |
| $loggedin = false; | |
| foreach ( (array) $_COOKIE as $cookie => $value ) { | |
| if ( stristr( $cookie, 'wordpress_logged_in_' ) ) { | |
| $loggedin = true; | |
| } | |
| } | |
| return $loggedin; | |
| } |
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 | |
| # | |
| # Script to create MySQL db + user | |
| # | |
| # @author Raj KB <magepsycho@gmail.com> | |
| # @website http://www.magepsycho.com | |
| # @version 0.1.0 | |
| ################################################################################ |
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
| global | |
| log /dev/log local0 | |
| log /dev/log local1 notice | |
| chroot /var/lib/haproxy | |
| stats socket /run/haproxy/admin.sock mode 660 level admin | |
| stats timeout 30s | |
| user haproxy | |
| group haproxy | |
| daemon | |
| maxconn 2048 |
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
| /** | |
| * Redirect WordPress front end https URLs to http without a plugin | |
| * | |
| * Necessary when running forced SSL in admin and you don't want links to the front end to remain https. | |
| * | |
| * @link http://blackhillswebworks.com/?p=5088 | |
| */ | |
| add_action( 'template_redirect', 'bhww_ssl_template_redirect', 1 ); |
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 | |
| /* | |
| Plugin Name: Heartbeat API Demo | |
| Plugin URI: http://www.strangerstudios.com/wp/heartbeat-api-demo | |
| Description: Minimal example demonstrating the WordPress Heartbeat API being added in WP version 3.6. | |
| Version: .1 | |
| Author: strangerstudios | |
| If logged in as a user and viewing the frontend of your website, | |
| every 15 seconds you should see the following in your Javascript console: |
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/sh | |
| DATABASE_NAME='wordpress' | |
| DATABASE_USER='wordpress' | |
| ROOT_MYSQL_PASSWORD=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev` | |
| WORDPRESS_MYSQL_PASSWORD=`dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev` | |
| # Write Passwords to File. |
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
| FROM centos:7 | |
| MAINTAINER "orion" <orion@thoughtspot.com> | |
| # Steps needed to use systemd enabled docker containers. | |
| # Reference: https://hub.docker.com/_/centos/ | |
| ENV container docker | |
| RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ | |
| systemd-tmpfiles-setup.service ] || rm -f $i; done); \ | |
| rm -f /lib/systemd/system/multi-user.target.wants/*;\ | |
| rm -f /etc/systemd/system/*.wants/*;\ |
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
| DEVICE="he-ipv6" | |
| DEVICETYPE=sit | |
| BOOTPROTO=none | |
| ONBOOT=yes | |
| IPV6INIT=yes | |
| IPV6TUNNELIPV4=184.105.253.10 | |
| IPV6TUNNELIPV4LOCAL=XXX.XXX.XXX.XXX | |
| IPV6ADDR=2001:470:YYYY:YYYY::2/64 | |
| IPV6_DEFAULTGW=2001:470:YYYY:YYYY::1 |
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 | |
| /** | |
| * Created by PhpStorm. | |
| * Plugin Name: Berean Baptist Church Calendar Import Fixer | |
| * Description: Forces removal of events no longer represented in the imported calendar. | |
| * Version: 0.0.1 | |
| * Author: Steve Dwire for Berean Baptist Church | |
| * Author URI: https://www.berean-baptist.org/ | |
| * License: GPLv2 | |
| */ |
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
| // Extend jQuery addClass function to accept callback function | |
| var oAddClass = $.fn.addClass; | |
| $.fn.addClass = function () { | |
| for (var i in arguments) { | |
| var arg = arguments[i]; | |
| if ( !! (arg && arg.constructor && arg.call && arg.apply)) { | |
| arg(); | |
| delete arg; | |
| } | |
| } |