Skip to content

Instantly share code, notes, and snippets.

View kimarx's full-sized avatar

Kim, Yi-Chul kimarx

View GitHub Profile
@kimarx
kimarx / gist:1853497
Created February 17, 2012 13:40
4chan clone rss.tx
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title><: $title :></title>
<link><: $link :></link>
: for $entries -> $i {
<item>
<title>No. <: $i.id :> <: $i.name :> <: $i.message :></title>
<link><: $i.uri :></link>
<description>No. <: $i.id :> <: $i.name :> <: $i.message :></description>
@kimarx
kimarx / gist:1853492
Created February 17, 2012 13:39
4chan clone comment.tx
<div class="reply" style="
: if ( $image == 1 ) {
min-height: <: $min_height :>px;
: }
width: <: $width :>px; margin-left: <: $margin :>px" id = "<: $id :>">
: if ( $image == 1 ) {
<a class="image_link" target="_blank"
href="<: $img_path :>">
<img style="float: left; padding-right: <: $padding :>px;"
src="<: $thumb_path :>">
@kimarx
kimarx / gist:1853489
Created February 17, 2012 13:39
4chan clone default.tx
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type: text/html; charset=UTF-8">
<style type="text/css">
<!--
body {
margin: 0;
padding: 0;
@kimarx
kimarx / gist:1853485
Created February 17, 2012 13:37
4chan clone bbs.cgi
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
package CGI::Four::Register;
use Mouse;
use CGI::Carp qw( fatalsToBrowser );
use CGI::Minimal;
use FindBin;
@kimarx
kimarx / gist:1853479
Created February 17, 2012 13:36
4chan clone read.cgi
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
package CGI::Four::Read;
use Mouse;
use CGI::Carp qw( fatalsToBrowser );
use CGI::Minimal;
use DBI;
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
package CGI::Upie;
use Mouse;
use CGI::Carp qw( fatalsToBrowser );
use CGI::Simple;
use DBI;
# Generated by fluxbox-generate_menu
#
# If you read this it means you want to edit this file manually, so here
# are some useful tips:
#
# - You can add your own menu-entries to ~/.fluxbox/usermenu
#
# - If you miss apps please let me know and I will add them for the next
# release.
#
export XMODIFIERS=@im=uim-skk
export GTK_IM_MODULE="uim"
xset +fp $HOME/.fonts
uim-xim &
LANG=ja_JP.UTF-8 uim-toolbar-gtk &
fluxbox
# Bash Prompt
PS1='\u@\h \W: '
HISTSIZE=5000
HISTFILESIZE=5000
export XMODIFIERS=@im=uim-skk
export PATH="$PATH:/usr/games"
@kimarx
kimarx / gist:1393548
Created November 25, 2011 13:38
2ch like thread's template
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">
<!--
* {
margin: 0;
padding: 0;
}
body { background-color: rgb(239, 239, 239); }