Skip to content

Instantly share code, notes, and snippets.

View msjyoo's full-sized avatar

Michael Yoo msjyoo

View GitHub Profile
<?php
/*
name=BattleField
description=A heavily customized PVP Ranking plugin
author=sekjun9878
version=1.0.0
class=BattleField
apiversion=9
*/
Incorrect way
use PocketMine\ASpace\Block ABlock;
use PocketMine\BSpace\Block as BBlock;
ABlock::Blah;
BBlock::Blah;
Correct Way
@msjyoo
msjyoo / PocketMine_Syntax_Example.php
Created July 6, 2014 12:04
This Gist an example code complying with the PocketMine-MP Contributing Syntax Standard.
<?php
namespace DeveloperName\Example;
class ExampleClass{
const EXAMPLE_CLASS_CONSTANT = 1;
public $examplePublicVariable = "defaultValue";
private $examplePrivateVariable;
public function __construct($firstArgument, &$secondArgument = null){
False
```
C:\Users\Michael Yoo\Documents\Development\Projects\PocketMine\Builds\#228\PocketMine-MP . 14 test environment mc 090\plugins\DevTools_v1.8.0-4c37f602.phar
C:\Users\Michael Yoo\Documents\Development\Projects\PocketMine\Builds\#228\PocketMine-MP . 14 dfsdfasdfsafsafsadfasdftest\plugins\DevTools_v1.8.0-4c37f602.phar
C:\Users\Michael Yoo\Documents\Development\Projects\PocketMine\Builds\#228\PocketMine-MP . 14 dfsdfasdfsafsafsadfasdftest\plugins\DevTools_v1.8.0-4c37f602.phar
C:\Users\Michael Yoo\Documents\Development\Projects\PocketMine\Builds\#228\PocketMine-MP . 14 dasdfasdfsadfdas\plugins\DevTools_v1.8.0-4c37f602.phar
C:\Users\Michael Yoo\Documents\Development\Projects\PocketMine\Builds\#228\PocketMine-MP . 14 dasdfasdfsa\plugins\DevTools_v1.8.0-4c37f602.phar
C:\Users\Michael Yoo\Documents\Development\Projects\PocketMine\Builds\#228\PocketMine-MP . 14 dasdfasd\plugins\DevTools_v1.8.0-4c37f602.phar
C:\Users\Michael Yoo\Documents\Development\Projects\PocketMine\Builds\#228\PocketMine-MP . 14 dasdfas\pl
@msjyoo
msjyoo / gist:38b0d2ca4d180dbca82c
Created August 14, 2014 04:54
PHPStorm GitHub 2-Factor Login "Json Parse Error"
If you are encountering the "Json Parse Error" with PHPStorm when trying to use the Token based authentication system:
When you are generating the token, allow it all permissions. PHPStorm will automatically adjust the token permissions to its requirements.
If you don't give it sufficient permissisons, it will fail to set the permissions automatically hence the error.
CPU: Intel i7-4790K $392
SSD: Samsumg 840 EVO 250G $135 (500G $269)
HDD: WD Green 2TB $91 x 2 (Mirrored)
RAM: Kingston 16GB Kit (2x8GB) $175
CPU Cooler: Stock Intel
GPU: Nvidia GTX 770 2G Asus OC $386
Case: Fractal Design Define R4 Black $138
PSU: Antec True Power 80+ Gold TP-550C $110
ODD: LG $19
Keyboard: Das Keyboard 4 Professional with MX Cherry Blue (If I can find one) $189
@msjyoo
msjyoo / Request for Comments Guidelines Draft 1.markdown
Created September 22, 2014 12:36
Request for Comments Guidelines Draft 1

(Please note that this is only a draft. Please feel free to make changes to this document. This is not a finalised guideline in any way.)

(Oh, and please summarise this guideline into a compact version. This is here so there's a fully-fledged guideline, but people will need a summary as well)

Request for Comments

A Request for Comments Pull Request is used to gather votes from developers democratically to allow the majority to rule in making important decisions to the project. This allows implementation of controversial changes and features to be conducted in an orderly fashion.

A Request for Comments is critical to the autonomous governing of open source projects such as PocketMine, because it allows major decisions to be made by the community of developers, and not developers who just happen to be maintainers and have write access.

When is Request for Comments required?

Error applying Virtual Switch Properties changes
Failed while adding virtual Ethernet switch connections
Ethernet port '{dafsdfsa}' bind failed: Catastrophic failure (0x8000FFFF).
How to fix: The port is shared. Disable Internet Connection Sharing for the interface, finish bridging, and turn ICS back on on the Virtual External interface
@msjyoo
msjyoo / certgen.rb
Last active August 29, 2015 14:10 — forked from sheerun/certgen.rb
# Generates necessary certificates to ~/.docker
#
# Usage:
# bundle install
# ruby certgen.rb <domain>
require 'certificate_authority'
require 'fileutils'
if ARGV.empty?
@msjyoo
msjyoo / getmem.sh
Created December 6, 2014 06:07
Get Ubuntu's Physical Memory Size in MegaBytes in Integer Form
echo "scale = 0; $(grep -oP '(?<=MemTotal: )\d+?(?=\skB)' /proc/meminfo) / 1024" | bc