Skip to content

Instantly share code, notes, and snippets.

@premist
premist / gist:1253560
Created September 30, 2011 12:00
XHTML 1.0 Strict
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XHTML 1.0 Strict Template</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
@premist
premist / .zshrc
Created December 19, 2011 02:51
My ~/.zshrc configuration
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="blinks"
# CASE_SENSITIVE="true"
# DISABLE_AUTO_UPDATE="true"
# DISABLE_LS_COLORS="true"
# DISABLE_AUTO_TITLE="true"
# COMPLETION_WAITING_DOTS="true"
plugins=(git osx gem macports node npm rails3 rvm svn)
@premist
premist / CentOS-Base.repo
Last active September 29, 2015 10:38
CentOS Mirror File (Sayclub Repo)
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
@premist
premist / stage0-change-mirror-to-korean.sh
Created January 12, 2012 15:50
Installing GitLab on CentOS 6.2 (Part 1)
curl https://raw.github.com/gist/1588091/8b7b7a203074231f3dc75bdee48b3017078fb621/CentOS-Base.repo -o /etc/yum.repos.d/CentOS-Base.repo
curl https://raw.github.com/gist/1588091/2e5ab750cd0603dd7210ea7a999d15f9aadae711/epel.repo -o /etc/yum.repos.d/epel.repo
@premist
premist / stage6-3.sh
Created January 12, 2012 15:54
Installing GitLab on CentOS 6.2 (Part 2)
passwd gitlab
@premist
premist / stage8-6.sh
Created January 12, 2012 15:54
Installing GitLab on CentOS 6.2 (Part 3)
rails server -p 3000 -e production
@premist
premist / donkim.c
Created March 7, 2012 03:29
Waffle Codes
void input(int *assign){int work=1;while(work){work>>=1;work<<=*assign;}sleep(INT_MAX);} void input(int *assign){int work=1;while(work){work>>=1;work<<=*assign;}sleep(INT_MAX);} void input(int *assign){int work=1;while(work){work>>=1;work<<=*assign;}sleep(INT_MAX);}
@premist
premist / dabblet.css
Created March 28, 2012 17:03
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@premist
premist / debug.css
Created April 8, 2012 14:02
Javascript-less DOM Debugger for HTML5
div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
@premist
premist / service
Created April 20, 2012 02:34 — forked from bmeck/service
init.d script
#!/bin/bash
#
# initd-example Node init.d
#
# chkconfig: 345 80 20
# description: Node init.d example
# processname: node
# pidfile: /var/run/initd-example.pid
# logfile: /var/log/initd-example.log
#