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 bash | |
set -euxo pipefail | |
host=${1?The first argument needs to be an SSH remote host.} | |
volume=${2?The second argument needs to be a Docker volume name.} | |
docker run --rm -v ${volume}:/from alpine ash -c \ | |
'cd /from ; tar -cf - . ' | \ | |
ssh ${host} \ |
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 bash | |
set -euxo pipefail | |
host=${1?The first argument needs to be an SSH remote host.} | |
volume=${2?The second argument needs to be a Docker volume name.} | |
ssh ${host} \ | |
"docker run --rm -v ${volume}:/from alpine ash -c 'cd /from ; tar -cf - . '" | \ | |
docker run --rm -i -v ${volume}:/to alpine ash -c 'cd /to ; tar -xpvf - ' |
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 | |
# Copyright (c) 2020, Moritz E. Beber. | |
"""Copy entire directory trees and keep trying on errors.""" | |
import argparse | |
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
#!/usr/bin/env python | |
# Copyright (c) 2021 Moritz E. Beber | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
# |
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
U acos | |
0000000000ae1fc0 T adler32 | |
0000000000ae2450 T adler32_combine | |
0000000000925fd0 T AlgebraicRule_clone | |
0000000000925ea0 T AlgebraicRule_create | |
0000000000925f30 T AlgebraicRule_createWithNS | |
0000000000925fb0 T AlgebraicRule_free | |
0000000000926010 T AlgebraicRule_getFormula | |
0000000000925ff0 T AlgebraicRule_getMath | |
0000000000926170 T AlgebraicRule_hasRequiredAttributes |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import functools | |
from events import Events # Note you must pip install events | |
class set_event: | |
"""Define a class-based setter method decorator.""" | |
def __init__(self, func, event): | |
super().__init__() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Copyright 2011-2019 Moritz Emanuel Beber | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
# | |
# 2. Redistributions in binary form must reproduce the above copyright notice, | |
# this list of conditions and the following disclaimer in the documentation |
NewerOlder