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 swfobject-patch | |
// @namespace http://saschanaz.github.io/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author You | |
// @match http://*/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
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
/* | |
* rt5651.c -- RT5651 ALSA SoC audio codec driver | |
* | |
* Copyright 2014 Realtek Semiconductor Corp. | |
* Author: Bard Liao <[email protected]> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ |
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
/* | |
* rt5651.c -- RT5651 ALSA SoC audio codec driver | |
* | |
* Copyright 2014 Realtek Semiconductor Corp. | |
* Author: Bard Liao <[email protected]> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ |
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
#!/system/bin/sh | |
# Audio input jack detection script by @ouija | |
# get headset input device | |
DEVICE=$(getevent -Sv | grep -B 5 -m1 'bytcr-rt5651 Headset' | grep -m1 'add device' | cut -d : -f 2) | |
if [ ! -z "$DEVICE" ]; then | |
sleep 3 | |
while 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
#!/system/bin/sh | |
# sleep fix script by @ouija - for baytrail/cherrytrail devices that only support 'Suspend-to-Idle' or freeze power state | |
while true | |
do | |
# get device wakefulness state | |
WAKE_STATE=$(dumpsys power | grep -m1 'mWakefulness' | cut -d = -f 2) |
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
#!/system/bin/sh | |
while true | |
do | |
# check device wakefulness state | |
WAKE_STATE=$(dumpsys power | grep -m1 'mWakefulness' | cut -d = -f 2) | |
#echo "Wakefulness: $WAKE_STATE" | |
if [ "$WAKE_STATE" = "Asleep" ]; then |
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
#!/system/bin/sh | |
# HDMI detection audio switcher script by @ouija | |
# note the following patches may be required for HDMI connect/disconnect status to work properly in some kernels | |
# drm/i915: Fix the HDMI hot plug disconnection failure (v2) -> https://patchwork.kernel.org/patch/10625143/ | |
# drm/i915: delay hotplug scheduling -> https://patchwork.kernel.org/patch/10613549/ | |
# get hdmi insert input device [disabled/not reliable] | |
# DEVICE=$(getevent -Sv | grep -B 5 -m1 'HDMI/DP,pcm=2' | grep -m1 'add device' | cut -d : -f 2) |
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
<? | |
// WooCommerce has a stupid function in the ./assets/js/frontent/woocommerce.min.js file that hides/shows the 'description' elements | |
// for the checkout fields both when there is an onclick event on the document body, and when any field input is clicked. | |
// | |
// The offending code for this 'feature' is the following: | |
// i(document.body).on("click",function(){i(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),i(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),i(".woocommerce-input-wrapper :input").on("keydown",function(e){var o=i(this).parent().find("span.description");if(27===e.which&&o.length&&o.is(":visible"))return o.prop("aria-hidden",!0).slideUp(250),e.preventDefault(),!1}).on("click focus",function(){var e=i(this).parent(),o=e.find("span.description");e.addClass("currentTarget"),i(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),o.length&&o.is(":hidden")&&o.prop("aria-hidd |
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 | |
class SwaggerAuth { | |
private $error = null; | |
// woocommerce/includes/class-wc-rest-authentication.php -> get_user_data_by_consumer_key function | |
private function get_user_data_by_consumer_key( $consumer_key ) { | |
global $wpdb; |
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
/** | |
* Owl Carousel v2.3.4 | |
* Copyright 2013-2018 David Deutsch | |
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE | |
*/ | |
/** | |
* Owl carousel | |
* @version 2.3.4 | |
* @author Bartosz Wojciechowski | |
* @author David Deutsch |
OlderNewer