Skip to content

Instantly share code, notes, and snippets.

@Longkt
Longkt / WP Coupon - export
Last active November 29, 2019 13:05
Fix the expired date and filter coupon store
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
require WP_COUPON_IE_PATH.'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Helper\Sample;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
@patrickdappollonio
patrickdappollonio / s10plus-bloatware-list.md
Last active May 14, 2024 20:31
Samsung Galaxy S10+ bloatware list

Samsung Galaxy S10+ Bloatware list you can disable

Disclaimers:

  • This won't uninstall the application -- even when the command says so. It'll simply remove it from your username, but it will still exist in your phone.
  • With the list, YMMV. Some features might stop working after disabling certain apps. Feel free to disable just the ones you don't use.
  • You need developer options enabled to run these commands, and a USB connection to your computer, with your computer running adb shell.

Samsung Dex

pm uninstall -k --user 0 com.sec.android.desktopmode.uiservice
// Sort by Popularity default in Category coupon page
add_action( 'init', function() {
remove_action( 'wpcoupon_coupon_category_before_sidebar', 'wpcoupon_coupon_cat_filter_box', 10 );
remove_filter( 'pre_get_posts', 'wpcoupon_coupon_cat_query' );
add_action( 'wpcoupon_coupon_category_before_sidebar', 'custom_wpcoupon_coupon_cat_filter_box', 10 );
add_filter( 'pre_get_posts', 'custom_wpcoupon_coupon_cat_query' );
} );
@kfur
kfur / darkreader.js
Last active June 27, 2025 13:39
Dark Reader userscript for Safari browser
// ==UserScript==
// @name DarkReader
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
// MIT License
// Copyright (c) 2019 Alexander Shutau
@urbanhusky
urbanhusky / userChrome.css
Last active July 14, 2022 15:23
Firefox 95 ultra-compact multirow tabs on top, context line below tab & compact menus - urbanhusky's ugly hack YMMV :)
/* Hi, urbanhusky here.
This is cobbled together from various sources.
One of those sources is: https://github.com/MrOtherGuy/firefox-csshacks
*/
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_tabs.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Makes tabs to appear on multiple lines */
/* Tab reordering will not work and can't be made to work */
/**
* Set Cookie
*
* @param cname
* @param cvalue
* @param exdays
*/
function setCookie( cname, cvalue, exdays ) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
@KaKi87
KaKi87 / awesome-android-x3Free.md
Last active July 3, 2025 13:44
Awesome list — Free, ad-free and in-app-free Android apps

Now mirrored at blog.kaki87.net


Inspired by Awesome

Awesome

DISCLAIMER : this isn't really an awesome list, I don't care about guidelines, rules and etc. so I don't bother make a real repo and a real pull request.

@cvan
cvan / youtube-force-quality.md
Last active December 18, 2023 15:25
Force video quality with YouTube (notes for Firefox Reality)

Forcing a better default playback quality of YouTube videos

If a user is browsing videos on YouTube.com from a web browser on a higher-end device (e.g., VR headsets), the user has to manually override the playback quality of a video through the playback-controls bar at the bottom of the video: Settings > Quality.


Forcing a different playback quality of a YouTube video

  1. Load a YouTube video. Example: https://www.youtube.com/watch?v=ELU-43DMNT4
  2. Then paste some of this code in the DevTools' Console.
  3. You'll notice the quality changes to the highest available for the video.
@Log1x
Log1x / debloatNox.md
Last active March 26, 2025 01:44
Debloating & Optimizing Nox

Debloating Nox

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

  1. Download and Install a fresh copy of Nox. The latest version is fine (for now). If you already have it installed, that is fine too. No need to reinstall.

  2. Enable Root Mode on Nox by clicking the gear icon and then checking the Root Startup box.

  3. Install a new Launcher from the Play Store. ANYTHING but Nox's default. I suggest [Nova Launcher](https://play.google.com/s