Skip to content

Instantly share code, notes, and snippets.

View lekoOwO's full-sized avatar
⚠️
undefined

leko lekoOwO

⚠️
undefined
  • Taiwan Semiconductor Manufacturing Company
  • Taiwan
  • 01:17 (UTC +08:00)
View GitHub Profile
@lekoOwO
lekoOwO / qwen3.5_chat_template.jinja
Created April 10, 2026 21:17 — forked from chuyqa/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.') }}
@lekoOwO
lekoOwO / pve_xtermjs_for_ubuntu_vm.txt
Created August 7, 2021 20:25 — forked from yuna0x0/pve_xtermjs_for_vm.txt
Proxmox VE xterm.js (Serial Terminal) for Ubuntu VM
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
@lekoOwO
lekoOwO / rem_proxmox_popup.sh
Created November 23, 2019 09:33 — forked from tavinus/rem_proxmox_popup.sh
Remove PROXMOX 5.x / 6.x 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.
#
@lekoOwO
lekoOwO / SimpleHTTPServerWithUpload.py
Created June 28, 2018 08:28 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""