A few light touches to improve the experience of finding and reading the documentation on freedesktop.org.
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 | |
# ----------------------------------------------------------------------------- | |
# _____ _ _ _ | |
# /__ \__ _(_) |___ ___ __ _| | ___ | |
# / /\/ _` | | / __|/ __/ _` | |/ _ \ | |
# / / | (_| | | \__ \ (_| (_| | | __/ | |
# \/ \____|_|_|___/\___\__,_|_|\___| _ _ | |
# ,d88b.d88b, / _\ |_ ___ __ _ _ __ ___ __| | ___ ___| | __ | |
# 88888888888 \ \| __/ _ \/ _` | '_ ` _ \ / _` |/ _ \/ __| |/ / | |
# `Y8888888Y' _\ \ || __/ (_| | | | | | | (_| | __/ (__| < |
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/sh | |
DOMAIN='______.ts.net' | |
PASSWORD="____" | |
tailscale_cert="$HOME/Library/Containers/io.tailscale.ipn.macos/Data/${DOMAIN}.crt" | |
tailscale_key="$HOME/Library/Containers/io.tailscale.ipn.macos/Data/${DOMAIN}.key" | |
plex_cert="$HOME/Application Support/Plex Media Server/https.p12" | |
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/sh | |
set -e | |
ext=".$(basename "$1" | rev | cut -d'.' -f1 | rev)" | |
fname="$(basename "$1" "$ext")" | |
width="$(identify -format "%w" "$1")" | |
height="$(identify -format "%h" "$1")" |
A modern re-styling of the Hacker News front page, including automatic light/dark mode.
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
locals { | |
org_id = "" | |
project_id = "" | |
} | |
resource "google_service_account" "doit" { | |
account_id = "doit-management" | |
display_name = "DoiT Service Account" | |
project = local.project_id | |
} |
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 | |
############################################################################## | |
# An rclone backup script by Chris Tippett ([email protected]) | |
# | |
# Originally adapted from the great work by Jared Males ([email protected]) | |
# https://gist.github.com/jaredmales/2f732254bb10002fc0549fa9aa0abdd7 | |
# | |
# Copyright (C) 2020 Chris Tippett ([email protected]) | |
# |
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/sh -e | |
IGNORE_FILES=$(ls -p | grep -v /) | |
TRACKING_BUCKET="$COMMIT_STATE_BUCKET/$REPO_NAME/$BRANCH_NAME" | |
detect_changed_folders() { | |
gsutil cp gs://$TRACKING_BUCKET/LAST_COMMIT . &> /dev/null || true | |
last_commit_sha=`cat LAST_COMMIT 2> /dev/null || git rev-list --max-parents=0 HEAD` | |
echo "Detecting changes from last build: $last_commit_sha" | |
folders=`git diff --name-only "$last_commit_sha" | sort -u | awk 'BEGIN {FS="/"} {print $1}' | uniq` | |
export changed_components=$folders |
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/sh | |
JOB_ID=$1 | |
SLEEP_TIME=10 | |
echo "Polling status for Dataflow job: ${JOB_ID}" | |
check_job_status() { | |
echo "${JOB_STATUS}" | grep "JOB_STATE_DONE\|JOB_STATE_CANCELLED\|JOB_STATE_FAILED\|JOB_STATE_DRAINED\|^$" > /dev/null | |
GREP_RETURN_CODE=$? | |
if [ ${GREP_RETURN_CODE} -eq 0 ] | |
then |
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 uuid | |
from google.cloud import storage | |
from google.cloud.storage import blob, bucket | |
client = storage.Client() | |
BUCKETS = [ | |
"bucket-a", |
NewerOlder