Usage:
./manage.py shell --plain < import_custom_fields.py
#!/bin/bash | |
set -e | |
analyze() { | |
BASE="$1" | |
echo "Converting 'input/$BASE.pdf' to 'output/$BASE.tiff'" | |
convert -density 300 "input/$BASE.pdf" "output/$BASE.tiff" 2>&1 | |
echo "OCR of 'output/$BASE.pdf' to 'output/${BASE}_deu.pdf'" |
import itertools | |
from ruamel.yaml import YAML | |
from pathlib import Path | |
def load_yaml(yaml_base_path: str): | |
yaml_path = Path(yaml_base_path) | |
content_list = [] | |
content_list.append(load_file(yaml_path.with_suffix('.yml'))) | |
load_dir(content_list, yaml_path.with_suffix('.d')) | |
return flatten(content_list) |
I hereby claim:
To claim this, I am signing this object:
firewall { | |
ipv6-name dmz-lan-6 { | |
default-action drop | |
enable-default-log | |
rule 100 { | |
action accept | |
log enable | |
protocol ipv6-icmp | |
} | |
rule 1 { |
#!/bin/bash | |
# | |
# (c) Netcetera AG | |
date="19.11.2015" | |
version="1.2" | |
# | |
help() { | |
script=$(basename "$1") |
' Version 1.0.0 | |
' You may use these functions directly in Excel: "=luhnCheck(A55)" | |
' probably only needed internally | |
Function luhnSum(InVal As String) As Integer | |
Dim evenSum As Integer | |
Dim oddSum As Integer | |
evenSum = 0 |
// This method adds a certificate with the specified alias to the specified keystore file.
public static void addToKeyStore(File keystoreFile, char[] keystorePassword,
String alias, java.security.cert.Certificate cert) {
try {
// Create an empty keystore object
KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());
// Load the keystore contents
(function(window) { | |
"use strict"; | |
var Yack = function(playerToken) { | |
if(playerToken) { | |
this.playerToken = playerToken; | |
} else { | |
var o = this; | |
callSrv('Connect', {}, function(res) { |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |