Other 强制SSL HTTPS连接

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L]

Other R清洁工作区

 delete.all <- function()
 rm(list=ls(pos=.GlobalEnv), pos=.GlobalEnv)
 delete.all()  
  
graphics.off()

Other R常数

cel<-3e8   
h<-6.62620e-34
ee<-1.60219e-19  

Other 后记R.

postscript(file = "permittivities.eps",
    width = 14, height=12,onefile = TRUE, family = "Helvetica",
    title = "R Graphics Output", fonts = NULL,    paper = "special", bg="white", pointsize=16, pagecentre=TRUE)

Other sql de-dupe

SELECT BookISBN, count(BookISBN) FROM Books GROUP BY BookISBN HAVING COUNT(BookISBN)>1;

Other Amazon Web Services中SearchIndex“DVD”的ItemAttributes

*** SearchIndex: DVD
Actor
BrowseNode
Condition
Director
ItemPage
Keywords
MaximumPrice
MerchantId
MinimumPrice
MPAARating
Publisher
Sort
Title

Other 别名用于提取文件

ex () {
    if [ -f $1 ] ; then
        case $1 in
            *.tar.bz2)   tar xjf $1        ;;
            *.tar.gz)    tar xzf $1     ;;
            *.bz2)       bunzip2 $1       ;;
            *.rar)       rar x $1     ;;
            *.gz)        gunzip $1     ;;
            *.tar)       tar xf $1        ;;
            *.tbz2)      tar xjf $1      ;;
            *.tgz)       tar xzf $1       ;;
            *.zip)       unzip $1     ;;
            *.Z)         uncompress $1  ;;
            *.7z)        7z x $1    ;;
            *)           echo "'$1' cannot be extracted via extract()" ;;
        esac
    else
        echo "'$1' is not a valid file"
    fi
}

Other 列表分区

cat /etc/fstab

Other TiVo导航快捷方式

From the TiVo Central screen (press the "TiVo" button to get there), press the following keys to jump to their respective functions:

    * 0 = Show the TiVo cartoon introduction
    * 1 = Season Pass Manager
    * 2 = To Do List
    * 3 = Search Using Wishlists
    * 4 = Search by Title
    * 5 = Browse by Channel
    * 6 = Browse by Time
    * 7 = Record Time/Channel
    * 8 = TiVo's Suggestions
    * 9 = Showcases
    * TiVo = Now Playing

Other TiVo演员

##to undo, redo the given sequence or else reboot the TiVo

#display clock and elapsed track time
Select, Play, Select, 9, Select

#make the skip-ahead button into a 30-second skip button
Select, Play, Select, 3, 0, Select

#make the play bar go away faster
Select, Play, Select, Pause, Select