Skip to content

Instantly share code, notes, and snippets.

Avatar
⚠️
undefined

leko lekoOwO

⚠️
undefined
View GitHub Profile
@lekoOwO
lekoOwO / pve_xtermjs_for_ubuntu_vm.txt
Created Aug 7, 2021 — forked from edisonlee55/pve_xtermjs_for_ubuntu_vm.txt
Proxmox VE xterm.js (Serial Terminal) for Ubuntu VM
View pve_xtermjs_for_ubuntu_vm.txt
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
View keybase.md

Keybase proof

I hereby claim:

  • I am lekoowo on github.
  • I am leko (https://keybase.io/leko) on keybase.
  • I have a public key ASAOI8ngTYO7_WMyMahbRI2L46DgUf4ZOt1VrSGYHEPmRwo

To claim this, I am signing this object:

View PotplayerMiddleware.cpp
#define UNICODE
#include <string>
#include <windows.h>
std::wstring exeDirPath() {
wchar_t buffer[MAX_PATH];
GetModuleFileNameW( NULL, buffer, MAX_PATH );
std::wstring::size_type pos = std::wstring( buffer ).find_last_of( L"\\/" );
return std::wstring( buffer ).substr(0, pos);
@lekoOwO
lekoOwO / rem_proxmox_popup.sh
Created Nov 23, 2019 — forked from tavinus/rem_proxmox_popup.sh
Remove PROXMOX 5.x / 6.x subscription message popup
View rem_proxmox_popup.sh
#!/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 Jun 28, 2018 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
View SimpleHTTPServerWithUpload.py
#!/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
"""
View WordPress 中文社群 行為守則.md

WordPress 中文社群 行為守則

第零章

  • 為維護 「WordPress 中文社群」Telegram 群組(下稱群組)之聊天品質,故訂定本守則。
  • 本守則之變更,依下列條文處理。
    • 本守則之變更,除本章外,需由管理員投票同意。投票結果,有效投票數達二分之一同意者,即為通過。投票人數不足前項規定數額或未有有效投票數達二分之一同意者,均為否決。
    • 本章之變更,需由群組成員投票同意。投票結果,投票人數達群組成員總數十五分之一以上,且有效投票數超過二分之一同意者,即為通過。投票人數不足前項規定數額或未有有效投票數超過二分之一同意者,均為否決。
    • 投票案之提出,除另有規定外,應由提案人之領銜人檢具投票案之主文、理由書及提案人名冊各一份,向任一管理員為之。
    • 投票案提案人人數,應達提案時群組人數總數十二分之一以上。