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