Skip to content

Instantly share code, notes, and snippets.

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

陳鈞 jim60105

🛸
🚗🚕🚙🚓🚑🚚🚛🚜🏎🚓🚔🚍🚒🚘🚖🛺🚐🚖🚲🏍️🛵🚄🚅🚈🚂🚆🚇🚖🛴🚊🚉🚁🚆🚟🚝🚞🚋🚈🛶🚤🚢⛵🚀🛸🛹🚂🚃🚎🚌🛵🛺🚲🚍🚑🚒🚐
View GitHub Profile
@jim60105
jim60105 / 2022.DotSettings
Last active April 25, 2024 22:49
My VS Settings (2022)
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CodeCompletion/IntelliSenseCompletingCharacters/CSharpCompletingCharacters/UpgradedFromVSSettings/@EntryValue">True</s:Boolean>
<s:Int64 x:Key="/Default/CodeEditing/Intellisense/ParameterInfo/AutopopupDelay/@EntryValue">10</s:Int64>
<s:String x:Key="/Default/CodeEditing/NullCheckPatterns/CustomStatementPatternText/@EntryValue">// Use the following placeholders:&#xD;
// $EXPR$ -- source expression&#xD;
// $NAME$ -- source name (string literal or 'nameof' expression)&#xD;
// $MESSAGE$ -- string literal in the form of "$NAME$ != null"&#xD;
if (null == $EXPR$) throw new System.ArgumentNullException($NAME$);</s:String>
<s:Int64 x:Key="/Default/CodeEditing/NullCheckPatterns/Pattern
@jim60105
jim60105 / twitcasting-css-override.css
Last active April 24, 2024 07:20
改善Twitcasting的垃圾UI介面
/* 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/>.
**/
header {
display: flex;
justify-content: center;
@jim60105
jim60105 / Twitch-自動拍手機器.user.js
Last active March 31, 2024 16:14
Twitch: 自動拍手機器
// ==UserScript==
// @name Twitch: Automatic clapping machine
// @name:zh Twitch: 自動拍手機器
// @version 0.1.0
// @description 在其它人拍手時自動跟著一起拍
// @author 琳(jim60105)
// @match https://www.twitch.tv/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=www.twitch.tv
// @license GPL3
// ==/UserScript==
@jim60105
jim60105 / jpg2webp.ps1
Last active February 25, 2024 16:00
Convert images between png, jpg, webp and "Perserve PNG Info used by stable-diffusion-webui"
Get-ChildItem "./" -Filter *.jpg |
Foreach-Object {
$outputWebp = "$([System.IO.Path]::GetFileNameWithoutExtension($_)).webp"
magick "$($_.FullName)" $outputWebp
exiftool -TagsFromFile "$($_.FullName)" "-UserComment<UserComment" -comment= -overwrite_original $outputWebp
}

MikroTik settings:

/ip ipsec peer profile
set [ find default=yes ] dh-group=ecp256,modp2048 enc-algorithm=aes-256 hash-algorithm=sha256

/ip ipsec proposal
set [ find default=yes ] auth-algorithms=sha256,sha1 enc-algorithms=aes-256-cbc pfs-group=ecp256

/ip firewall filter
@jim60105
jim60105 / Youtube-自動拍手機器.user.js
Last active February 10, 2024 05:05
Youtube: 自動拍手機器
// ==UserScript==
// @name Youtube: Automatic clapping machine
// @name:zh Youtube: 自動拍手機器
// @version 1.4.5
// @description 在其它人拍手時自動跟著一起拍
// @author 琳(jim60105)
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @license GPL3
// ==/UserScript==
@jim60105
jim60105 / Youtube直播聊天室版面高度改善.css
Created November 20, 2022 16:08
Youtube直播聊天室版面高度改善
#chat {
height: calc(100vh - 100px) !important;
}
@jim60105
jim60105 / Youtube直播聊天室右下角互動❤️縮小.css
Last active January 14, 2024 11:36
Youtube直播聊天室右下角互動❤️縮小.css
yt-reaction-control-panel-view-model:not([reaction-control-panel-expanded]){
transform: scale(0.7);
/* To hide it completely.
display: none;
*/
}
#hover-area{
margin-right: 0;
}
@jim60105
jim60105 / Youtube-觀看5分鐘影片後自動按喜歡.user.js
Last active January 4, 2024 10:40
Youtube: 觀看5分鐘影片後自動按喜歡
// ==UserScript==
// @name Youtube: Automatically press like after watching 5 minutes of video
// @name:zh Youtube: 觀看5分鐘影片後自動按喜歡
// @version 1.1.3
// @description Youtube: Automatically press like after watching 5 minutes of video
// @author 琳(jim60105)
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @license GPL3
// ==/UserScript==
@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;