This file contains 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
# Install csshx (or `brew install csshx`, but the official version is not working on osx moave) | |
brew tap parera10/csshx | |
brew install parera10/csshx/csshx | |
# Example of running | |
csshX --ssh_args "-i ~/.ssh/some_key" -l username someIP1 someIP2 |
This file contains 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
# e.g. if mysql is installed on path /usr/local/Cellar/mysql@5.7/5.7.24 | |
gem install mysql2 -- --with-mysql-dir=/usr/local/Cellar/mysql@5.7/5.7.24 |
This file contains 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
# list installed casks | |
brew cask list | |
# show info about the cask | |
brew cask info lepton | |
# install lepton | |
brew cask install lepton | |
# unistall lepton |
This file contains 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
git-crypt add-gpg-user --trusted <user_id_or_email> |
This file contains 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
curl -XDELETE http://<coordinator_domain>:<coordinator_port>/druid/coordinator/v1/datasources/<datasource_name>/segments/<segment_id> |
This file contains 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
# For setting up gpg not to require password upon each commit, do this (https://stackoverflow.com/questions/39494631/gpg-failed-to-sign-the-data-fatal-failed-to-write-commit-object-git-2-10-0) | |
brew upgrade gnupg # This has a make step which takes a while | |
brew link --overwrite gnupg | |
brew install pinentry-mac | |
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf | |
killall gpg-agent | |
# to test it, use this | |
echo "test" | gpg --clearsign # on linux it's gpg2 but brew stays as gpg | |
# to show the signature of a commit message | |
git log --show-signature -1 |
This file contains 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
cd <repo_name> | |
echo "<file_path_inside_repo> filter=git-crypt diff=git-cryp" >> .gitattributes | |
git add .gitattributes | |
git commit | |
git push origin <branch_name> |
This file contains 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
# from kafka-docker repo | |
docker-compose -f docker-compose-single-broker.yml up |
This file contains 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
# start | |
docker-compose start kafka | |
# restart | |
docker-compose restart kafka |
This file contains 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
# Run and connect to the container | |
docker run --net host -it wurstmeister/kafka:0.9.0.1 bin/bash | |
# NOTE: if `kafka-docker` is used and container is already sterted, connecting can be done directly to started container with `docker exec -it <containerId> bash` | |
# navigate to kafka dir | |
cd $KAFKA_HOME | |
# listing topics | |
bin/kafka-topics.sh --zookeeper <zookeeper_ip>:2181 --list | |
# creating a kafka topic | |
bin/kafka-topics.sh --create --zookeeper <zookeeper_ip>:2181 --replication-factor 1 --partitions 1 --topic <topic_name> |
OlderNewer