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
use num_traits::PrimInt; | |
use rangemap::RangeInclusiveMap; | |
use std::collections::HashMap; | |
use std::ops::Range; | |
use std::ops::{Index, IndexMut}; | |
/// Represents a memory controller with arbitrary address bus width | |
/// that routes read/write requests to the appropriate memory chip. | |
pub struct MemoryController<T> { | |
/// A one-to-one map of string identifiers to memory chips. |
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 | |
cd ${HOME} | |
# Initialize work directories | |
mkdir -p awcy/work && mkdir -p awcy/media | |
# Install dependencies | |
sudo apt update | |
sudo apt install -y git rsync bc time dav1d aom-tools \ |
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 | |
# Parse flags | |
worker_cores=16 | |
worker_address="127.0.0.1" | |
user="vimeo" | |
password="vimeo" | |
print_usage() { | |
printf "Usage: awcy-deploy-web.sh [-w <WORKER_ADDRESS>] [-c <WORKER_CORES>] [-u <USER>] [-p <PASSWORD>]\n \ |
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 | |
# Parse flags | |
get_deps="false" | |
get_media="false" | |
worker_cores=16 | |
user="vimeo" | |
password="vimeo" | |
print_usage() { |
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 | |
# Parse flags | |
get_deps="false" | |
get_media="false" | |
do_build="false" | |
worker_count=4 | |
worker_cores=4 | |
password="vimeo" |