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 | |
/** | |
* Simple Example of a client calling WordPress OAuth Server | |
* Replace the variabls below with your own. | |
* | |
* @author Justin Greer <justin@justin-greer.com> | |
*/ | |
$server_url = 'https://wordpress.dev'; | |
$client_id = '6lkmsGocFcvxVG4S5s3QCHGi5Pvutl8AHtXaalmP'; | |
$client_secret = 'yRntyrmDTquw7bOd0kHuFQ5mj2wtnSjVKGpi8MW2'; |
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 | |
/** | |
* Event Tickets Plus: WooCommerce: Force all tickets to be "Sold Individually". | |
* | |
* By default, this limits the purchase quantity to 1, but this is quantity is | |
* filterable with `woocommerce_add_to_cart_sold_individually_quantity`. | |
* | |
* @see Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_event_for_ticket() | |
* @see WC_Product::is_sold_individually() | |
* @see WC_Cart::add_to_cart() |
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 | |
/* Tribe, limit ticket qty */ | |
function tribe_limit_tickets() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready( function( $ ) { | |
// do this if tickets available | |
if ( $('.tribe-events-tickets').length ) { | |
// set max qty to 1 |
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
<!-- speaker bios --> | |
{{ with .Params.speakername }} | |
<hr /> | |
<div style="margin-bottom: 25px;"> | |
<p style="color:rgba(159, 0, 1, 1); margin-top:10px; text-transform:uppercase;"> | |
<span style="border-bottom: 1px solid;">presenter information</span> | |
</p> | |
{{ range $index, $element := $.Params.speakername }} | |
{{ if gt (len $.Params.speakername) 0 }} |
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
// ==UserScript== | |
// @name trello list colors | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Highlight certain columns in Trello. | |
// @author RJ Lewis | |
// ==/UserScript== | |
$(document).ready(function() { |
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
# add to: /etc/sysctl.conf | |
net.inet.ip.portrange.reservedlow=0 | |
net.inet.ip.portrange.reservedhigh=0 | |
security.mac.portacl.port_high=1023 | |
security.mac.portacl.suser_exempt=1 | |
security.mac.portacl.rules=uid:[uid for desired user]:tcp:80,uid:[uid for desired user]:tcp:443 |
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/sh | |
# PROVIDE: caddy | |
# REQUIRE: LOGIN | |
# KEYWORD: shutdown | |
# Documentation=https://caddyserver.com/docs | |
# add php-fpm to REQUIRE to run php/fastcgi processes | |
# Add the following lines to /etc/rc.conf to enable caddy: |
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
/*! | |
================================= | |
Website by by RJ Lewis | |
Created ************** | |
Last updated ************** | |
- Build: ************** | |
BG Pattern() | |
Courtesy of: subtlepatterns.com | |
================================= | |
Contents: |
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 if ($showPagination): ?> | |
<?php echo $pagination;?> | |
<?php endif; ?> |
NewerOlder