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
diff -u --recursive --new-file v1.1.41/linux/kernel/sched.c linux/kernel/sched.c | |
--- v1.1.41/linux/kernel/sched.c Wed Aug 3 09:32:33 1994 | |
+++ linux/kernel/sched.c Tue Aug 9 09:34:45 1994 | |
@@ -161,7 +161,7 @@ | |
* information in task[0] is never used. | |
* | |
* The "confuse_gcc" goto is used only to get better assembly code.. | |
- * Djikstra probably hates me. | |
+ * Dijkstra probably hates me. | |
*/ |
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 | |
"""Emit an hash on stdout of a dockerfile and the files added by it. | |
- Dockerfile comments don't affect the hash value. | |
- If a directory is added by dockerfile, only the git-versioned files are | |
included in the hash. | |
- A single file hash matches md5sum result. | |
""" | |
import os |
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 | |
"""Render a view of the k8s status in a namespace. | |
Example: | |
# Display the state in console | |
k8splore.py -n my-ns -c my-cx --format text | |
# Display the state as a graph, with some nodes omitted. | |
k8splore.py -n my-ns -c my-cx --drop-kind ReplicaSet Pod Job \\ |
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
#!/bin/bash | |
# A backup solution based on rsync with hard links and no deletion of old images | |
# Deletion would be delegated to a script such as weeder | |
# https://pypi.org/project/weeder/ | |
set -euo pipefail | |
set -x | |
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
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
""" | |
A quick test to try and run psycopg3 with anyio | |
""" | |
import anyio | |
from psycopg3 import exceptions as exc | |
from psycopg3.waiting import Wait, Ready | |
from psycopg3.connection import AsyncConnection | |
import logging |
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
r"""Implementation of a `stan`_\ -like XML description language. | |
.. _stan: http://www.kieranholland.com/code/documentation/nevow-stan/ | |
An example XHTML page can be generated by: | |
.. python:: | |
def items(): | |
return [ T.li['foo'], T.li['bar'], T.li['baz'] ] |
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 | |
""" | |
Apply database patches. | |
Applied patches are recorded in the schema_patch table of the database. | |
The dsn to connect to defaults to a local one (empty connection string). It can | |
be chosen using the command line or an environment variable. Patches | |
application is interactive by default. |
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
#!/bin/bash | |
# Return the ip address for a container in docker-compose | |
set -euo pipefail | |
# set -x | |
if [[ "${1:-}" == "" ]]; then | |
echo "usage: $0 container |
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
name: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
tests-python: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.