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
# Setup working directory | |
umask 0077 # create new files as u=rwX | |
mkdir workingdir | |
cd workingdir | |
mkdir caroot ca server client caroot/certsdir ca/certsdir | |
touch caroot/index.txt ca/index.txt # create index file for root CA and CA | |
openssl rand -hex 16 > caroot/serial.txt # create initial serial for root CA's certificates | |
openssl rand -hex 16 > ca/serial.txt # create initial serial for CA's certificates | |
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
" Example vim color scheme. | |
" USAGE: copy to ~/.vim/colors/simple.vim and then use `colorscheme simple` | |
" Uses terminal colors 0-15. GUI-colors added for syntax example. | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
WITH | |
count(n) AS -- choose number of rows; goes from n downto 1 | |
( | |
SELECT 3 AS n -- on DB2 add: FROM sysibm.sysdummy1 | |
), | |
index_numbers(n) AS | |
( | |
SELECT n FROM count | |
UNION ALL | |
SELECT n-1 FROM index_numbers |