Skip to content

Instantly share code, notes, and snippets.

View timkrins's full-sized avatar
🇺🇦

Tim Krins timkrins

🇺🇦
View GitHub Profile
@timkrins
timkrins / github_keys.sh
Last active March 12, 2020 10:25
Github authorized_keys auto-insert
awk '
BEGIN {p=1}
/^#github-start/ {print;system("curl https://github.com/timkrins.keys");p=0}
/^#github-end/ {p=1}
p' authorized_keys > gh_authorized_keys
cat gh_authorized_keys > authorized_keys
# chmod +x ~/.ssh/github_keys.sh
# crontab -l > .cron
# echo '*/10 * * * * ~/.ssh/github_keys.sh' > .crontab
{
"title": "UK Logitech G213 keyboard",
"rules": [
{
"description": "G213 Backtick",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "grave_accent_and_tilde"
@timkrins
timkrins / generate_replibyte_transformers.py
Last active July 27, 2022 10:42
A Replibyte config yaml generator
#!/usr/bin/env python3
"""
This is a quick script to generate a Replibyte configuration containing every
table and column in a MySQL db with a default transformer (ie 'transient').
You can supply a list of defaults for certain column names.
Requirements:
pip3 install mysql-connector-python
#!/usr/bin/env python3
"""
A quick script to filter a HAR file that was saved by Chrome, based on the request URL.
Useful for filtering HAR files to be converted by `har-to-k6` for load testing.
------------------------------------------------------------------------------
MIT License
Copyright (c) 2022 Tim Krins
Permission is hereby granted, free of charge, to any person obtaining a copy