feat: initial changes to presenterm
This commit is contained in:
parent
de685b6d6f
commit
8a2fc923d1
6 changed files with 183 additions and 127 deletions
33
config.yaml
Normal file
33
config.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/mfontanini/presenterm/master/config-file-schema.json
|
||||
defaults:
|
||||
# override the terminal font size when in windows or when using sixel.
|
||||
terminal_font_size: 20
|
||||
|
||||
speaker_notes:
|
||||
always_publish: true
|
||||
|
||||
export:
|
||||
pauses: new_slide
|
||||
# dimensions:
|
||||
# rows: 53
|
||||
# columns: 165
|
||||
|
||||
snippet:
|
||||
exec:
|
||||
# enable code snippet execution. Use at your own risk!
|
||||
enable: true
|
||||
custom:
|
||||
# The keys should be the language identifier you'd use in a code block.
|
||||
racket:
|
||||
# The name of the file that will be created with your snippet's contents.
|
||||
filename: "snippet.rkt"
|
||||
|
||||
# A prefix that indicates a line that starts with it should not be visible but should be executed if the
|
||||
# snippet is marked with `+exec`.
|
||||
hidden_line_prefix: "/// "
|
||||
|
||||
# A list of commands that will be ran one by one in the same directory as the snippet is in.
|
||||
commands:
|
||||
# run the racket program
|
||||
- ["racket", "$pwd/snippet.rkt"]
|
13
flake.lock
generated
13
flake.lock
generated
|
@ -7,11 +7,11 @@
|
|||
"utils": "utils"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723391194,
|
||||
"narHash": "sha256-04UThV4LZNRHg/+GbEl7M2ginWbm8FrQ5jBVmYcroNg=",
|
||||
"lastModified": 1723500950,
|
||||
"narHash": "sha256-t1eApFGI+JzLIW2YToLlDV20n+Nevk1q4fZBYU1m93I=",
|
||||
"owner": "silver_rust",
|
||||
"repo": "bfom",
|
||||
"rev": "fffd69b6433a2d2fd359b92e3816ae9938b3e99c",
|
||||
"rev": "7f339f28442758ecc3f1697e3f70d441973664b9",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
|
@ -68,15 +68,16 @@
|
|||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1715413075,
|
||||
"narHash": "sha256-FCi3R1MeS5bVp0M0xTheveP6hhcCYfW/aghSTPebYL4=",
|
||||
"lastModified": 1756787288,
|
||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e4e7a43a9db7e22613accfeb1005cca1b2b1ee0d",
|
||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-unstable",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
|
|
77
flake.nix
77
flake.nix
|
@ -2,6 +2,7 @@
|
|||
description = "Skynet Presentations";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
|
||||
# nix flake lock --update-input bfom
|
||||
|
@ -20,30 +21,62 @@
|
|||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
bfom,
|
||||
...
|
||||
} @ inputs: let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
|
||||
in {
|
||||
# nix run
|
||||
apps.x86_64-linux.default = {
|
||||
type = "app";
|
||||
program = "${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom";
|
||||
};
|
||||
}: utils.lib.eachDefaultSystem (
|
||||
system: let
|
||||
pkgs = (import nixpkgs) {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
# `nix build`
|
||||
packages.x86_64-linux.default = pkgs.stdenv.mkDerivation {
|
||||
name = "slides.skynet.ie";
|
||||
src = self;
|
||||
buildPhase = "${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom";
|
||||
installPhase = "mkdir -p $out; cp -R build/* $out";
|
||||
};
|
||||
packages = with pkgs; [
|
||||
# For teh presentations themselves
|
||||
presenterm
|
||||
|
||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
name = "Skynet presentations env";
|
||||
nativeBuildInputs = [
|
||||
bfom.defaultPackage.x86_64-linux
|
||||
];
|
||||
};
|
||||
};
|
||||
# for exporting
|
||||
(pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
|
||||
# for exporting
|
||||
weasyprint
|
||||
]))
|
||||
# various languages to embed in it
|
||||
## Java
|
||||
# zulu24
|
||||
## C
|
||||
# gcc
|
||||
## rust
|
||||
# cargo
|
||||
# rustc
|
||||
## lua
|
||||
# lua
|
||||
## racket
|
||||
# racket
|
||||
## go
|
||||
# go
|
||||
];
|
||||
in rec {
|
||||
# `nix develop`
|
||||
devShell = pkgs.mkShell {
|
||||
packages = packages;
|
||||
PRESENTERM_CONFIG_FILE = "config.yaml";
|
||||
};
|
||||
});
|
||||
# @ inputs: let
|
||||
# pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
|
||||
# in {
|
||||
# # `nix build`
|
||||
# packages.x86_64-linux.default = pkgs.stdenv.mkDerivation {
|
||||
# name = "slides.skynet.ie";
|
||||
# src = self;
|
||||
# buildPhase = "${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom";
|
||||
# installPhase = "mkdir -p $out; cp -R build/* $out";
|
||||
# };
|
||||
#
|
||||
# devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
# name = "Skynet presentations env";
|
||||
# nativeBuildInputs = [
|
||||
# bfom.defaultPackage.x86_64-linux
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
|
88
slides/skynet/01_intro.md
Normal file
88
slides/skynet/01_intro.md
Normal file
|
@ -0,0 +1,88 @@
|
|||
---
|
||||
title: "Skynet"
|
||||
sub_title: "Introduction to Skynet"
|
||||
author: "Brendan Golden"
|
||||
theme:
|
||||
name: catppuccin-latte
|
||||
---
|
||||
|
||||
Skynet: Introduction
|
||||
=================================
|
||||
|
||||
<!-- alignment: center -->
|
||||
<!-- incremental_lists: true -->
|
||||
* Skynet is the UL Computer Society's computer cluster.
|
||||
* Has a long [history](https://2016.skynet.ie/history.html).
|
||||
* Older than the Society. (1992 vs 1994)
|
||||
* But alas good things always come to an end.
|
||||
* Due to *A Series of Unfortunate Events* we lost internet in Jan 2023
|
||||
* Turns out Wordpress got Wordpress'd and we had a *smol* spam problem.
|
||||
* ITD also wanted us to have all servers patched and up to date.
|
||||
|
||||
<!-- end_slide -->
|
||||
|
||||
|
||||
Skynet 3.0
|
||||
=================================
|
||||
|
||||
|
||||
<!-- column_layout: [2, 1] -->
|
||||
<!-- column: 0 -->
|
||||
<!-- incremental_lists: true -->
|
||||
* Gave us a chance to do a full rebuild.
|
||||
* Servers were delved Indiana Jones style.
|
||||
<!-- column: 1 -->
|
||||

|
||||
<!-- column: 0 -->
|
||||
* Backups were made.
|
||||
* Returned Summer 2023.
|
||||
* Powered by NixOS.
|
||||
* [Fully open source](https://forgejo.skynet.ie/Skynet/nixos).
|
||||
* Skynet now can compile and update itself.
|
||||
* Be not Afraid
|
||||
* Automation FTW!
|
||||
* Be not Afraid
|
||||
|
||||
<!-- end_slide -->
|
||||
|
||||
|
||||
What is on Skynet
|
||||
=================================
|
||||
|
||||
<!-- alignment: center -->
|
||||
<!-- incremental_lists: true -->
|
||||
* Email
|
||||
* DNS
|
||||
* Account Management
|
||||
* Forgejo + CI/CD runners
|
||||
* We *forge* software
|
||||
* Git host
|
||||
* Game Servers
|
||||
* Minecraft
|
||||
* TF2
|
||||
* CSGO
|
||||
* Discord Bots
|
||||
* Skynet
|
||||
* Our Discord Role Manager
|
||||
* T-800
|
||||
* Logging and monitoring
|
||||
* Clubs & Societies
|
||||
* Out in UL
|
||||
* https://outinul.ie
|
||||
* ULFM
|
||||
* Now gone
|
||||
* Websites
|
||||
* Our own
|
||||
* https://skynet.ie
|
||||
* https://2016.skynet.ie
|
||||
* https://2006.skynet.ie
|
||||
* https://2003.skynet.ie
|
||||
* https://1996.skynet.ie
|
||||
* User sites (https://silver.users.skynet.ie)
|
||||
|
||||
|
||||
<!-- end_slide -->
|
||||
|
||||
<!-- new_lines: 10 -->
|
||||
Always iterating, always improving.
|
||||
=================================
|
|
@ -1,99 +0,0 @@
|
|||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
title = "Skynet: Intro"
|
||||
date = 2023-09-23
|
||||
slides = true
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
# Skynet: Introduction
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Skynet is the UL Computer Society's computer cluster.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Has a long history: <<https://2016.skynet.ie/history.html>>.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Older than the Society. (1992 vs 1994)
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
But alas good things always come to an end.
|
||||
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Due to //A Series of Unfortunate Events// we lost internet in Jan 2023
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Turns out Wordpress got Wordpress'd and we had a //smol// spam problem.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
ITD also wanted us to have all servers patched and up to date.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
# Skynet 3.0
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Gave us a chance to do a full rebuild.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Servers were delved Indiana Jones style.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||

|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Backups were made.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Returned Summer 2023.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Powered by NixOS.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Fully open source: <<https://gitlab.skynet.ie/compsoc1/skynet/nixos>>
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Skynet now can compile and update itself.
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Be not Afraid
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Automation FTW!
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
How hosts:
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
* Email
|
||||
* Gitlab + CI/CD runners
|
||||
* Game Servers
|
||||
* Minecraft
|
||||
* ULFM
|
||||
* Websites
|
||||
* <<https://skynet.ie>>
|
||||
* User sites (<<https://silver.users.skynet.ie>>)
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Always iterating, always improving.
|
Loading…
Add table
Add a link
Reference in a new issue