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
#!/bin/bash | |
# Default to the current directory if no directory is provided | |
REPO_DIR="${1:-.}" | |
# Check if the directory exists | |
if [ ! -d "$REPO_DIR" ]; then | |
echo "Directory does not exist: $REPO_DIR" | |
exit 1 | |
fi |
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
namespace System; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Runtime.CompilerServices; | |
public class ArgumentAssertException : ArgumentException { | |
//--- Class Methods --- | |
public static void Assert( | |
[DoesNotReturnIf(false)] bool expression, |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Resources: | |
ModuleWebSocketStage: | |
Type: AWS::ApiGatewayV2::Stage | |
Properties: | |
ApiId: !Ref ModuleWebSocket | |
StageName: LATEST | |
DeploymentId: !Ref ModuleWebSocketDeployment7DE845992A5611C1BEBFBCD7A01DB8B8 |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"Secrets": { | |
"Type": "String", | |
"Description": "Secret Keys (ARNs)", | |
"Default": "" | |
}, | |
"XRayTracing": { | |
"Type": "String", |
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
{ | |
"FormattingOptions": { | |
"NewLinesForBracesInTypes": false, | |
"NewLinesForBracesInAccessors": false, | |
"NewLinesForBracesInAnonymousMethods": false, | |
"NewLinesForBracesInAnonymousTypes": false, | |
"NewLinesForBracesInLambdaExpressionBody": false, | |
"NewLinesForBracesInObjectCollectionArrayInitializers": false, | |
"NewLinesForBracesInProperties": false, | |
"NewLinesForBracesInControlBlocks": false, |
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
log_group_name="/aws/log-group-name" | |
log_stream_names=$(aws logs describe-log-streams \ | |
--log-group-name "$log_group_name" \ | |
--order-by LastEventTime \ | |
--descending \ | |
--max-items 50 \ | |
--output text \ | |
--query 'logStreams[*].logStreamName') |
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
dotnet new -i Amazon.Lambda.Templates::* |
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
# Delay deep sleep for 24hrs, which drains batteries more, | |
# but prevents system restarts when the computer is sleeping | |
# for more than 4 hours (the default value). | |
# NOTE: if the computer sleeps for 24+ hours, it will still cause a system restart. | |
sudo pmset -a standbydelay 86400 | |
# Improve performance of VMware Fusion | |
# from http://kb.parallels.com/122767 | |
sudo nvram boot-args="debug=0x10" |
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
#!/bin/sh | |
find . -name '*.orig' -type f | xargs /bin/rm -f |
NewerOlder