I hereby claim:
- I am mrjk on github.
- I am mrjk (https://keybase.io/mrjk) on keybase.
- I have a public key whose fingerprint is 6684 1AF5 79E5 D08F FE31 0636 AE08 F1AE E051 5AEC
To claim this, I am signing this object:
| #!/usr/bin/python3 | |
| # | |
| # Migrated to: https://github.com/mrjk/python_components/blob/main/helpers/slack_notify.py | |
| # | |
| # Documentation | |
| # ============================= | |
| # | |
| # This little script to easily send slack notifications. | |
| # Tiger's team webhooks are configured here: https://XXX.slack.com/apps/YYY-incoming-webhooks | |
| # |
| yaml2json () | |
| { | |
| python -c 'import yaml, json, sys ; print(json.dumps(yaml.safe_load(sys.stdin.read())))' | |
| } | |
| json2yaml () | |
| { | |
| python -c 'import yaml, json, sys; print(yaml.dump(yaml.safe_load(sys.stdin.read()), indent=2))' input.yaml | |
| } |
| #!/usr/bin/env python3 | |
| # Migrated to: https://github.com/mrjk/python_snippets/blob/main/examples/argparse/cli-app-argparse.py | |
| # Run like this: | |
| # python3 python_cli.py -vvvv demo | |
| # Author: mrjk | |
| import os | |
| import sys |
| #!/usr/bin/python3 | |
| # Migrated to: https://github.com/mrjk/python_snippets/blob/main/examples/argparse/cli-app-argparse-multilevel.py | |
| # Source: https://stackoverflow.com/questions/11760578/argparse-arguments-nesting | |
| import argparse | |
| parser = argparse.ArgumentParser(description='Deployment tool') | |
| subparsers = parser.add_subparsers() |
| #!/usr/bin/env ruby | |
| # Requirements: | |
| # - A PulseAudio server running at the host in TO below. | |
| # - SoundFlower installed | |
| # - ESound installed (on mac, brew install esound) | |
| # Select SoundFlower (2ch) as both Input AND Output devices, then run "streamit start" | |
| # otherwise you don't have to worry about anything; it's a daemon, will run in the background, | |
| # once you're finished just kill esd or run "streamit stop" |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # pgpool-II replication manager | |
| # | |
| # Interfaces with pgpool's pcp command-line tools to provide access to common functions for managing | |
| # load-balancing and failover. | |
| # | |
| # mrjk.78 at the famous google mail | |
| # 2014-10-13 | |
| # [email protected] |