Skip to content

Instantly share code, notes, and snippets.

View alvin0319's full-sized avatar

alvin0319

View GitHub Profile
@alvin0319
alvin0319 / SkinBugWorkaround.php
Last active February 14, 2023 10:26
Fix Self Skin Glitch. I DO NOT HAVE RESPONSIBILITY FOR GETTING ANY UNDEFINED BEHAVIOUR.
<?php
/**
* @name SkinBugWorkaround
* @author alvin0319
* @main alvin0319\SkinBugWorkaround\SkinBugWorkaround
* @version 1.0.0
* @api 4.0.0
*/

Keybase proof

I hereby claim:

  • I am alvin0319 on github.
  • I am alvin0319 (https://keybase.io/alvin0319) on keybase.
  • I have a public key whose fingerprint is D604 7A3D E658 6FF4 5D8D 846C DA1A 5BD0 DC12 504E

To claim this, I am signing this object:

@alvin0319
alvin0319 / specifications.md
Created February 7, 2022 14:05
Specifications and explanations for implementing custom items on the server
@alvin0319
alvin0319 / coding-style.md
Created January 12, 2021 03:15
Introduce my coding style

It is mainly PSR-2 with a few exceptions.

  • Opening braces MUST go on the same line, and MUST NOT have spaces before.
  • else if MUST be written as elseif. (It is in PSR-2, but using a SHOULD)
  • Control structure keywords or opening braces MUST NOT have one space before or after them.
  • Code MUST use tabs for indenting.
  • Long arrays MAY be split across multiple lines, where each subsequent line is indented once.
  • Files MUST use only the <?php tag.
  • Files MUST NOT have an ending ?> tag.
  • Code MUST use namespaces.
@alvin0319
alvin0319 / compile.sh
Last active September 12, 2021 04:33
A PocketMine-MP 4.0.0 autocompiler.
#!/bin/bash
DIR="$(pwd)"
SKIP_COMPILE="false"
INS_DIR="$DIR/install_data"
LOG="$DIR/install.log"
if [ "$(id -u)" != "0" ]; then
echo "It seems that you run this script as non-root user."
echo "If you want to run this script, make sure that run this script as root. try to use this, sudo compile.sh"