This file contains 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
%compile command | |
%pandoc -N --template=mytemplate.tex --variable mainfont=Georgia --variable sansfont=Arial \ | |
% --variable fontsize=12pt --variable version=1.10 --variable monofont=Sans | |
%readme.md --latex-engine=xelatex --toc -o example14.pdf | |
\documentclass[$if(fontsize)$$fontsize$,$endif$,UTF8]{$documentclass$} | |
\usepackage{fixltx2e} % provides \textsubscript | |
\usepackage{xltxtra,xunicode} | |
\usepackage{graphics} | |
\usepackage{geometry} | |
\geometry{centering,paperwidth=180mm,paperheight=230mm,% |
This file contains 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
sudo aptitude remove $(dpkg -l linux-image* linux-headers* |grep ^ii |grep -v `uname -r` |awk '{print $2}') |
This file contains 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
bash$ cat textfile | |
This is line 1, of which there is only one instance. | |
This is the only instance of line 2. | |
This is line 3, another line. | |
This is line 4. | |
bash$ grep 'the' textfile | |
This is line 1, of which there is only one instance. | |
This is the only instance of line 2. | |
This is line 3, another line. |
This file contains 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
#!/bin/bash | |
# Embedding Ctl-H in a string. | |
a="^H^H" # Two Ctl-H's -- backspaces | |
# ctl-V ctl-H, using vi/vim | |
echo "abcdef" # abcdef | |
echo | |
echo -n "abcdef$a " # abcd f | |
# Space at end ^ ^ Backspaces twice. | |
echo |
This file contains 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
-- | |
create or replace function datediff(m text,d1 date,d2 date) returns int as $$ | |
declare | |
d1_year int; | |
d1_month int; | |
d2_year int; | |
d2_month int; | |
day int; |
This file contains 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
<?xml version='1.0' encoding='utf-8' ?> | |
<?xml-stylesheet type='text/xsl' href='grid.xsl' ?> | |
<all_books> | |
<book> | |
<分类号>TN01</分类号> | |
<书名>模拟电子技术</书名> | |
<作者>胡宴如主编</作者> | |
<版次></版次> | |
<出版社>高等教育出版社</出版社> | |
<出版时间>2000.8</出版时间> |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- | |
/********************************************** | |
图书管理系统 v1.0 | |
作者: 赵卫国 | |
联系方式: mlsx@cie.xtu.edu.cn http:/www.xplore.cn | |
完成时间: 2004年4月 | |
************************************************/ | |
--> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
This file contains 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
# | |
# amanda.conf - sample Amanda client configuration file. | |
# | |
# This file normally goes in /etc/amanda/amanda-client.conf. | |
# | |
conf "FileBackup" # your config name | |
index_server "cp1.domain.com" # your amindexd server | |
tape_server "cp1.domain.com" # your amidxtaped server |
This file contains 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
# default: on | |
# | |
# description: The Amanda backup client should be enabled for systems | |
# which will be backed up by an Amanda backup server. | |
service amanda | |
{ | |
disable = no | |
flags = IPv6 | |
socket_type = stream |
This file contains 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
# default: on | |
# | |
# description: Amanda services for Amanda server and client. | |
# | |
service amanda | |
{ | |
disable = no | |
# flags = IPv6 | |
socket_type = stream |
OlderNewer