Skip to content

Instantly share code, notes, and snippets.

View MCPE-PC's full-sized avatar
๐Ÿ˜

Jaehyeon Park (MCPE_PC) MCPE-PC

๐Ÿ˜
View GitHub Profile

Keybase proof

I hereby claim:

  • I am MCPE-PC on github.
  • I am jaehyeon (https://keybase.io/jaehyeon) on keybase.
  • I have a public key whose fingerprint is A9B2 91E6 E49D AE34 DF63 A978 6A5F 2A4A 8405 3347

To claim this, I am signing this object:

Do You Hear The Students Sing

๋„ค ๊ฐ€ ๋“ฃ ๊ณ  ์žˆ ์–ด ์„œ ํ–‰ ๋ณต ํ•œ ์žฌ ํ˜„ ์ด ๋…ธ ๋ž˜
์ง€ ๊ธˆ ์€ ๋…ธ ์˜ˆ ์ œ ๋„ ๋ถˆ ๋ฒ• ์ด ๋‹ค ์™ธ ์น˜ ๋Š” ๋ง ์ƒ
์‹ฌ ๋ฐ• ์ˆ˜ ๋Š” B P M ๋ถ ์†Œ ๋ฆฌ ํฌ ๊ธฐ ๋ฐ ์‹œ ๋ฒจ
๋‚ด ์ผ ์ด ์—ด ๋ ค ๋ฉ‹ ์ง„ ํ‘ ์—ญ ์‚ฌ ๋˜ ๋ฆฌ ๋ผ
๋ชจ ๋‘ ํ•จ ๊ป˜ ๋ถ€ ๋ฅด ์ž ๋ˆ„ ๊ฐ€ ๋‚ด ํ‰ ๊ฐ€ ๋ง ์น˜ ๋ฆฌ
์ € ๋„ˆ ๋จธ ๋‹ด ๋ฒฝ ์ง€ ๋‚˜ ์„œ ๊ฟˆ ๊พธ ๋˜ ์ง‘ ์œผ ๋กœ
์ž ๊ท€ ๊ฐ€ ๋‹ค ์ง‘ ๊ฐ€ ์ž ์•„ ์ด ๋Ÿฐ ๊ฟˆ ์ด ๊ตฌ ๋‚˜
@MCPE-PC
MCPE-PC / compile.sh
Created September 28, 2019 13:40
PocketMine-MP master branch compile script
#!/bin/bash
cd -P $(dirname "${BASH_SOURCE[0]}")
WORKING_DIR=$(pwd)
PMMP_BRANCH='master'
PHP_DIR="$WORKING_DIR/bin/php7/bin"
INSTALLED_PHP=false
if [[ -f PocketMine-MP.phar ]]; then
// Cubic equation calculator sourced from StackOverflow
const {spawn} = require('child_process');
let nc = spawn('nc', ['ctf.dimigo.hs.kr', 8231]);
nc.stdout.on('data', (data) => {
console.log(data.toString());
if (data.toString().replace(/\n/g, '').startsWith('No. ')) {
const matches = data.toString().match(/([0-9]+)x\^3 ([\+-]) ([0-9]+)x\^2 ([\+-]) ([0-9]+)x ([\+-]) ([0-9]+) = 0/);
let solved = solveCubic(...([matches[1], matches[2] + matches[3], matches[4] + matches[5], matches[6] + matches[7]].map(num => Number(num)))).map(num => Math.round(num));
if (solved.length === 1) {
console.log('Enter manually');
@MCPE-PC
MCPE-PC / anti-mummumee.user.js
Last active February 17, 2019 17:33
Anti-Mummumee
// ==UserScript==
// @name Anti-Mummumee
// @namespace https://gist.github.com/MCPE-PC/4386efd4504fb48ba5d0122022c4c00b
// @version 1.1
// @encoding utf-8
// @icon https://t1.daumcdn.net/cfile/tistory/1671B1395128AB8A23
// @description try to take over the world!
// @author MCPE_PC
// @updateURL https://gist.githubusercontent.com/MCPE-PC/4386efd4504fb48ba5d0122022c4c00b/raw/23ea024e00688e0b8dad5723837b119adad09d4f/anti-mummumee.user.js
// @downloadURL https://gist.githubusercontent.com/MCPE-PC/4386efd4504fb48ba5d0122022c4c00b/raw/23ea024e00688e0b8dad5723837b119adad09d4f/anti-mummumee.user.js