diff options
Diffstat (limited to 'users/glittershark/gws.fyi')
-rw-r--r-- | users/glittershark/gws.fyi/.envrc | 1 | ||||
-rw-r--r-- | users/glittershark/gws.fyi/.gitignore | 2 | ||||
-rw-r--r-- | users/glittershark/gws.fyi/Makefile | 30 | ||||
-rw-r--r-- | users/glittershark/gws.fyi/config.el | 6 | ||||
-rw-r--r-- | users/glittershark/gws.fyi/default.nix | 19 | ||||
-rw-r--r-- | users/glittershark/gws.fyi/index.org | 22 | ||||
-rw-r--r-- | users/glittershark/gws.fyi/orgExportHTML.nix | 54 | ||||
-rw-r--r-- | users/glittershark/gws.fyi/shell.nix | 9 | ||||
-rw-r--r-- | users/glittershark/gws.fyi/site.nix | 11 |
9 files changed, 0 insertions, 154 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 7783c2834f..0000000000 --- a/users/glittershark/gws.fyi/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -result -letsencrypt diff --git a/users/glittershark/gws.fyi/Makefile b/users/glittershark/gws.fyi/Makefile deleted file mode 100644 index 83b60ef9bb..0000000000 --- a/users/glittershark/gws.fyi/Makefile +++ /dev/null @@ -1,30 +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 \ - --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 333f56f7bc..0000000000 --- a/users/glittershark/gws.fyi/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -args@{ pkgs, ... }: -with pkgs; -let - site = import ./site.nix args; - bucket = "s3://gws.fyi"; - distributionID = "E2ST43JNBH8C64"; - website = - runCommand "gws.fyi" { } '' - mkdir -p $out - cp ${site.index} $out/index.html - ''; - -in writeShellScript "deploy.sh" '' - ${awscli}/bin/aws s3 sync ${website}/ ${bucket} - ${awscli}/bin/aws cloudfront create-invalidation \ - --distribution-id "${distributionID}" \ - --paths "/*" - echo "Deployed to http://gws.fyi" -'' diff --git a/users/glittershark/gws.fyi/index.org b/users/glittershark/gws.fyi/index.org deleted file mode 100644 index a9413a69ba..0000000000 --- a/users/glittershark/gws.fyi/index.org +++ /dev/null @@ -1,22 +0,0 @@ -#+OPTIONS: title:nil -#+HTML_HEAD: <title>griffin smith</title> - -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]] - -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/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>‎</title>' "" -'' diff --git a/users/glittershark/gws.fyi/shell.nix b/users/glittershark/gws.fyi/shell.nix deleted file mode 100644 index 41c77d3b80..0000000000 --- a/users/glittershark/gws.fyi/shell.nix +++ /dev/null @@ -1,9 +0,0 @@ -with import <nixpkgs> {}; -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; -} |