Skip to content

Instantly share code, notes, and snippets.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
깻잎숙은 패킷 로깅을 하지 않음을 선언합니다.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJVcGqnAAoJEAbGdqDuSMWFLxYP/1rks2Bt+GH/Xvuqbw59ho8+
dZ5vTUHZWI1loeHJg4KOSI9rvdjBeIzyDijelpXr8hF0yYKMXP/hA7vC9DIfQajC
KCPZYjgWJQQ1imqIc0Tp9VR0KQDjgYKcRaNDM8eMHgdS0ByOjbrqIaxEKdYk98ml
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "bst.h"
static bool insert (bst_tree *this, void *dataptr);
static bool delete (bst_tree *this, void *dltkey, bool freedata);
static void* retrieve (bst_tree *this, void *key);
static void traverse (bst_tree *this, void process(void *data));
// NOTE: This example uses tengwar glyph in Unicode SMP.
// To properly render all glyph, you need font which support
// U+16080-160FF range.
//
// Here is modified FreeMonoTengwar font for that purpose.
// http://galadriel.gentoo.moe/tengwar-SMP/
class smptest
{
public static void main(String args[])
@perillamint
perillamint / gist:f44df523317c4f94ad76
Last active August 29, 2015 14:23
Firmware mirror
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
현재 download.inf 에 기록된 팬택의 모든 펌웨어와, opensource.pantech.com 의 소스 코드들을 미러링하고 있습니다.
펌웨어 파일들의 크기는 대략 46GiB 정도이고, 소스 코드 zip 파일들의 크기는 대략 20GiB 정도입니다.
현제 제 서버에 있는 팬텍 펌웨어 저장소는 rsync 프로토콜을 통한 접속과, http 프로토콜을 통한 접속이 가능한 상태입니다.
하지만, 저장소가 올라가 있는 기기가 제 개인 이용을 전제하고 만들어진 NAS 박스이다 보니, 이걸 모두에게 공개하기에는 무리가 따르는 실정입니다.
extern crate liquid;
use std::fs::File;
use std::io::Read;
use std::collections::HashMap;
use liquid::Context;
use liquid::Renderable;
use liquid::Value;
use liquid::LiquidOptions;
@perillamint
perillamint / injectme.js
Last active September 10, 2015 12:25
Mabi OST downloader
//Inject this into http://zermoth.net/mabinogi/ost/
if (!String.prototype.format) {
String.prototype.format = function() {
var str = this.toString();
if (!arguments.length)
return str;
var args = typeof arguments[0],
args = (("string" == args || "number" == args) ? arguments : arguments[0]);
for (arg in args)
@perillamint
perillamint / star.c
Created August 19, 2015 10:34
star - in hard way
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
@perillamint
perillamint / FuckKT
Created September 7, 2015 06:48
FuckKT
perillamint@ecthelion ~ $ curl -A "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)" http://naver.com
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
perillamint@ecthelion ~ $ curl -A "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)" http://naver.com --verbose
* Rebuilt URL to: http://naver.com/
@perillamint
perillamint / uridecode.rs
Last active September 9, 2015 00:14
uridecode.rs
use std::io;
use std::str::Split;
struct URI {
raw_uri: String,
original_uri: String,
}
impl URI {
pub fn new(uri: String) -> URI {
extern crate liquid;
use std::fs::File;
use std::io::Read;
use std::collections::HashMap;
use liquid::Context;
use liquid::Renderable;
use liquid::Value;
use liquid::LiquidOptions;