Skip to content

Instantly share code, notes, and snippets.

View xdanger's full-sized avatar
🎯
Focusing

Yunjie Dai xdanger

🎯
Focusing
View GitHub Profile
@xdanger
xdanger / fstab
Created March 25, 2010 16:11
/etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
www-servers/nginx ~amd64
app-admin/apache-tools ~amd64
www-servers/spawn-fcgi ~amd64
dev-lang/php ~amd64
dev-php/PEAR ~amd64
net-analyzer/cacti ~amd64
net-analyzer/cacti-spine ~amd64
net-misc/memcached ~amd64
dev-php5/eaccelerator ~amd64
dev-db/phpmyadmin ~amd64
We couldn’t find that file to show.
#!/bin/bash
cd `dirname $0` && pwd
#!/bin/sh
#######################################################
# UNIX TREE #
# Version: 2.3 #
# File: ~/apps/tree/tree.sh #
# By Dem Pilafian #
# #
# Displays Structure of Directory Hierarchy #
# ------------------------------------------------- #
# This tiny script uses "ls", "grep", and "sed" #
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
#!/bin/awk -f
# md2html.awk
# by: Jesus Galan (yiyus) <yiyu.jgl@gmail>, May 2009
# Usage:
# md2html file.md > file.html
# Options: -v esc=false to not escape html
function newblock(nblock){
if(text)