Skip to content

Instantly share code, notes, and snippets.

View nmschulte's full-sized avatar

Nathan Schulte nmschulte

  • so many tubes ...
View GitHub Profile
#!/usr/bin/env bash
# builds Sway w/ wlroots as "subproject" ("dev build configuration")
# may fail unexpectedly if the repositories are not in a suitable state
SWAY_DIR=$HOME/src/sway
WLROOTS_DIR=$SWAY_DIR/../wlroots
LIBSEAT_DIR=$SWAY_DIR/../seatd
cd $LIBSEAT_DIR
@nmschulte
nmschulte / nfsn.api.sh
Last active January 29, 2023 23:04
NearlyFreeSpeech.NET API request "library", in pure shell (requires sha1sum and curl)
#!/usr/bin/env sh
# Copyright © 2022 Nathan Schulte
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
# nfsn.api.sh --