Skip to content

Instantly share code, notes, and snippets.

View hxueh's full-sized avatar

hxueh

View GitHub Profile
@hxueh
hxueh / adblock.txt
Last active March 21, 2025 14:58
My Ad block list
! Title: hxueh's Personal Filter
! Homepage: https://gist.github.com/hxueh/cf36a3e79a2ad1971431e05d9fa02b37
! License: MIT
jd.com##.mod_service,.jdm-tbar-tab-qrcode,.aside,.shieldShopInfo,.enjoyTop-bg,.fs_col2,.promo_lk,.hot-sales-new, .hot-sales-new-hasH
jd.com###app,J_enjoyTop,hotwords,hopRecSuit,treasure
bilibili.com##.recommended-swipe,.grid-anchor,.floor-single-card,.bili-live-card,.loc-entry,.loc-moveclip,.download-entry,.download-client-trigger,.large-header,.act-now
taobao.com##.layer,.tbh-superbanner,.tbh-logo-right,.icons3-wrapper,.topbar-ld,.business-entry-container,.rightWrap--evw5Mt7Y
taobao.com###J_Search>div:last-child,tcodeSideBar
caixin.com##.openInApp,.caixin-app
@hxueh
hxueh / catalog.php
Created June 21, 2024 20:26
A catalog generator for WordPress.
<?php
/*
Plugin Name: Catelog
Description: Generates a dynamic page showing categories and their posts
Version: 0.1
Author: hxueh
Author URI: https://www.hxueh.net
*/
// Prevent direct access to the plugin file
#!/usr/bin/env sh
LEDGER_DIR="/path/to/directory"
LEDGER_NAME="Ledger"
GPG_PUB_KEY="YOURGPGFINGERPRINT"
NOW=$($(which date) --iso-8601=seconds)
CURRENT_MONTH=$($(which date) +%Y-%m)
BACKBLAZE_BUCKET="YOURBUCKETNAME"
BACKBLAZE_REMOTE_FILE_DIR="Ledger"
@hxueh
hxueh / matrix.html
Last active January 8, 2019 20:46
matrix.html in CS50 2017 Pset6 Similarities (more comfortable)
<table class="table table-sm">
<thead>
<tr>
<!--There are three empty cell in the first header-->
<th></th>
<th></th>
<th></th>
<!--s2 is the string2, according to application.py-->
{% for character in s2 %}
<th>{{character}}</th>