Skip to content

Instantly share code, notes, and snippets.

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 / 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 {
@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)
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 / entryinstaller.sh
Last active October 28, 2015 21:41
Entry board connector installer for linux
#!/bin/sh
# This script downloads entry board (http://play-entry.com/)
# websocket connector and apply some hack to enable it to
# run it on linux platform
#
# This script depends on Node.JS system installation (for npm)
#
# Copyright (c) 2015 perillamint
#
@perillamint
perillamint / unlinkis-notice.md
Last active November 26, 2015 16:22
unlink.is

#Notice

This gist is moved to git repository:

unlink.is

@perillamint
perillamint / randomstr.c
Created April 10, 2013 13:37
Random string generator.
//Released under GNU GPL v3.
#include <stdio.h>
static const char alphanum[] =
"0123456789"
"!@#$%^&*"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz";
@perillamint
perillamint / BOOTLOG.md
Last active December 22, 2015 18:31
Misc information about NIS-HAP11N

Bootlog

CFE

Decompressing...done


CFE version 5.60.127.36 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: 2013. 07. 30. (화) 17:18:39 KST (root@localhost.localdomain)
Copyright (C) 2000-2008 Broadcom Corporation.