Compile with Graphviz.
Command line: dot -Tpdf template.gv -o template.pdf
setopt NOHUP | |
# setopt AUTO_LIST # these two should be turned off | |
# setopt AUTO_REMOVE_SLASH # When the last character resulting from a completion is a slash and the next character typed is a word delimiter, remove the slash. | |
setopt HIST_ALLOW_CLOBBER | |
setopt HIST_REDUCE_BLANKS | |
setopt INC_APPEND_HISTORY SHARE_HISTORY | |
setopt ALL_EXPORT | |
setopt AUTO_CD # cd if no matching command | |
setopt EXTENDED_HISTORY # saves timestamps on history |
Compile with Graphviz.
Command line: dot -Tpdf template.gv -o template.pdf
[Unit] | |
Description=Hubot | |
Requires=network.target | |
After=network.target | |
[Service] | |
Type=simple | |
WorkingDirectory=/opt/hubot | |
User=hubot |
2c2 | |
< -- Tables for OIDC Server functionality, HSQL | |
--- | |
> -- Tables for OIDC Server functionality, PostgreSQL | |
6c6 | |
< id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) PRIMARY KEY, | |
--- | |
> id SERIAL PRIMARY KEY, | |
23c23 | |
< id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) PRIMARY KEY, |
--- | |
- name: configure kbd | |
template: src=kbd-config.j2 dest=/etc/kbd/config mode=644 owner=root group=root | |
notify: | |
- reload kbd | |
- name: update grub to disable console blanking | |
lineinfile: dest=/etc/default/grub state=present regexp="^GRUB_CMDLINE_LINUX_DEFAULT=.*$" line="GRUB_CMDLINE_LINUX_DEFAULT=\"consoleblank=0\"" | |
notify: |
[2.2-RELEASE][root@fw-01.chnet]/var/etc/ipsec: ipsec listall | |
List of X.509 CA Certificates: | |
subject: "C=NL, ST=Zuid-Holland, L=Delft, O=WISVCH, E=beheer@ch.tudelft.nl, CN=internal-ca" | |
issuer: "C=NL, ST=Zuid-Holland, L=Delft, O=WISVCH, E=beheer@ch.tudelft.nl, CN=internal-ca" | |
serial: 00 | |
validity: not before Jan 09 02:06:45 2015, ok | |
not after Jan 06 02:06:45 2025, ok | |
pubkey: RSA 2048 bits |
import javax.crypto.*; | |
import javax.crypto.spec.GCMParameterSpec; | |
import java.nio.ByteBuffer; | |
import java.security.SecureRandom; | |
import java.util.Arrays; | |
public class AESGCMUpdateAAD2 { | |
// AES-GCM parameters | |
public static final int AES_KEY_SIZE = 128; // in bits |
cbench load-generation command: | |
➜ et4285-masti git:(master) ~/oflops/cbench/cbench -c 10.10.2.23 -p 6633 -m 1000 -l 1000 -w 0 -s 64 -M 1000 -t | |
(in parallel with and on same host as) | |
cbench latency command: | |
➜ ~ ~/oflops/cbench/cbench -c 10.10.2.23 -p 6633 -m 1000 -l 25 -w 5 -s 1 -M 1 -o 1 -m 1000 | |
➜ ~ ~/oflops/cbench/cbench -c 10.10.2.23 -p 6633 -m 1000 -l 25 -w 5 -s 1 -M 1 -o 1 -m 1000 |
#!/bin/bash | |
# csr.sh: Certificate Signing Request Generator | |
set -e | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 hostname [alt.hostname1] [alt.hostname2]" | |
exit 1 | |
fi |
#! /usr/bin/env python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |