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
| https://linuxconfig.org/how-to-test-sd-card-speed-on-raspberry-pi | |
| dd if=/dev/zero of=./TestingFile bs=100M count=10 oflag=direct | |
| dd if=./TestingFile of=/dev/zero bs=100M count=10 oflag=dsync | |
| Round One: | |
| RPi 1: Write: 18.7 MB/s Read: 45.6 MB/s | |
| RPi 2: Write: 6.7 MB/s Read: 45.8 MB/s |
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
| require "bundler/inline" | |
| gemfile(install: true) do | |
| source "https://rubygems.org" | |
| gem "rails", "~> 6.1.0" | |
| gem "pagy", "5.1.2" | |
| end | |
| gem "actionpack" |
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
| #!/usr/bin/env ruby | |
| require 'yaml' | |
| require 'open3' | |
| # require 'byebug' | |
| COLOUR_RED = 31 | |
| COLOUR_GREEN = 32 | |
| COLOUR_YELLOW = 33 |
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 | |
| set -e | |
| function message() { | |
| >&2 echo "$1" | |
| } | |
| function find_container() { | |
| local tokens=($@) |
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
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: backend | |
| namespace: registry | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: | |
| name: backend |
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 elixir:1.4.2 | |
| MAINTAINER Klaus Meyer <[email protected]> | |
| ENV PORT 8080 | |
| ENV MIX_ENV prod | |
| RUN useradd -m -d /app app | |
| ADD . /app | |
| RUN chown -R app:app /app |
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(expr). | |
| -export([test/0]). | |
| -type expr() :: {num, integer()} | |
| | {val, atom()} | |
| | {add, expr(), expr()} | |
| | {mul, expr(), expr()}. | |
| -type inst() :: {push, integer()} | |
| | {fetch, atom()} |