-
Run as sudo
sudo su
-
Resize the physical disk of the VM
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 serde::{de::DeserializeOwned, Deserialize, Deserializer}; | |
// | |
struct Metadata { | |
name: &'static str, | |
provider: &'static str, | |
} | |
// |
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 async_trait::async_trait; | |
use dyn_clone::DynClone; | |
use serde::{Deserialize, Serialize}; | |
//------------------------------------------------------------------------------ | |
trait SpecLoaderContract<Value, Spec> { | |
fn load(&self, value: Value) -> Result<Spec, anyhow::Error>; | |
} |
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
// | |
// Inspired by the following talk: https://www.youtube.com/watch?v=TVYhFpqlgZ4 | |
// And example repo: https://github.com/devsisters/ck-domain-logic-example | |
// | |
// Domain models | |
type AccountId = AccountId of string | |
type AccountNmae = AccountName of string | |
type AccountState = Opened | Closed |
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
type Dep<'t> = | |
abstract member Get : 't | |
// This doesn't work :'( | |
// type Deps<'a, 'b>(a: Dep<'a>, b: Dep<'b>) = | |
// member this.GetA = a | |
// member this.GetB = b | |
// interface Dep<'a> with member this.Get with get () = this.GetA | |
// interface Dep<'b> with member this.Get with get () = this.GetB |
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
module RealmWeaver.Core.Config | |
open System.IO | |
open Microsoft.Extensions.Configuration | |
open RealmWeaver.Core.Utils | |
let buildConfig environment (configBuilder: IConfigurationBuilder) = | |
let settingsPath = | |
match EnvVar.tryGet (sprintf "%s_%s" EnvVar.Root "CONFIG_FILE") with |
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
;===================================================== | |
; | |
; To learn more about how to configure Polybar | |
; go to https://github.com/jaagr/polybar | |
; | |
; The README contains alot of information | |
; | |
;===================================================== | |
[global/wm] |
- Unblock WiFi permanently
systemctl enable rfkill-unblock@all && systemctl start rfkill-unblock@all
- Connect to WiFi using
wifi-menu
as it creates a persistent profile -wifi-menu
- I always rename them from
wlp1s0-<ssid>
towifi-<ssid>
(And replace spaces with_
)
- I always rename them from
- Then start your profile
netctl start <profile>
netctl list
if you've forgotten it already
netctl enable
for it to autostart
I hereby claim:
- I am absolutejam on github.
- I am absolutejam (https://keybase.io/absolutejam) on keybase.
- I have a public key whose fingerprint is 7C29 6C3A 9023 158D 42A5 ADB5 2E81 C9C0 9F8C A0AF
To claim this, I am signing this object:
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
#! /usr/bin/env ruby | |
# | |
# check-windows-port-listening.rb | |
# | |
# DESCRIPTION: | |
# Check to see which ports are listening, using netstat. | |
# First draft. | |
# | |
# OUTPUT: | |
# plain text |
NewerOlder