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
#!/bin/bash | |
# Wallhaven API base URL | |
API_URL="https://wallhaven.cc/api/v1/search" | |
# Array of tags (use the tag id) | |
TAGS=( | |
"id:7435" # Makoto Shinkai | |
"id:54397" # Kimi no Na Wa | |
"id:5309" # The Garden of Words |
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
#!/bin/bash | |
sudo usermod -aG wheel arvigeus | |
echo "%wheel ALL=(ALL:ALL) ALL" | sudo tee /etc/sudoers.d/wheel | |
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99_wheel_nopasswd | |
sudo chmod 440 /etc/sudoers.d/wheel | |
sudo chmod 440 /etc/sudoers.d/99_wheel_nopasswd | |
sudo pacman -S --needed --noconfirm ufw | |
sudo systemctl enable ufw --now |
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
// https://stackblitz.com/edit/shopify-hydrogen-z8a9cx?file=package.json&title=Hydrogen |
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 { promises: fs } = require("fs"); | |
const path = require("path"); | |
interface FileInfo { | |
page: string; | |
lastModified: Date; | |
} | |
const pagesDir = `${process.cwd()}/src/pages/`; |
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 master = [ | |
100, | |
[ | |
200, | |
210, | |
220, | |
230, | |
[240, 241, 242, 243, 244, 245, [2450, 2451, 2452, 2454, 2454, 2455]], | |
250 | |
], |