Skip to content

Instantly share code, notes, and snippets.

View lekoOwO's full-sized avatar
⚠️
undefined

leko lekoOwO

⚠️
undefined
  • Taiwan Semiconductor Manufacturing Company
  • Taiwan
  • 15:45 (UTC +08:00)
View GitHub Profile
@chuyqa
chuyqa / qwen3.5_chat_template.jinja
Last active August 3, 2026 17:55 — forked from sudoingX/qwen3.5_chat_template.jinja
Patched Jinja template for Qwen 3.5 27B - fixes developer role crash + preserves thinking mode (thinking = 1). Drop-in replacement for agent tools (OpenCode, Claude Code, Continue, Cursor, Aider). Without this patch, --chat-template chatml silently kills thinking mode.
{%- set image_count = namespace(value=0) %}
{%- set video_count = namespace(value=0) %}
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
{%- if content is string %}
{{- content }}
{%- elif content is iterable and content is not mapping %}
{%- for item in content %}
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
{%- if is_system_content %}
{{- raise_exception('System message cannot contain images.') }}
@nebriv
nebriv / DDM2.0.md
Last active April 17, 2026 18:33
Dell Display Manager 2.0 command line documentation

Dell Display Manager 2.0 Command Line

Decompiled DLL with ILSpy to identify various commands.

Most commands can be found in DDM2._0_UX.CmdBackground.cmdService_DoWork

Write commands can be prefixed with int:command to specify which monitor to send the command to.

.\DDM.exe /0:writebrightnesslevel 50

@yuna0x0
yuna0x0 / pve_xtermjs_for_vm.txt
Last active November 6, 2025 17:59
Proxmox VE xterm.js (Serial Terminal) for VM (Tested on Ubuntu and Arch Linux)
1. Add a virtual serial port to the VM using PVE Web GUI and restart the VM
2. Enable and start the virtual serial port on VM, change tty number as needed (Reference: https://askubuntu.com/a/621209/838946)
$ sudo systemctl enable serial-getty@ttyS0.service
$ sudo systemctl start serial-getty@ttyS0.service
3. Done! You can now select xterm.js in the PVE Web GUI
Task 1: Create a project jumphost instance
Navigation menu > Compute engine > VM Instance
Task 2: Create a Kubernetes service cluster
gcloud config set compute/zone us-east1-b
gcloud container clusters create nucleus-webserver1
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active July 19, 2026 02:05
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@tavinus
tavinus / rem_proxmox_popup.sh
Last active April 27, 2026 22:24
Remove PROXMOX 5.x / 6.x / 7.3-4 subscription message popup
#!/bin/sh
#######################################################
#
# Edits the proxmox Subscription file to make it
# think that it has a Subscription.
#
# Will disable the annoying login message about
# missing subscription.
#
@gnehs
gnehs / mkv.sh
Last active March 22, 2024 21:55
抽取 MKV 字幕檔並轉為繁體
#!/bin/sh
echo "------------------------"
echo " 字幕轉轉醬"
echo " 抽取資料夾下的影片並輸出字幕檔案"
echo "------------------------"
echo " 字幕轉轉醬使用了繁化姬的 API 服務"
echo " https://zhconvert.org/"
echo "------------------------"
echo " "
read -p "❓ 輸入資料夾位置:" videodir
@titulus
titulus / cookiesParser.js
Last active January 20, 2024 02:00
parse cookies.txt into array of object used by puppeteer
const fs = require('fs');
const file = fs.readFileSync('./cookies.txt', 'utf8');
const cookies = file
.split('\n')
.map(line => line2object(''+line))
.filter(notNull => notNull);
module.exports = cookies;
@kiler129
kiler129 / cloudflare_update.script
Last active September 24, 2025 04:46
Automatic script for Mikrotik RouterOS updating record on CloudFlare.
#########################################################################
# ================================================== #
# $ Mikrotik RouterOS update script for CloudFlare $ #
# ================================================== #
# #
# - You need a CloudFlare account & api key (look under settings), #
# a zone and A record in it #
# - All variables in first section are obvious, except CFid, #
# To obtain CFid use following command in any unix shell: #
# curl https://www.cloudflare.com/api_json.html -d 'a=rec_load_all' -d 'tkn=YOUR_API_KEY' -d 'email=email@example.com' -d 'z=domain.com'|python -mjson.tool
@lovasoa
lovasoa / node-walk.es6
Last active January 15, 2026 12:40
Walk through a directory recursively in node.js.
// ES6 version using asynchronous iterators, compatible with node v10.0+
const fs = require("fs");
const path = require("path");
async function* walk(dir) {
for await (const d of await fs.promises.opendir(dir)) {
const entry = path.join(dir, d.name);
if (d.isDirectory()) yield* walk(entry);
else if (d.isFile()) yield entry;