Skip to content

Instantly share code, notes, and snippets.

View Byloth's full-sized avatar
💻
Coding...

Matteo Bilotta Byloth

💻
Coding...
View GitHub Profile
@Byloth
Byloth / cmangos_commands.csv
Created February 7, 2025 20:16 — forked from pboardman/cmangos_commands.csv
cmangos server commands
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 15 columns, instead of 3 in line 5.
Command,Account level,Syntax,,,,,,,,,,,,
account',0',Syntax: .account\r\n\r\nDisplay the access level of your account.',,,,,,,,,,,,
account characters',3',Syntax: .account characters [#accountId|$accountName]\r\n\r\nDisplays a list of all characters for an account either by provided #accountId or $accountName,or the account of a selected player.',,,,,,,,,,,
account set addon',3',Syntax: .account set addon [#accountId|$accountName] #addon\r\n\r\nSet the allowed expansion for a given account ID,username or selected characters account. Allowed values are 0 for vanilla,1 for The Burning Crusade,and 2 for Wrath of the Lich King.',,,,,,,,,
additem',3',Syntax: .additem #itemid/[#itemname]/#shift-click-item-link #itemcountAdds the specified number of items of id #itemid (or exact (!) name $itemname in brackets,or link created by shift-click at item in inventory or recipe) to your or selected character inventory. If #itemcount is omitted,only one item will be added..',,,,,,,,,,
account lock',0',Syntax: .account lock [
@Byloth
Byloth / thenable.js
Created November 4, 2024 10:30
A `thenable` custom implemented object (`Promise`-like)
const thenableObj = {
_onFulfilled: (result) => result,
then: function(onFulfilled)
{
const _previousOnFulfilled = this._onFulfilled;
this._onFulfilled = (result) =>
{
result = _previousOnFulfilled(result);
@Byloth
Byloth / docker-daemon.conf
Last active May 28, 2024 09:13
How to redirect `docker` logs to `syslog`
/**
* Filename: `/etc/docker/daemon.json`
*/
{
"log-driver": "syslog",
"log-opts": {
"syslog-facility": "user",
"tag": "docker_container/{{.Name}}"
}