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 / 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直播聊天室右下角互動❤️縮小.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;
}
{
"www.alphapolis.co.jp/novel/*/*/episode/*": {
"css": "#content{\r\n width: unset;\r\n \r\n}\r\n#main{\r\n width: 90vw;\r\n float: unset;\r\n margin: 0px auto;\r\n}\r\nbody{\r\n background-color: #22272e;\r\n}\r\n.novel-body{\r\n color:rgb(173, 186, 199);\r\n font-weight: 600;\r\n background-color: #22272e;\r\n}",
"readability": false,
"enabled": true,
"modifiedTime": "2023-05-27T17:10:35.242+08:00"
},
"kakuyomu.jp/works/*/episodes/*": {
"css": ".widget-episode-inner{\r\n width: 90%;\r\n max-width: unset;\r\n}",
"readability": false,
$sourceFolder = "${pwd}\*"
$filePatterns = '*.png','*.jpg','*.gif'
Get-ChildItem -Path $sourceFolder -Include $filePatterns -File -Recurse | ForEach-Object {
$name = $_.FullName
$webp = [System.IO.Path]::ChangeExtension($name,".webp")
$avif = [System.IO.Path]::ChangeExtension($name,".avif")
echo "Orig: $name"
echo "WebP: $webp"
magick "$name" "$webp"
@jim60105
jim60105 / Youtube直播聊天室版面高度改善.css
Created November 20, 2022 16:08
Youtube直播聊天室版面高度改善
#chat {
height: calc(100vh - 100px) !important;
}
@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-觀看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==