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
| #! /bin/sh | |
| # configs2asciidoc:: | |
| # | |
| INC_DIR=. | |
| LIMITER='----' | |
| write_config() { | |
| DST=$1 | |
| shift 1 |
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
| #! /bin/sh | |
| # log-backup: | |
| # | |
| # Usage: | |
| # log-backup <service> | |
| # | |
| # /etc/logrotate.d/ulogd: | |
| # | |
| # /var/log/ulog/*.log { | |
| # ... |
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
| PANDOC = pandoc | |
| %.html: %.md style.css Makefile | |
| $(PANDOC) -c style.css -s -f markdown -t html --standalone -o $@ $< | |
| %.odt: %.md Makefile | |
| $(PANDOC) --standalone -f markdown -t odt -o $@ $< | |
| %.epub: %.md Makefile | |
| $(PANDOC) -o $@ $< |
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
| [ConTeXt]: http://www.pragma-ade.nl/ | |
| [DocBook XML]: http://www.docbook.org/ | |
| [GNU Texinfo]: http://www.gnu.org/software/texinfo/ | |
| [GPL]: http://www.gnu.org/copyleft/gpl.html "GNU General Public License" | |
| [groff man]: http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man7/groff_man.7.html | |
| [Haskell]: http://www.haskell.org/ | |
| [HTML]: http://www.w3.org/TR/html40/ | |
| [LaTeX]: http://www.latex-project.org/ | |
| [markdown]: http://daringfireball.net/projects/markdown/ | |
| [MediaWiki markup]: http://www.mediawiki.org/wiki/Help:Formatting |
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
| %!TEX TS-program = xelatex | |
| \documentclass[12pt]{scrartcl} | |
| % The declaration of the document class: | |
| % The second line here, i.e. | |
| % \documentclass[12pt]{scrartcl} | |
| % is a standard LaTeX document class declaration: | |
| % we say what kind of document we are making in curly brackets, | |
| % and specify any options in square brackets. |
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
| <?php | |
| /* | |
| Random BOFH excuse. | |
| Credit to Jeff Ballard <ballard%cs.wisc.edu> for the original | |
| "The Bastard Operator From Hell"-style excuse server. | |
| See http://www.cs.wisc.edu/~ballard/bofh/ for more info. | |
| */ | |
| //defined('SYSPATH') or die('No direct script access.'); | |
| class BOFHexcuse { |
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
| $(document).ready(function() { | |
| var fortune_script = '/bofh-excuse.php'; | |
| var rotate_timeout = 10000; | |
| var spinner_timeout = 2000; | |
| var rgb = { min:40, range:100 }; | |
| var rotate_count = { all:0, max:500, errors:0, max_errors:3 }; /* max:0 for unlimited */ | |
| var spinner = $("#spinner"); | |
| var fortune = $("#fortune"); | |
| var ajax_timeout = 20000; | |
| var ajax_error_msg = "Oops! Error 0xFEE1DEAD."; |
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
| #!/bin/sh | |
| # Generate a bibtex file just containing those publications cited in | |
| # a given pandoc document. To use | |
| # | |
| # extract_pandoc_bib.sh myfile.markdown | |
| # | |
| # this will generate `myfile.bib`. | |
| bib="$HOME/.pandoc/default.bib" |
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
| # ------------------------------------------------------------------------------ | |
| # My configuration | |
| show_unparsed=yes | |
| # ------------------------------------------------------------------------------ | |
| # Higlightings | |
| # Default color for displaying date | |
| date_color=darkgray |
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
| #!/bin/sh | |
| # ufw script | |
| # | |
| ufw disable | |
| ufw --force reset | |
| NET_PRIVATE_ADDR=(10.0.0.0/8 172.16.0.0/12 192.168.0.0/16) | |
| for i in ${NET_PRIVATE_ADDR[@]}; do ufw allow from $i to any app 'SSH'; done | |
| for i in ${NET_PRIVATE_ADDR[@]}; do ufw allow from $i to any app 'WWW Full'; done |