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:
#!/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] |
I hereby claim:
To claim this, I am signing this object:
#!/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" |
#!/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 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 |
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/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 | |
# |
#!/bin/bash | |
# | |
# Libvirt Hook Wrapper | |
# ========================= | |
# Little tool to manage libivrt hooks in an easy way. | |
# | |
# Documentation: | |
# --------------- | |
# - https://libvirt.org/hooks.html | |
# |
#!/bin/bash | |
# Tooling: Debian | |
# apt install smartmontools sysstat hdparm | |
# Sata infos | |
# SATA revision 1.0 => 1.5 Gbit/s, 150 MB/s | |
# SATA revision 2.0 => 3 Gbit/s, 300 MB/s | |
# SATA revision 3.0 => 6 Gbit/s, 600 MB/s | |
# SATA revision 3.2 => 16 Gbit/s, 1969 MB/s |
#!/bin/bash | |
# Author: https://gist.github.com/mrjk/ | |
# License: MIT | |
IODINE_PASS=mypass | |
IODINE_DOMAIN=t.mydomain.org | |
IODINE_GW=10.18.0.1 | |
IODINE_FORWARD=true | |
IODINE_SERVER=w.x.y.z |