This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#데이타가 쌓이는 디렉토리가 /data1/crawl_data 라면 아래 스크립트는 최근 300 개만 남기고 파일을 지운다. | |
#!/bin/bash | |
DATE=`date +'%Y%m%d_%H%m%S'` ## 로그 기록을 위해 작업시간을 기록한다. | |
BACKUPCOUNT=300 ## 최근 300 개만 남기고 지운다. | |
WORKDIR=/data1/crawl_data | |
dirlist=`/bin/ls -t $WORKDIR` | |
i=1; | |
for fd in $dirlist; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Easier navigation: .., ..., ~ and - | |
alias ..="cd .." | |
alias cd..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias ~="cd ~" # `cd` is probably faster to type though | |
alias -- -="cd -" | |
# Detect which `ls` flavor is in use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LazyImageLoader = (function(){ | |
var threshold = 150; | |
var isInitialized = false; | |
var tid = null; | |
var isFirst = true; | |
var loadImagesInHere = function(){ | |
var images = daum.$$("img:not([src])"); | |
var minY = daum.Browser.getScrollOffsets().top; | |
var maxY = minY + ( window.innerHeight || 800 ); |
NewerOlder