Create 3 top-level directories. Create a file and a directory in each.
$ mkdir r rx x
$ touch {r,rx,x}/file
$ mkdir {r,rx,x}/dir
%TAG ! tag:nuxi.nl,2015:cloudabi/ | |
--- | |
stderr: !fd stderr | |
path: !file | |
path: _obj/install/x86_64-unknown-cloudabi/python/lib/python3.6 | |
nousersite: true | |
nosite: true | |
command: >- | |
import sys; |
<!doctype html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8"/> | |
<title>Testy test</title> | |
</head> | |
<body style="background: black;"> | |
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> |
import re | |
import tokenize | |
import astroid | |
from pylint.checkers import BaseChecker, BaseTokenChecker | |
from pylint.interfaces import IAstroidChecker, ITokenChecker | |
FORMAT_PATT = re.compile(r'\$\{.*?}') |
from cStringIO import StringIO | |
import sys | |
import ruamel.ordereddict | |
import ruamel.yaml | |
s = '''\ | |
foo: | |
bar: baz |
python-pcre | |
re2 | |
regex | |
rure |
from libc.string cimport memcpy | |
cpdef bytes noswap(): | |
cdef double pi = 3.14159 | |
cdef unsigned char buf[8] | |
memcpy(&buf, &pi, 8) | |
return buf[:8] | |
cpdef bytes swap(): | |
cdef double pi = 3.14159 |
The following compares the output of several creative hash functions designed for human readability.
sha1's are merely used as arbitrary, longer, distributed input values.
input | 1 word output | 2 word output | 3 word output |
---|
Host rpi1 | |
HostName raspberrypi1.local | |
User pi | |
Host rpi2 | |
HostName raspberrypi2.local | |
User pi |
- hosts: localhost | |
gather_facts: false | |
vars: | |
regex: ^(\w{3}\s+\d+\s\d+:\d+:\d+)\s?:\s?(\w+)\s+:.*(?:\r?\n(?!.*COMMAND).*)*\r?\n.*?COMMAND=(.*(?:\r?\n(?!\w{3}\s+\d+\s\d+).*)*) | |
tasks: | |
- name: slurp file | |
slurp: | |
src: sudo.log | |
register: slurped |