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 UnityEngine; | |
| using Unity.WebRTC; | |
| public class WebRTCStreamer : MonoBehaviour | |
| { | |
| [SerializeField] private RenderTexture gameRenderTexture; | |
| [SerializeField] private int videoBitrate = 1000; | |
| [SerializeField] private AudioSource gameAudioSource; | |
| private RTCPeerConnection _peerConnection; |
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 | |
| # Setup ECS cluster | |
| echo ECS_CLUSTER=pug-ci >> /etc/ecs/ecs.config | |
| # Setup EFS | |
| yum update -y | |
| yum install -y nfs-utils | |
| mkdir -p /mnt/efs |
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
| for id in $(seq 100 100 9900); do | |
| gnuplot -e "datafile='$id.data'; output='results/$id.png'" plot.plt | |
| done |
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
| module Simulators | |
| class FakeS3Server | |
| include Singleton | |
| STORAGE_DIR = Rails.root.join 'public', 'fakes3' | |
| attr_reader :pid | |
| def self.start | |
| instance.start |
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
| # collect required AWS credentials: access key, secret key, region | |
| # setup s3cmd tool | |
| wget https://sourceforge.net/projects/s3tools/files/s3cmd/1.6.1/s3cmd-1.6.1.tar.gz | |
| tar -zcvf s3cmd-1.6.1.tar.gz | |
| cd s3cmd-1.6.1 | |
| sudo python setup.py install | |
| s3cmd --configure | |
| # stop application in order to prevent creating new attachments |
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
| RSpec::Matchers.define :have_log_entry do |short_message, message, params| | |
| match do |logstash| | |
| expected_log_entry = expected_log_entry_for short_message, message, params | |
| begin | |
| Timeout.timeout 2 do | |
| loop do | |
| begin | |
| actual_log_entries = logstash.logs |
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
| gem "paperclip" | |
| gem "aws-sdk", "~> 1.6" | |
| gem "fakes3", group: :test |