Skip to content

Instantly share code, notes, and snippets.

View lekoOwO's full-sized avatar
⚠️
undefined

leko lekoOwO

⚠️
undefined
View GitHub Profile

WordPress 中文社群 行為守則

第零章

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

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:

@lekoOwO
lekoOwO / pve_xtermjs_for_ubuntu_vm.txt
Created August 7, 2021 20:25 — forked from edisonlee55/pve_xtermjs_for_ubuntu_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 / README.md
Last active April 7, 2024 07:09
Make Proxmox VE boot with USB

This tutorial is intended for users who encounter difficulties booting their Proxmox VE directly from their disk, such as when they have an NVMe disk and their BIOS does not support booting from it.

Please note that this method exclusively supports UEFI booting. Therefore, ensure that you are initiating the Proxmox installation using the UEFI mode. It's worth mentioning that it is technically possible to perform a BIOS installation by installing Clover as the initial boot loader and subsequently chaining the boot process to systemd-boot. However, this falls beyond the scope of this tutorial.

When you access the Proxmox installation menu, select the "Graphical Debug" option. This choice provides three opportunities to interact with the shell during the installation process.