This file contains hidden or 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
| --- a/custom_components/s3_compatible/__init__.py | |
| +++ b/custom_components/s3_compatible/__init__.py | |
| @@ -32,7 +32,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: S3ConfigEntry) -> bool: | |
| aws_access_key_id=data[CONF_ACCESS_KEY_ID], | |
| config=BOTO_CONFIG, | |
| verify=data.get(CONF_VERIFY, None) if data.get(CONF_VERIFY, None) != "" else None, | |
| ) as client: | |
| - client.head_bucket(Bucket=data[CONF_BUCKET]) | |
| + await hass.async_add_executor_job(lambda: client.head_bucket(Bucket=data[CONF_BUCKET])) | |
| except ClientError as err: |
This file contains hidden or 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
| #!/bin/bash | |
| # Options | |
| APPROVE_INSTALL=y | |
| SERVER_PORT=55555 | |
| CLIENT_NAME=client | |
| # Secure WireGuard server installer | |
| # https://github.com/angristan/wireguard-install |
This file contains hidden or 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
| setImmediate(function () { | |
| console.log("\n [*] Waiting for Traffic"); | |
| Java.perform(function () { | |
| var okhttp_client = Java.use("okhttp3.OkHttpClient"); | |
| var okhttp_real_call = Java.use("okhttp3.RealCall"); | |
| function printSeparator() { | |
| console.log("----------------------------------------------------------------------------"); | |
| } | |