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
#!/usr/bin/env python | |
# encoding:utf8 | |
__Author__ = 'zhaoweiguo<wgzhao@gmail.com>' | |
''' | |
create zabbix screen,specified graph name,rows x cols | |
script will get all hosts whose include graph name ,then write screens and screens_items table | |
Usage: $0 -s <screen name> -g <graph name> [ -c <cols> ] [-d ] [ -t ] | |
''' | |
from optparse import OptionParser |
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
%define _prefix /opt/app/{APPNAME} | |
%define _exec_prefix %{_prefix} | |
%define _bindir %{_exec_prefix}/bin | |
%define _sbindir %{_exec_prefix}/sbin | |
%define _libexecdir %{_exec_prefix}/libexec | |
%define _datadir %{_prefix}/share | |
%define _sysconfdir %{_prefix}/etc | |
%define _sharedstatedir %{_prefix}/com | |
%define _localstatedir %{_prefix}/var | |
%define _lib lib |
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
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/python");</script> |
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
server { | |
listen 8880; | |
server_name gollum; | |
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_pass http://localhost:9090; | |
access_log /var/log/nginx/gollum.access.log; |
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
<table> | |
<thead> | |
<tr valign="top"> | |
<th> | |
<p align="center">机器名</p> | |
</th> | |
<th> | |
<p align="center">要备份的文件</p> | |
</th> | |
<th> |
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
amrecover> listdisk | |
200- List of disk for host cp3.domain.com | |
201- /opt/www/sites | |
200 List of disk for host cp3.domain.com | |
amrecover> setdisk /opt/www/sites | |
200 Disk set to /opt/www/sites. | |
amrecover> ls | |
2009-04-13-17-49-11 newltf/ | |
2009-04-13-17-49-11 lawburn/ | |
2009-04-13-17-49-11 hnnoritz/ |
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
amtape FileBackup show | |
amtape: scanning all 25 slots in tape-changer rack: | |
slot 5: time 20090413030002 label FileBackup-05 | |
slot 6: time X label FileBackup-06 | |
slot 7: time X label FileBackup-07 | |
slot 8: time X label FileBackup-08 | |
slot 9: time X label FileBackup-09 | |
slot 10: time X label FileBackup-10 | |
slot 11: time X label FileBackup-11 | |
slot 12: time X label FileBackup-12 |
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
-su-3.2$ for (( i=1;$i < =9;i++)); do amlable FileBackup FileBackup-0$i slot $i;done | |
labeling tape in slot 1 (file://yourpath/FileBackup/slots): | |
Reading label... | |
Found an empty tape. | |
Writing label FileBackup-01.. | |
Checking label... | |
Success! | |
labeling tape in slot 2 (file://yourpath/FileBackup/slots): | |
Reading label... | |
Found an empty tape. |