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
from ruamel.yaml import YAML | |
def str_representer(dumper, data): | |
if len(data.splitlines()) > 1: # check for multiline string | |
return dumper.represent_scalar('tag:yaml.org,2002:str', data, style='|') | |
return dumper.represent_scalar('tag:yaml.org,2002:str', data) | |
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
# | |
# Bash function to peform AWS 2-factor auth. | |
# | |
# This assumes you have $AWS_CREDENTIAL_FILE set to an actual credentials file, and | |
# AWS_PROFILE set to the appropriate profile in said file. | |
# | |
awsmfa() { | |
unset AWS_ACCESS_KEY_ID | |
unset AWS_AWS_SECRET_ACCESS_KEY |
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
import sentry_sdk | |
import MySQLdb | |
import logging | |
import os | |
from sentry_sdk.integrations.logging import LoggingIntegration | |
DB_HOST = 'bogus.example.com' | |
DB_USER = 'monkey' | |
DB_PASS = 'you know what this is' | |
DB_DB = 'database' |
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
# add 'logfile' to the plugin list | |
plugins = python3,logfile | |
# match logs already in json format | |
logger = applogger stdio | |
log-route = applogger ^{ | |
log-encoder = format:applogger ${msg} | |
log-encoder = nl:applogger | |
# all other logs, we jsonify |
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
--- Packages.orig/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCTools.cs 2023-12-15 17:36:51.390368366 -0500 | |
+++ Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCTools.cs 2023-12-15 17:37:10.234606341 -0500 | |
@@ -108,7 +108,12 @@ | |
{ | |
continue; | |
} | |
- var groups = (IEnumerable)groupsList?.GetValue(servicePointGroups.GetValue(scheduler)); | |
+ var servicePointGroup = servicePointGroups?.GetValue(scheduler); | |
+ if (servicePointGroup == null) | |
+ { |
OlderNewer