Oversimplified HOWTO based on the Docker networking tutorial.
docker network create --driver bridge redis-net
package main | |
import ( | |
"encoding/xml" | |
"fmt" | |
) | |
type BoolYN bool | |
func (b BoolYN) MarshalXMLAttr(name xml.Name) (xml.Attr, error) { |
package main | |
import "fmt" | |
func minimalIncomplete(yield func(int, string) bool) { | |
for i := range 9 { | |
// If yield returns false because of break/return and we don't check, | |
// the calling range loop will panic. | |
yield(i, fmt.Sprintf("==%d==", i)) | |
} |
Oversimplified HOWTO based on the Docker networking tutorial.
docker network create --driver bridge redis-net
Skipping other possible actions, such as perspective corrections, here is how:
Filters/Blur/Gaussian Blur...
).If you need to manipulate the resulting image further, create a new layer from visible (Layer/New from Visible
).
# Transliterate Unicode to ASCII | |
print(unicodedata.normalize('NFKD', 'bździągwa').encode('ascii', 'ignore').decode()) |
#!/usr/bin/env python3 | |
import argparse | |
import re | |
import unicodedata | |
def gen_chars(rx, cp_max): | |
for i in range(160, cp_max): | |
try: |
[alias] | |
tree = log --graph --color --decorate --format=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all |
#!/bin/bash | |
convert "$1" \( +clone -colorspace gray -negate -blur 0x300 \) \ | |
-compose softlight -composite "$2" |
#!/usr/bin/env python | |
import collections | |
import os | |
import sqlite3 | |
import struct | |
LENSFUN_PARAM_NAMES = """ | |
modify_flags |
# Extract full-size previews from Nikon raw files | |
# Replace '-w' with '-w!' to overwrite existing files | |
exiftool -JpgFromRaw -b -w %d%f.JPG -ext NEF -r directory-or-files | |
# Copy all tags from raw to JPEG files (best used after above) | |
# Use the '-overwrite_original' option to skip backup files | |
exiftool -tagsfromfile %d%f.NEF -ext JPG -r directory-or-files | |
# Both operations in one command | |
# -w without format codes is treated as extension |