This is part of a blog post I wrote: https://debugging.works/blog/tpm-explained/
- I use it on Arch Linux (systemd 257.3-1)
- Install dependency:
yay tpm2-tools(5.7-1)
This is part of a blog post I wrote: https://debugging.works/blog/tpm-explained/
yay tpm2-tools (5.7-1)| #!/bin/bash | |
| gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
Important
These benchmark results are outdated.
Check out our blog post for the latest benchmark results.
| #!/bin/bash | |
| # Usage: ./get_kubeconfig_custom_cluster_rancher2.sh cluster_name | |
| # Needs to be run on the server running `rancher/rancher` container | |
| # Check if jq exists | |
| command -v jq >/dev/null 2>&1 || { echo "jq is not installed. Exiting." >&2; exit 1; } | |
| # Check if clustername is given | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 [clustername]" |
Hacky way (let me know if you know better one)
Let's say you have repo Main and repo Proto, you want to put your Proto under Main, so folder structure will be the following:
|-SRC
|---proto
and you also want to preserve commit history, so everybody can see what you were doing while developing proto, sounds like pretty easy task. The easiest way is to create folder structure similar to Main repo SRC\proto and start working using is as a root, but if you like me, you didn't think about this beforehand, so you path would be harder:
| #!/bin/bash | |
| # | |
| # mongo-connector Start Mongo Connector | |
| # | |
| # chkconfig: 345 90 25 | |
| # description: Mongo Connector replicates data from MongoDB to external | |
| # database systems. | |
| ### BEGIN INIT INFO | |
| # Provides: mongo-connector |
| sudo yum update | |
| sudo yum install python27 | |
| curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo /usr/bin/python27 | |
| sudo easy_install pip | |
| echo "alias python='python27'" >> ~/.bashrc | |
| source ~/.bashrc |
| import java.io.IOException; | |
| import java.util.Properties; | |
| import kafka.server.KafkaConfig; | |
| import kafka.server.KafkaServerStartable; | |
| public class KafkaLocal { | |
| public KafkaServerStartable kafka; | |
| public ZooKeeperLocal zookeeper; |