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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Threading; | |
using static System.Console; | |
namespace ThreadPlayground | |
{ | |
class ReaderWriterLockSlimSample | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Threading; | |
using static System.Console; | |
namespace ThreadPlayground | |
{ | |
class NonExclusiveLockSemaphore | |
{ |
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 -xe | |
## Code Deploy Agent Bootstrap Script## | |
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 | |
function installdep(){ | |
yum install -y ruby jq |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Resource": "*", | |
"Action": [ | |
"ec2:RunInstances", | |
"ec2:CreateTags" | |
] |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"ec2:DeleteFlowLogs", | |
"ec2:CreateFlowLogs", | |
"ec2:DescribeFlowLogs", | |
"logs:CreateLogGroup", | |
"logs:CreateLogStream", |
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
AWSTemplateFormatVersion: 2010-09-09 | |
Description: | | |
Deploy a MariaDB Server based on AWS Marketplace AMI "MariaDB Server 10.3 on AmazonLinux" for DEVELOPMENT ONLY | |
Parameters: | |
ServerKeyPair: | |
Type: AWS::EC2::KeyPair::KeyName | |
Description: Your Amazon EC2 Key Pair. | |
VPCId: | |
Type: AWS::EC2::VPC::Id |
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
{ | |
"departmentId": 10, | |
"departmentName": "Administration", | |
"locationId": 1700, | |
"managerId": 200, | |
"links": [ | |
{ | |
"href": "10/employees", | |
"rel": "employees", | |
"type" : "GET" |