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
auth none | |
allow * * *.akamaihd.net | |
parent 1000 tcp 210.0.156.15 443 | |
proxy -p8287 -i127.0.0.1 |
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
dict(map(lambda x: (x, ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(16))), range(30000,30200))) |
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
# Issue # | |
When I want to print jinja variable to a json, the default filter will add a 'u' prefix to indicate the string encoding, but the configuration file sees this as syntax error. | |
## Resources | |
* https://stackoverflow.com/questions/8710758/json-is-appearing-as-unicode-entities-in-jinja2-template | |
* https://docs.ansible.com/ansible/playbooks_filters.html |
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
# ipsec.conf - strongSwan IPsec configuration file | |
config setup | |
charondebug="ike 2, knl 2, cfg 2, net 2, esp 2, dmn 2, mgr 2" | |
conn %default | |
keyexchange=ikev2 | |
ike=aes128-sha256-ecp256,aes256-sha384-ecp384,aes128-sha256-modp2048,aes128-sha1-modp2048,aes256-sha384-modp4096,aes256-sha256-modp4096,aes256-sha1-modp4096,aes128-sha256-modp1536,aes128-sha1-modp1536,aes256-sha384-modp2048,aes256-sha256-modp2048,aes256-sha1-modp2048,aes128-sha256-modp1024,aes128-sha1-modp1024,aes256-sha384-modp1536,aes256-sha256-modp1536,aes256-sha1-modp1536,aes256-sha384-modp1024,aes256-sha256-modp1024,aes256-sha1-modp1024! | |
esp=aes128gcm16-ecp256,aes256gcm16-ecp384,aes128-sha256-ecp256,aes256-sha384-ecp384,aes128-sha256-modp2048,aes128-sha1-modp2048,aes256-sha384-modp4096,aes256-sha256-modp4096,aes256-sha1-modp4096,aes128-sha256-modp1536,aes128-sha1-modp1536,aes256-sha384-modp2048,aes256-sha256-modp2048,aes256-sha1-modp2048,aes128-sha256-modp1024,aes128-sha1-modp1024,aes256-sha384-modp1536,aes256-sha256-modp1536,aes2 |
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 python | |
import json | |
import random | |
import string | |
import yaml | |
def shadowsocks_generate_port_password(port_start, port_end, password_length): | |
return dict(map(lambda x: (x, ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(password_length))), range(port_start, port_end))) |
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
; | |
; Global Editor Config for Adaptive Labbers | |
; | |
; This is an ini style configuration. See http://editorconfig.org/ for more information on this file. | |
; | |
; Top level editor config. | |
root = true | |
; Always use Unix style new lines with new line ending on every file and trim whitespace | |
[*] | |
end_of_line = lf |
I am looking for a simple and easy rpc for my project, so I searched around and took a note here.