Skip to content

Instantly share code, notes, and snippets.

View jim60105's full-sized avatar
๐Ÿ›ธ
๐Ÿš—๐Ÿš•๐Ÿš™๐Ÿš“๐Ÿš‘๐Ÿšš๐Ÿš›๐Ÿšœ๐ŸŽ๐Ÿš“๐Ÿš”๐Ÿš๐Ÿš’๐Ÿš˜๐Ÿš–๐Ÿ›บ๐Ÿš๐Ÿš–๐Ÿšฒ๐Ÿ๏ธ๐Ÿ›ต๐Ÿš„๐Ÿš…๐Ÿšˆ๐Ÿš‚๐Ÿš†๐Ÿš‡๐Ÿš–๐Ÿ›ด๐ŸšŠ๐Ÿš‰๐Ÿš๐Ÿš†๐ŸšŸ๐Ÿš๐Ÿšž๐Ÿš‹๐Ÿšˆ๐Ÿ›ถ๐Ÿšค๐Ÿšขโ›ต๐Ÿš€๐Ÿ›ธ๐Ÿ›น๐Ÿš‚๐Ÿšƒ๐ŸšŽ๐ŸšŒ๐Ÿ›ต๐Ÿ›บ๐Ÿšฒ๐Ÿš๐Ÿš‘๐Ÿš’๐Ÿš

Jim Chen jim60105

