Goodconf is a yaml based configuration library, supporting dot access, deep updates and more.
Loading from a string:
s = 'hello: world'
c = Config.from_string(s)
assert c.hello == 'world'
assert c == {'hello': 'world'}
package net.yadan.banana; | |
import net.yadan.banana.memory.OutOfMemoryException; | |
import net.yadan.banana.memory.block.BlockAllocator; | |
public class ObjectsPool { | |
private PooledObject m_objects[]; | |
private BlockAllocator m_blocks; | |
private Factory m_factory; |
### Keybase proof | |
I hereby claim: | |
* I am omry on github. | |
* I am omry (https://keybase.io/omry) on keybase. | |
* I have a public key ASB0kXu6fdubwhPrieXn1rcHuY1l-Q4a5U9TpO2vq9QYNQo | |
To claim this, I am signing this object: |
vagrant@workstation:~/learn-chef/.chef$ sudo knife ssh 'name:node1' 'sudo chef-client' --ssh-user vagrant --ssh-password vagrant --attribute ipaddress | |
10.0.2.15 [2018-10-18T01:00:05+00:00] WARN: ***************************************** | |
10.0.2.15 [2018-10-18T01:00:05+00:00] WARN: Did not find config file: /etc/chef/client.rb, using command line options. | |
10.0.2.15 [2018-10-18T01:00:05+00:00] WARN: ***************************************** | |
10.0.2.15 Starting Chef Client, version 13.8.5 | |
10.0.2.15 Creating a new client identity for workstation using the validator key. | |
10.0.2.15 [2018-10-18T01:00:07+00:00] WARN: Failed to read the private key /etc/chef/validation.pem: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/chef/validation.pem> | |
10.0.2.15 | |
10.0.2.15 ================================================================================ | |
10.0.2.15 Chef encountered an error attempting to create the client "workstation" |
vagrant@workstation:~/learn-chef/.chef$ sudo knife ssh 'name:node1' 'sudo chef-client' --ssh-user vagrant --ssh-password vagrant --attribute ipaddress | |
10.0.2.15 [2018-10-18T01:00:05+00:00] WARN: ***************************************** | |
10.0.2.15 [2018-10-18T01:00:05+00:00] WARN: Did not find config file: /etc/chef/client.rb, using command line options. | |
10.0.2.15 [2018-10-18T01:00:05+00:00] WARN: ***************************************** | |
10.0.2.15 Starting Chef Client, version 13.8.5 | |
10.0.2.15 Creating a new client identity for workstation using the validator key. | |
10.0.2.15 [2018-10-18T01:00:07+00:00] WARN: Failed to read the private key /etc/chef/validation.pem: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/chef/validation.pem> | |
10.0.2.15 | |
10.0.2.15 ================================================================================ | |
10.0.2.15 Chef encountered an error attempting to create the client "workstation" |
#!/usr/local/bin/python | |
import os | |
import re | |
import sys | |
import subprocess | |
datasets = [ | |
'storage/home', | |
'storage/datasets01', |
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="jdk" jdkName="Python 3.8 (test)" jdkType="Python SDK" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
</module> |
server: | |
host: 127.0.0.1 | |
port: 8081 | |
app: | |
username: ${env:USER} | |
flask: | |
ENV: production | |
DEBUG: false |
from contextlib import contextmanager | |
from typing import Any | |
@contextmanager | |
def foo() -> Any: | |
print("1 before") | |
yield | |
print("1 after") |