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
# From http://stackoverflow.com/questions/8591600/nginx-proxy-pass-based-on-whether-request-method-is-post-put-or-delete | |
server { | |
location / { | |
# This proxy_pass is used for requests that don't | |
# match the limit_except | |
proxy_pass http://127.0.0.1:8080; | |
# For requests that *aren't* a PUT, POST, or DELETE, | |
# pass to :9080 |
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
#!/usr/bin/env python3 | |
from xml.etree import ElementTree as ETree | |
from glob import glob | |
PATH = './refsynopsisdiv/funcsynopsis/funcprototype/funcdef/function' | |
index = {} | |
for p in glob('systemd/man/*.xml'): | |
index[p] = [f.text for f in ETree.parse(p).findall(PATH)] |
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
package main | |
import ( | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"fmt" | |
"golang.org/x/crypto/chacha20poly1305" | |
"golang.org/x/crypto/curve25519" |
OlderNewer