$ sudo -E env "PATH=$PATH" npx playwright install-deps
Installing dependencies...
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:2 https://dl.google.com/linux/chrome/deb stable InRelease [1825 B]
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
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
<%* | |
const app = this.app; | |
const dv = app.plugins.plugins["dataview"].api; | |
// general metadata | |
const dob = await tp.user.chooseDate(tp, "Date of Birth"); | |
const characterGender = await tp.system.suggester(["Male", "Female", "Non-binary"], ["Male", "Female", "Non-binary"], false, "Character's gender") | |
const characterOrientation = await tp.system.suggester(["Straight", "Gay", "Bi", "Unknown"], ["Heterosexual", "Homosexual", "Bisexual", "N/A"], false, "Character's sexual orientation") | |
const characterRole = await tp.system.suggester(["Main Character", "Major Character (Non-POV)", "Side Character", "Extra Character", "Antagonist"], ["_Main", "_Major", "_Side", "_Extra", "_Antagonist"], false, "Character's role in story") | |
// process if character is dead | |
let isDead = await tp.system.suggester(["True", "False"], [true, false], false, "Is the character dead?"); |
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
//<%* | |
const app = this.app; | |
const dv = app.plugins.plugins["dataview"].api; | |
// general metadata | |
const dob = await tp.user.chooseDate(tp, "Date of Birth"); | |
const characterGender = await tp.system.suggester(["Male", "Female", "Non-binary"], ["Male", "Female", "Non-binary"], false, "Character's gender") | |
const characterOrientation = await tp.system.suggester(["Straight", "Gay", "Bi", "Unknown"], ["Heterosexual", "Homosexual", "Bisexual", "N/A"], false, "Character's sexual orientation") | |
const characterRole = await tp.system.suggester(["Main Character", "Major Character (Non-POV)", "Side Character", "Extra Character", "Antagonist"], ["_Main", "_Major", "_Side", "_Extra", "_Antagonist"], false, "Character's role in story") | |
// process if character is dead | |
let isDead = await tp.system.suggester(["True", "False"], [true, false], false, "Is the character dead?"); |
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
--- | |
<%* let isDead = await tp.system.suggester(["True", "False"], [true, false], false, "Is the character dead?"); %> | |
<%* tR = `dead: ${isDead}` %> | |
<%* if (isDead) { %> | |
<%* tR += `dod: ${await tp.user.chooseDate(tp, 'Date of Death')}\n` %> | |
<%* } %> | |
--- |
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
{ | |
description = "Custom builds of Iosevka"; | |
inputs = { | |
nixpkgs.url = "nixpkgs/nixpkgs-unstable"; | |
systems.url = "github:nix-systems/x86_64-linux"; | |
flake-utils = { | |
url = "github:numtide/flake-utils"; | |
inputs.systems.follows = "systems"; | |
}; |
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
{config, pkgs, lib, ...}: | |
{ | |
imports = [ | |
./plugins/which-key.nix | |
./plugins/nix-colors.nix | |
]; | |
programs.neovim = { | |
vimAlias = true; | |
viAlias = true; |
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
--- | |
import { getCollection, CollectionEntry } from "astro:content"; | |
import Layout from "../../layouts/Layout.astro"; | |
export async function getStaticPaths() { | |
const posts = await getCollection('blog'); | |
return posts.map((post) => { | |
const year = post.data.date.getFullYear(); | |
post.slug = `/${year}/${post.slug}`; |
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
<aside class="infobox"> | |
<header class="w-full text-lg text-center font-bold p-1 bg-blue-500 text-white">Infobox Title</header> | |
<figure class="!my-0"> | |
<img src="https://images.unsplash.com/photo-1632951634308-d7889939c125" alt="" class="object-cover h-60" /> | |
<figcaption class="text-center md:!my-auto text-gray-600">Some woods and a river.</figcaption> | |
</figure> | |
<table class="w-full"> | |
<tr> | |
<td class="first:!pl-2 first:font-bold">Born</td> | |
<td class="!pr-0 !py-0">02 Jan. 1106</td> |
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 bash | |
dos2unix $HOME/josevka/* &>/dev/null | |
IOSEVKA_VER="$(awk 'NR==1{print $2}' $HOME/josevka/build.org)" | |
FAMILY="$(rg '\[buildPlans.(josevka[a-z-]{0,})\]' $HOME/josevka/build.org | sed 's/]//g' | cut -d'.' -f2 | fzf | xargs)" | |
docker run -e "FONT_VERSION=$IOSEVKA_VER" -it -v "$HOME/josevka":/build avivace/iosevka-build ttf::$FAMILY | |
#case $FAMILY in | |
# "josevka") | |
# docker run -v $HOME/josevka/dist/josevka/ttf:/in -v $HOME/josevka/patched/josevka:/out nerdfonts/patcher -c -l -q --careful --no-progressbars;; | |
# |
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
echo "Installing global packages now..." | |
sudo pacman -Syu python-setuptools python-pip dunst zsh geoclue rofimoji rofi-pass rofi-calc emacs | |
yay -S qtile-extras-git | |
echo "Changing shell to zsh" | |
chsh -s /bin/zsh | |
printf "Installing Nix and Home Manager\n" | |
sh <(curl -L https://nixos.org/nix/install) --daemon | |
echo 'export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}' >> ~/.profile && source ~/.profile | |
if [[ ! -d "$HOME/.config/doom" ]]; then |
NewerOlder