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 requests | |
import urllib3.util.url | |
# ref: Lyle at https://github.com/psf/requests/issues/6115#issuecomment-1172198984 | |
def hook_invalid_chars(component, allowed_chars): | |
# handle url encode here, or do nothing | |
return component | |
# Method1: |
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
name: Testing CI/CD with GitHub Actions | |
# Simple test leveraging `echo` to do nothing special other than show job was triggered | |
# | |
# Use case: skip 'docker' job since normal contributors cannot access repo secrets (and the job fails) | |
# REFERENCES: | |
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows | |
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions | |
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs | |
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions |
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
# Credit: https://github.com/planetoftheweb/podcast-generator/pull/2 | |
FROM ubuntu:latest | |
RUN apt-get update && \ | |
apt-get install -y \ | |
python3.10 \ | |
python3-pip \ | |
python3-venv \ | |
git |
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 | |
profiles_path='org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:' | |
prof=$(gsettings get org.gnome.Terminal.ProfilesList default | awk -F\' '{print $2}') | |
name=$(gsettings get "$profiles_path/:$prof/" visible-name) | |
size=20 | |
font="'Monospace $size'" | |
# echo -e "$profiles_path/:$prof/" |