about summary refs log tree commit diff
path: root/users/glittershark/gws.fyi
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-04-11T21·53-0400
committerglittershark <grfn@gws.fyi>2021-04-12T14·45+0000
commit6266c5d32f9ff651fcfc3a4cc0c68e89da56ca65 (patch)
tree5be3967585787c4456e17cb29423770217fdcede /users/glittershark/gws.fyi
parent968effb5dc1a4617a0dceaffc70e986abe300c6e (diff)
refactor(users/glittershark): Rename to grfn r/2485
Rename my //users directory and all places that refer to glittershark to
grfn, including nix references and documentation.

This may require some extra attention inside of gerrit's database after
it lands to allow me to actually push things.

Change-Id: I4728b7ec2c60024392c1c1fa6e0d4a59b3e266fa
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2933
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: lukegb <lukegb@tvl.fyi>
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'users/glittershark/gws.fyi')
-rw-r--r--users/glittershark/gws.fyi/.envrc1
-rw-r--r--users/glittershark/gws.fyi/.gitignore3
-rw-r--r--users/glittershark/gws.fyi/Makefile31
-rw-r--r--users/glittershark/gws.fyi/config.el6
-rw-r--r--users/glittershark/gws.fyi/default.nix31
-rw-r--r--users/glittershark/gws.fyi/index.org38
-rw-r--r--users/glittershark/gws.fyi/main.css132
-rw-r--r--users/glittershark/gws.fyi/orgExportHTML.nix54
-rw-r--r--users/glittershark/gws.fyi/shell.nix9
-rw-r--r--users/glittershark/gws.fyi/site.nix11
10 files changed, 0 insertions, 316 deletions
diff --git a/users/glittershark/gws.fyi/.envrc b/users/glittershark/gws.fyi/.envrc
deleted file mode 100644
index be81feddb1..0000000000
--- a/users/glittershark/gws.fyi/.envrc
+++ /dev/null
@@ -1 +0,0 @@
-eval "$(lorri direnv)"
\ No newline at end of file
diff --git a/users/glittershark/gws.fyi/.gitignore b/users/glittershark/gws.fyi/.gitignore
deleted file mode 100644
index 2b72eaed29..0000000000
--- a/users/glittershark/gws.fyi/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-result
-letsencrypt
-index.html
diff --git a/users/glittershark/gws.fyi/Makefile b/users/glittershark/gws.fyi/Makefile
deleted file mode 100644
index a21bfe7b87..0000000000
--- a/users/glittershark/gws.fyi/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-.PHONY: deploy
-
-deploy:
-	@$(shell nix-build `git rev-parse --show-toplevel` -A 'users.glittershark."gws.fyi"')
-
-renew:
-	@echo Renewing...
-	@certbot certonly \
-		--manual \
-		--domain www.gws.fyi \
-		--preferred-challenges dns \
-		--server https://acme-v02.api.letsencrypt.org/directory \
-		--agree-tos \
-		--work-dir $(shell pwd)/letsencrypt/work \
-		--logs-dir $(shell pwd)/letsencrypt/logs \
-		--config-dir $(shell pwd)/letsencrypt/config
-	@echo "Reimporting certificate"
-	@aws acm import-certificate \
-	    --profile personal \
-	    --certificate file://letsencrypt/config/live/www.gws.fyi/cert.pem \
-	    --certificate-chain file://letsencrypt/config/live/www.gws.fyi/fullchain.pem \
-	    --private-key file://letsencrypt/config/live/www.gws.fyi/privkey.pem \
-	    --certificate-arn arn:aws:acm:us-east-1:797089351721:certificate/628e54f3-55f9-49c0-811a-eba516b68e30 \
-		--region us-east-1
-
-backup:
-	@tarsnap -cf $(shell uname -n)-letsencrypt-$(shell date +%Y-%m-%d_%H-%M-%S) \
-		letsencrypt/
-
-open:
-	$$BROWSER "https://www.gws.fyi"
diff --git a/users/glittershark/gws.fyi/config.el b/users/glittershark/gws.fyi/config.el
deleted file mode 100644
index b05d897d3d..0000000000
--- a/users/glittershark/gws.fyi/config.el
+++ /dev/null
@@ -1,6 +0,0 @@
-(require 'org)
-
-(setq org-html-postamble nil)
-
-(defadvice org-export-grab-title-from-buffer
-    (around org-export-grab-title-from-buffer-disable activate))
diff --git a/users/glittershark/gws.fyi/default.nix b/users/glittershark/gws.fyi/default.nix
deleted file mode 100644
index ef3ef6c570..0000000000
--- a/users/glittershark/gws.fyi/default.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-args@{ pkgs, ... }:
-with pkgs;
-let
-  site = import ./site.nix args;
-  resume = import ../resume args;
-  bucket = "s3://gws.fyi";
-  distributionID = "E2ST43JNBH8C64";
-
-  css = runCommand "main.css" {
-    buildInputs = [ pkgs.minify ];
-  } ''
-    minify --type css < ${./main.css} > $out
-  '';
-
-  website =
-    runCommand "gws.fyi" { } ''
-      mkdir -p $out
-      cp ${css} $out/main.css
-      cp ${site.index} $out/index.html
-      cp ${resume} $out/resume.pdf
-    '';
-
-in (writeShellScript "deploy.sh" ''
-  ${awscli}/bin/aws --profile personal s3 sync ${website}/ ${bucket}
-  ${awscli}/bin/aws --profile personal cloudfront create-invalidation \
-    --distribution-id "${distributionID}" \
-    --paths "/*"
-  echo "Deployed to http://gws.fyi"
-'') // {
-  inherit website;
-}
diff --git a/users/glittershark/gws.fyi/index.org b/users/glittershark/gws.fyi/index.org
deleted file mode 100644
index 0886192abf..0000000000
--- a/users/glittershark/gws.fyi/index.org
+++ /dev/null
@@ -1,38 +0,0 @@
-#+OPTIONS: title:nil toc:nil num:nil
-#+HTML_HEAD: <title>griffin smith</title>
-#+HTML_HEAD: <link rel="stylesheet" href="./main.css">
-
-my name is griffin ward smith (aka grfn, glittershark, gws) and i'm a software
-engineer and musician
-
-* code
-
-- [[https://github.com/glittershark/][github]]
-- [[https://cs.tvl.fyi/depot/-/tree/users/glittershark][my directory in the tvl monorepo]]
-
-* work
-
-i'm currently working for a relatively new stealth-mode startup. i can't talk much
-about it yet, but if you're interested in rust, distributed systems, and
-databases please reach out
-
-* projects
-
-- [[https://windtunnel.ci/][windtunnel]], a continuous benchmarking software-as-a-service currently accepting early alpha users (send me an email if you want to try it out!)
-- [[https://cs.tvl.fyi/depot/-/tree/users/glittershark/achilles][achilles]], a compiler for (what I plan to become) a dependently typed, low-level functional programming language targeting LLVM
-- [[https://github.com/glittershark/org-clubhouse][org-clubhouse]], an emacs package for lightweight integration between [[https://orgmode.org/][org-mode]] and [[https://clubhouse.io/][the clubhouse project management tool]]
-- [[https://cs.tvl.fyi/depot/-/tree/users/glittershark/xanthous][xanthous]], a terminal roguelike in haskell that I work on intermittently and exclusively for fun
-
-* music
-
-- https://sacrosanct.bandcamp.com/, a post-rock project with a [[https://bandcamp.com/h34rken][friend of mine]]
-- [[https://soundcloud.com/missingggg][my current soundcloud]], releasing instrumental hip-hop under the name *missing*
-- you can also find a log of all the music I listen to [[https://www.last.fm/user/wildgriffin45][on last.fm]]
-
-* contact
-
-- [[mailto:web@gws.fyi][web@gws.fyi]]
-- [[https://twitter.com/glittershark1][twitter]]
-- https://keybase.io/glittershark
-- grfn on freenode
-- [[http://keys.gnupg.net/pks/lookup?op=get&search=0x44EF5B5E861C09A7][gpg key: 0F11A989879E8BBBFDC1E23644EF5B5E861C09A7]]
diff --git a/users/glittershark/gws.fyi/main.css b/users/glittershark/gws.fyi/main.css
deleted file mode 100644
index 26423f18f1..0000000000
--- a/users/glittershark/gws.fyi/main.css
+++ /dev/null
@@ -1,132 +0,0 @@
-@import url(https://fonts.googleapis.com/css?family=Inconsolata|Inter&display=swap);
-
-body {
-  margin-top: 40px;
-  max-width: 900px;
-  line-height: 1.6;
-  font-size: 16px;
-  background: #f8f3ff;
-  color: #3a1616;
-  padding: 0 10px;
-  font-family: Inter, sans-serif;
-}
-
-@media (min-width: 1050px) {
-  body {
-    margin-left: 150px;
-  }
-}
-
-@media (min-width: 2000px) {
-  body {
-    margin-left: 300px;
-  }
-}
-
-input {
-  padding: 10px 16px;
-  margin: 2px 0;
-  box-sizing: border-box;
-  border: 2px solid #dabebe;
-  border-radius: 6px;
-  background: #f8f3ff;
-  color: #3a1616;
-  font-size: 16px;
-  -webkit-transition: 0.5s;
-  transition: 0.5s;
-  outline: 0;
-}
-
-input:focus {
-  border: 2px solid #3a1616;
-}
-
-.button {
-  background-color: #f8f3ff;
-  border: none;
-  color: #000;
-  padding: 6px 14px;
-  text-align: center;
-  text-decoration: none;
-  display: inline-block;
-  font-size: 16px;
-  margin: 4px 2px;
-  transition-duration: 0.4s;
-  cursor: pointer;
-  border: 2px solid #3a1616;
-  border-radius: 6px;
-}
-
-.button:hover {
-  background-color: #3a1616;
-  color: #fff;
-}
-
-.isa_error,
-.isa_info,
-.isa_success,
-.isa_warning {
-  width: 90%;
-  margin: 10px 0;
-  padding: 12px;
-}
-
-.isa_info {
-  color: #00529b;
-  background-color: #bde5f8;
-}
-
-.isa_success {
-  color: #4f8a10;
-  background-color: #dff2bf;
-}
-
-.isa_warning {
-  color: #9f6000;
-  background-color: #feefb3;
-}
-
-.isa_error {
-  color: #d8000c;
-  background-color: #ffd2d2;
-}
-
-h1,
-h2,
-h3 {
-  line-height: 1.2;
-  font-family: Inter, sans-serif;
-}
-
-h2 {
-  font-size: 18px;
-}
-
-img {
-  max-width: 750px;
-  border-radius: 10px;
-}
-
-a {
-  cursor: pointer;
-  color: #217ab7;
-  line-height: inherit;
-}
-
-a:hover {
-  background-color: #e3d6ff;
-}
-
-a:visited {
-  color: #43458b;
-  border-color: #43458b;
-}
-
-pre {
-  font-family: Inconsolata, monospace;
-}
-
-::selection {
-  color: #fff;
-  background: #ff4081;
-}
diff --git a/users/glittershark/gws.fyi/orgExportHTML.nix b/users/glittershark/gws.fyi/orgExportHTML.nix
deleted file mode 100644
index ad5a247958..0000000000
--- a/users/glittershark/gws.fyi/orgExportHTML.nix
+++ /dev/null
@@ -1,54 +0,0 @@
-{ pkgs, ... }:
-
-with pkgs;
-with lib;
-
-let
-
-  emacsWithPackages = (pkgs.emacsPackagesGen pkgs.emacs27).emacsWithPackages;
-
-  emacs = emacsWithPackages (p: with p; [
-    org
-  ]);
-
-in
-
-opts:
-
-let
-  src = if isAttrs opts then opts.src else opts;
-  headline = if isAttrs opts then opts.headline else null;
-
-  bn = builtins.baseNameOf src;
-  filename = elemAt (splitString "." bn) 0;
-
-  outName =
-    if isNull headline
-    then
-      let bn = builtins.baseNameOf src;
-          filename = elemAt (splitString "." bn) 0;
-      in filename + ".html"
-    else "${filename}-${replaceStrings [" "] ["-"] filename}.html";
-
-  escapeDoubleQuotes = replaceStrings ["\""] ["\\\""];
-
-  navToHeadline = optionalString (! isNull headline) ''
-    (search-forward "${escapeDoubleQuotes headline}")
-    (org-narrow-to-subtree)
-  '';
-
-in
-
-runCommand outName {} ''
-  cp ${src} file.org
-  echo "${emacs}/bin/emacs --batch"
-  ${emacs}/bin/emacs --batch \
-    --load ${./config.el} \
-    --visit file.org \
-    --eval "(progn
-      ${escapeDoubleQuotes navToHeadline}
-      (org-html-export-to-html))" \
-    --kill
-  substitute file.html $out \
-    --replace '<title>&lrm;</title>' ""
-''
diff --git a/users/glittershark/gws.fyi/shell.nix b/users/glittershark/gws.fyi/shell.nix
deleted file mode 100644
index 846bdb6677..0000000000
--- a/users/glittershark/gws.fyi/shell.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-with import <nixpkgs> { config.allowUnfree = true; };
-mkShell {
-  buildInputs = [
-    awscli
-    gnumake
-    letsencrypt
-    tarsnap
-  ];
-}
diff --git a/users/glittershark/gws.fyi/site.nix b/users/glittershark/gws.fyi/site.nix
deleted file mode 100644
index a74bee0bef..0000000000
--- a/users/glittershark/gws.fyi/site.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-args@{ pkgs ? import <nixpkgs> {}, ... }:
-
-let
-
-  orgExportHTML = import ./orgExportHTML.nix args;
-
-in
-
-{
-  index = orgExportHTML ./index.org;
-}