Make sure you have installed the following commands:
- swaymsg
- jq
- slurp
- awk
GitHub Projects Beta aka GitHub Projects Next aka GitHub ProjectNext is now known as GitHub ProjectV2 in the API.
It's not immediately obvious how to use the new API, especially if you're coming from the old beta API.
You no longer need to set the HTTP header: GraphQL-Features: projects_next_graphql
.
You still need to add your GitHub personal access token to the Authorization
header, e.g. Authorization: Basic ghp_...
#!/bin/sh | |
COMMAND="op read $OP_PIN_ITEM" | |
echo "OK" | |
while read cmd rest; do | |
echo "cmd=$cmd rest=$rest" >&2 | |
echo "cmd=$cmd rest=$rest" >> $LOG | |
case "$cmd" in | |
\#*) |
This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like
pipewire-debian
, you might get into conflicts.
Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.
Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.
Based on Debian Wiki, but simplified for Ubuntu 22.04.
#!/bin/bash | |
# from https://gist.github.com/kovetskiy/a4bb510595b3a6b17bfd1bd9ac8bb4a5#gistcomment-3367404 | |
set -o pipefail | |
Help=$(cat <<-"HELP" | |
my-script — does one thing well | |
Usage: |
<!DOCTYPE html> | |
<html lang="en" class="dark"> | |
<head><!-- head stuff --></head> | |
<body class="h-screen bg-gray-100 dark:bg-gray-900 text-gray-800 dark:text-grey-200 font-sans transition transition-colors ease-out"> | |
<main role="main" class="container mx-auto"> | |
<div x-data="{text: ['Light', 'Dark']}"> | |
<button | |
class="border p-2 font-bold bg-gray-900 dark:bg-white text-white dark:text-grey-900" | |
@click="document.documentElement.classList.toggle('dark'); text = text.reverse()" | |
x-text="text[0]" |
#!/bin/bash | |
### | |
### my-script — does one thing well | |
### | |
### Usage: | |
### my-script <input> <output> | |
### | |
### Options: | |
### <input> Input file to read. | |
### <output> Output file to write. Use '-' for stdout. |
# Step 1 | |
def create_subscription(email, plan_id, payment_method_id) do | |
with %User{customer_id: nil, name: name} = user <- | |
Repo.get_by(User, email: email), | |
{:ok, %Stripe.Customer{id: customer_id}} <- | |
Stripe.Customer.create(%{ | |
name: name, | |
email: email, | |
payment_method: payment_method_id, |
#!/bin/bash | |
# Recommended steps: | |
# | |
# bootstrap before entering chroot | |
# copy this script into INSTALL_DIR | |
# rootinit after entering chroot | |
# x (if installing graphics) | |
# pkgs | |
# xpkgs (if installing graphics) |