Skip to content

Instantly share code, notes, and snippets.

@elimn
elimn / reclaimWindows10.ps1
Created July 28, 2017 16:29 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@elimn
elimn / tribe_wootix_no_hijack.php
Last active June 12, 2017 14:59 — forked from theeventscalendar/WooCommerce-product-page.php
MT | TEC | Allows customers to access the WooCommerce product page for tickets
<?php
/*
* Causes WooCommerce Ticket product pages to stop redirecting to their event page
* See https://theeventscalendar.com/knowledgebase/selling-tickets-from-the-woocommerce-products-page/
*/
function tribe_wootix_no_hijack() {
if ( ! class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) return;
$woo_tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
remove_filter( 'post_type_link', array( $woo_tickets, 'hijack_ticket_link' ), 10, 4 );
@elimn
elimn / move-edd-tickets-form.php
Last active December 1, 2015 14:35 — forked from theeventscalendar/move-edd-tickets-form.txt
MT | TEC | Move EDD Tickets Form above Event content
<?php
/*
* Move EDD Tickets Form above Event content
*/
if ( class_exists('Tribe__Tickets_Plus__Commerce__EDD__Main') ) {
remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets_Plus__Commerce__EDD__Main::get_instance(), 'front_end_tickets_form'), 5 );
add_action( 'tribe_events_single_event_before_the_content', array( Tribe__Tickets_Plus__Commerce__EDD__Main::get_instance(), 'front_end_tickets_form') );
}
@elimn
elimn / tribe_remove_endtime.php
Last active June 20, 2018 18:10 — forked from theeventscalendar/Hide end time
MT | TEC | Remove end times from every page except single (requires theme override)
<?php
/*
* Hide end time in list, map, photo, and single event view
* NOTE: This will only hide the end time for events that end on the same day
*/
function tribe_remove_end_time_single( $formatting_details ) {
$formatting_details['show_end_time'] = 0;
return $formatting_details;
@elimn
elimn / tec-ical-above-month.php
Last active August 29, 2015 14:24 — forked from jesseeproductions/tec-ical-above-month
MT | TEC | Fix iCal below Month view
<?php
/*
* The Events Calendar - Add iCal Link Below Month View
*/
function tribe_add_month_ical() {
if ( tribe_is_month() ) {
echo '<div class="tribe-events-cal-links">';
echo '<a class="tribe-events-ical tribe-events-button" title="Use this to share calendar data with Google Calendar, Apple iCal and other compatible apps" href="' . esc_url( tribe_get_ical_link() ) . '">+ Export Month\'s Events</a>';
echo '</div>';
@elimn
elimn / tribe_advance_minical.php
Last active August 29, 2015 14:22 — forked from barryhughes/fast-forward-mini-cal.php
MT | TEC | Advance Minical's default month to the next month with events
<?php
/**
* Tries to force the minicalendar widget to show the month of the next upcoming event by default, rather
* than simply showing the current month (which might be empty).
*/
class Tribe_Advance_Minical
{
protected $target_date = false;
/**
<?php if ( date_i18n( 'Y-m-01' ) !== tribe_get_month_view_date() ) : ?>
<li class="tribe-events-nav-current">
<a href="<?php echo Tribe__Events__Main::instance()->getLink( 'month' ) ?>">Back to Current Month</a>
</li>
<?php endif ?>
@elimn
elimn / functions.php
Last active August 29, 2015 14:08 — forked from kelly-tribe/alter-or-remove-heading.php
MT | TEC | Change Upcoming Events Title
<?php
add_filter('tribe_get_events_title', 'change_upcoming_events_title');
function change_upcoming_events_title($title) {
//We'll change the title on upcoming and map views
if (tribe_is_upcoming() or tribe_is_map() or tribe_is_photo()) return 'Upcoming Parties';
//In all other circumstances, leave the original title in place
return $title;
@elimn
elimn / functions.php
Last active August 29, 2015 14:05 — forked from barryhughes/fast-forward-mini-cal.php
MT | TEC | Minicalendar widget > Show the month of the next upcoming event when current month is empty
<?php
/**
* Tries to force the minicalendar widget to show the month of the next upcoming event by default, rather
* than simply showing the current month (which might be empty).
*/
class Tribe_Advance_Minical
{
protected $target_date = false;