This file contains hidden or 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 python3 | |
"""Yeelight color setter.""" | |
import argparse as arg | |
import functools as func | |
import pathlib as path | |
import sys | |
import yeelight as y |
This file contains hidden or 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 -S uv run --script | |
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "yeelight", | |
# ] | |
# /// | |
"""Switch Yeelight bulb on or off.""" |
This file contains hidden or 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 -S uv run --script | |
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "numpy", | |
# "yeelight", | |
# ] | |
# /// | |
"""Yeelight flow controller.""" |
This file contains hidden or 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 -S uv run --script | |
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "numpy", | |
# "PythonTurtle", | |
# ] | |
# /// | |
# `brew install python-tk` |
This file contains hidden or 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 -S uv run --script | |
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "numpy", | |
# "PythonTurtle", | |
# ] | |
# /// | |
# `brew install python-tk` |
This file contains hidden or 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 -S uv run --script | |
# /// script | |
# requires-python = ">=3.13" | |
# dependencies = [ | |
# "PythonTurtle", | |
# ] | |
# /// | |
# `brew install python-tk` | |
import argparse |
This file contains hidden or 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
# Get JENKINS_SESSION_COOKIE='JSESSIONID.[...]=[...]' from browser cookie jar for $JENKINS_URL while logged in | |
# This is in lieu of $JENKINS_URL/crumbIssuer/api/json?pretty=true not being usable | |
curl \ | |
-H "cookie: $JENKINS_SESSION_COOKIE" \ | |
-F "jenkinsfile=<$JENKINSFILE_PATH" \ | |
$JENKINS_URL/pipeline-model-converter/validate |
This file contains hidden or 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
<html> | |
<head> | |
<title>S04E05</title> | |
<style type="text/css"> | |
* { | |
margin: 0; | |
padding: 0; | |
background: black; | |
} | |
</style> |
This file contains hidden or 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
export PS1='\n$([[ $(jobs | wc -l) -gt 0 ]] && printf '\''<\j> '\'')[\e[1m\u\e[0m] \w\n \[\e[1m\]\$\[\e[0m\] ' |