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
# | |
# Run this from the Live USB. | |
# | |
############################# | |
# EDIT YOUR PARTITIONS HERE # | |
############################# | |
root_partition=/dev/nvm0n1p2 | |
sudo mount ${root_partition} /mnt |
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
namespace Utils | |
module Async = | |
let retn x = | |
async { return x } | |
let lift f = | |
f >> retn |
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 WerknemerInRooster | |
module Types = | |
open System | |
open Common.Validation | |
type Werknemer = { | |
WerknemerId : string | |
WerknemerInternalId : Guid | |
RoosterId : Guid |
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
type ChangesRequestSchemeBasedOnXForwardedProto(next : RequestDelegate) = | |
member this.Invoke(context : HttpContext) = | |
let xForwardedProto = context.Request.Headers.["X-Forwarded-Proto"] | |
if xForwardedProto = (StringValues "https") then | |
context.Request.Scheme <- "https" | |
else | |
() | |
next.Invoke(context) |
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
namespace Fsion | |
open System.Threading | |
[<Struct;NoEquality;NoComparison>] | |
type Cancel = | |
private | |
| Cancel of bool ref * children: Cancel list ref | |
module internal Cancel = |
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
type Timed<'T> = | |
{ Timestamp: DateTimeOffset | |
Value: 'T } | |
type Clock = unit -> DateTimeOffset | |
let Timed (c: Clock) v = | |
{ Timestamp = c () | |
Value = v } |
OlderNewer