Skip to content

Instantly share code, notes, and snippets.

View jim60105's full-sized avatar
🛸
🚗🚕🚙🚓🚑🚚🚛🚜🏎🚓🚔🚍🚒🚘🚖🛺🚐🚖🚲🏍️🛵🚄🚅🚈🚂🚆🚇🚖🛴🚊🚉🚁🚆🚟🚝🚞🚋🚈🛶🚤🚢⛵🚀🛸🛹🚂🚃🚎🚌🛵🛺🚲🚍🚑🚒🚐

陳鈞 jim60105

🛸
🚗🚕🚙🚓🚑🚚🚛🚜🏎🚓🚔🚍🚒🚘🚖🛺🚐🚖🚲🏍️🛵🚄🚅🚈🚂🚆🚇🚖🛴🚊🚉🚁🚆🚟🚝🚞🚋🚈🛶🚤🚢⛵🚀🛸🛹🚂🚃🚎🚌🛵🛺🚲🚍🚑🚒🚐
View GitHub Profile
@jim60105
jim60105 / updateDNS.sh
Last active December 7, 2023 13:35
Cloudflare DDNS bash,以cron於主機排程執行
#!/bin/sh
### GPLv3
# 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/>.
### HOW TO
@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 July 18, 2023 07:03
My VS Extension (2022)
{
"id": "e908f01b-bf54-4f70-9b76-b1176dffd10b",
"name": "My Visual Studio extensions",
"description": "A collection of my Visual Studio extensions",
"version": "1.0",
"extensions": [
{
"name": "Align Assignments 2022",
"vsixId": "AlignAssignments2022.41858b2d-ff0b-4a43-80b0-f1b2d6084935",
"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 June 8, 2023 09:19
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",