Skip to content

Instantly share code, notes, and snippets.

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

Jim Chen jim60105

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

ๅพžไฝฟ็”จ่€…็š„่ง’ๅบฆ่งฃ้–‹ shaka-packager ๅŠ ๅฏ†ๅฝฑ็‰‡

Caution

ๆญค็ญ†่จ˜ๆฒ’ๆœ‰ไปปไฝ•ใ€Œ็ ด่งฃใ€่ฆ็ด 
ๆˆ‘ๅชๆ˜ฏ่ชชๆ˜Žๅฆ‚ไฝ•็”จไฝ ๆ‰‹ไธŠ็š„้‘ฐๅŒ™ๆŠŠ้Ž–ๆ‰“้–‹๏ผŒๆฒ’ๆœ‰้‘ฐๅŒ™็š„ไบบๆ‰“ไธ้–‹้Ž–

Important

ๆญค็ญ†่จ˜็š„ๅ‰ๆๆ˜ฏ:

  • ไฝ ๅฏไปฅๅœจ็ถฒ้ ไธญๆ’ญๆ”พๅฝฑ็‰‡
  • ๅฝฑ็‰‡ไฝฟ็”จ shaka-packager ๆŠ€่ก“ๅŠ ๅฏ†
@jim60105
jim60105 / 2022.DotSettings
Last active November 4, 2024 15:10
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;
}