๐Ÿ›ธ
๐Ÿš—๐Ÿš•๐Ÿš™๐Ÿš“๐Ÿš‘๐Ÿšš๐Ÿš›๐Ÿšœ๐ŸŽ๐Ÿš“๐Ÿš”๐Ÿš๐Ÿš’๐Ÿš˜๐Ÿš–๐Ÿ›บ๐Ÿš๐Ÿš–๐Ÿšฒ๐Ÿ๏ธ๐Ÿ›ต๐Ÿš„๐Ÿš…๐Ÿšˆ๐Ÿš‚๐Ÿš†๐Ÿš‡๐Ÿš–๐Ÿ›ด๐ŸšŠ๐Ÿš‰๐Ÿš๐Ÿš†๐ŸšŸ๐Ÿš๐Ÿšž๐Ÿš‹๐Ÿšˆ๐Ÿ›ถ๐Ÿšค๐Ÿšขโ›ต๐Ÿš€๐Ÿ›ธ๐Ÿ›น๐Ÿš‚๐Ÿšƒ๐ŸšŽ๐ŸšŒ๐Ÿ›ต๐Ÿ›บ๐Ÿšฒ๐Ÿš๐Ÿš‘๐Ÿš’๐Ÿš
View GitHub Profile
@jim60105
jim60105 / updateDNS.sh
Last active June 23, 2025 01:01
Cloudflare DDNS bash, executed this on your machine via cron scheduling
#!/bin/sh
# Copyright (C) 2020 ้™ณ้ˆž, licensed under GPL-3.0-or-later
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@jim60105
jim60105 / ๆท˜ๅฏถๅ•†ๅ“้ ็ถฒๅ€ๆธ…็†
Last active November 4, 2020 10:09
ๆ”พๅœจๆ›ธ็ฑค๏ผŒๅœจๆท˜ๅฏถ็š„ๅ•†ๅ“้ ้ปžๆ“Šไฝฟ็”จ
//ๅฐ‡็ถฒๅ€ๅˆ—ๅคš้ค˜็š„ๅƒๆ•ธๆธ…็†
javascript:window.location.replace('https://item.taobao.com/item.htm?id='+location.href.match(/id=(\d+)/)[1]);
//็”ฑๅคง้™ธๆท˜ๅฏถ่ทณ่ฝ‰ๅˆฐWorldๆท˜ๅฏถ
javascript:window.location.replace('http://world.taobao.com/item/'+location.href.match(/id=(\d+)/)[1]+'.htm');
//็”ฑWorldๆท˜ๅฏถ่ทณ่ฝ‰ๅˆฐๅคง้™ธๆท˜ๅฏถ
javascript:window.location.replace('https://item.taobao.com/item.htm?id='+location.href.match(/item\/(\d+)/)[1]);
@jim60105
jim60105 / GoogleBloggerTOC.html
Last active December 7, 2023 13:32
ๅœจBloggerๅปบ็ซ‹Table of Contents (่‡ชๅ‹•TOC็›ฎ้Œ„)
<!-- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. -->
<!-- ๅฐ‡ๆญคๆ–‡ไปถๅ…งๅฎนๅฎŒๆ•ด่ฒผๆ–ผใ€Œ็‰ˆ้ข้…็ฝฎใ€โ†’ใ€Œๆ–ฐๅขžๅฐๅทฅๅ…ทใ€โ†’ใ€ŒHTML/JavaScriptใ€๏ผŒๆจ™้กŒๅ‘ฝๅ็‚บใ€Œ็›ฎ้Œ„ใ€-->
<div id="tocAnchor" style="text-align:left;margin-bottom:10px">
<nav id="toc" style="font-size: large;overflow:auto;max-height:94vh;padding-right: 15px;"></nav>
@jim60105
jim60105 / ไธ‰ๅ‘่ชž่จ€ๆจ™็ฑค.html
Last active December 7, 2023 13:35
ๅคš่ชž็ณปBlogๆ–‡็š„ไธ‰ๅ‘่ชž่จ€ๅˆ‡ๆ›ๅŠŸ่ƒฝ
<!-- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. -->
<style type="text/css">
.animate {
-moz-transition: 0.4s all;
-o-transition: 0.4s all;
@jim60105
jim60105 / test.sh
Last active July 19, 2021 12:41
test script for live-dl
#!/bin/bash
_url='https://www.youtube.com/channel/UCBC7vYFNQoGPupe5NxPG4Bw/live'
# _url='https://www.youtube.com/watch?v=Y-EVxJhfsfE'
USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
_body=$(curl -s --compressed -H "User-Agent: $USER_AGENT" -b cookies.txt "$_url")
# Extract metadata from fetched page
@jim60105
jim60105 / 1-video-dl-mkv.bat
Last active April 16, 2023 08:50
yt-dlp quick excute batch
@ECHO OFF
set url="%1"
yt-dlp.exe --ignore-config --external-downloader aria2c --external-downloader-args "-j 16 --retry-wait 10 --max-tries 10" --cookies-from-browser brave --youtube-skip-dash-manifes --merge-output-format mkv --prefer-free-formats --embed-thumbnail --embed-metadata --no-part -o "%%(upload_date)s %%(title)s (%%(id)s).%%(ext)s" "%url%"
PAUSE
@jim60105
jim60105 / GoogleBloggerTOC_sidebar.html
Last active December 7, 2023 13:31
ๅœจBloggerๅด้‚Šๆฌ„ๅปบ็ซ‹Table of Contents (่‡ชๅ‹•TOC็›ฎ้Œ„)
<!-- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. -->
<!-- ๅฐ‡ๆญคๆ–‡ไปถๅ…งๅฎนๅฎŒๆ•ด่ฒผๆ–ผใ€Œ็‰ˆ้ข้…็ฝฎใ€โ†’ใ€Œๆ–ฐๅขžๅฐๅทฅๅ…ทใ€โ†’ใ€ŒHTML/JavaScriptใ€๏ผŒๆจ™้กŒๅ‘ฝๅ็‚บใ€Œ็›ฎ้Œ„ใ€-->
<div id="tocAnchor_sidebar" style="text-align:left;margin-bottom:10px">
<nav id="toc_sidebar" style="font-size: large;"></nav>
</div>
@jim60105
jim60105 / extensions.vsext
Last active November 4, 2024 15:11
My VS Extension (2022)
{
"id": "e937c8db-ba11-410e-af6e-a543d228549e",
"version": "1.0",
"name": "My Visual Studio extensions",
"description": "A collection of my Visual Studio extensions",
"extensions": [
{
"vsixId": "AlignAssignments2022.41858b2d-ff0b-4a43-80b0-f1b2d6084935",
"name": "Align Assignments 2022",
"moreInfoUrl": "https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.AlignAssignment2022",
@jim60105
jim60105 / facebook_banner_li_killer.txt
Last active February 4, 2023 07:32
facebook_banner_li_killer
facebook.com#?#li:has(> span > div > a[aria-label="Watch"])
facebook.com#?#li:has(> span > div > a[href="/watch/"])
facebook.com#?#li:has(> span > div > a[aria-label="Marketplace"])
facebook.com#?#li:has(> span > div > a[href="/marketplace/?ref=app_tab"])
facebook.com#?#li:has(> span > div > a[aria-label="้Šๆˆฒ"])
facebook.com#?#li:has(> span > div > a[href="/gaming/"])
facebook.com#?#li:has(> span > div > a[href="/gaming/?ref=games_tab"])
facebook.com#?#div[data-visualcompletion="ignore-dynamic"]:has(div[aria-label="video chats that people can join"])
@jim60105
jim60105 / vs2019.vsconfig
Last active March 21, 2025 04:20
My VS ๅฎ‰่ฃ็ต„ๆ…‹
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.CoreEditor",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.NetCore.Component.Runtime.5.0",
"Microsoft.NetCore.Component.Runtime.3.1",
"Microsoft.NetCore.Component.SDK",
"Microsoft.VisualStudio.Component.NuGet",
"Microsoft.Net.Component.4.6.1.TargetingPack",