How to configure Bash Completion on Mac for Docker and Docker-Compose
Run:
brew install bash-completionAdd the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
| # Qt qmake integration with Google Protocol Buffers compiler protoc | |
| # | |
| # To compile protocol buffers with qt qmake, specify PROTOS variable and | |
| # include this file | |
| # | |
| # Example: | |
| # LIBS += /usr/lib/libprotobuf.so | |
| # PROTOS = a.proto b.proto | |
| # include(protobuf.pri) | |
| # |
| package main | |
| import ( | |
| "log" | |
| "net" | |
| "../gen/go" | |
| "golang.org/x/net/context" | |
| "google.golang.org/grpc" | |
| ) |
| syntax = "proto3"; | |
| package example; | |
| service Greeter { | |
| rpc Hello (GreetingRequest) returns (GreetingReply) {} | |
| } | |
| message GreetingRequest { | |
| string name = 1; |
| #ifndef __CLIENT_CLI_H_ | |
| #define __CLIENT_CLI_H_ | |
| #include <iostream> | |
| #include <string> | |
| #include <grpc++/grpc++.h> | |
| #include "../../gen/greeting.grpc.pb.h" |
| #include <iostream> | |
| #include <memory> | |
| #include <string> | |
| #include <grpc++/grpc++.h> | |
| #include "../core/GreeterClientCli.h" | |
| #include "../../gen/greeting.grpc.pb.h" |
How to configure Bash Completion on Mac for Docker and Docker-Compose
Run:
brew install bash-completionAdd the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
The following will bootstrap a new chef node:
knife bootstrap <ip> -i <key> --ssh-user <ssh_user> --sudo -E <environment> --run-list 'recipe[<recipe_name>]' -N <node_name>where:
staging;| #!/bin/sh | |
| script_name="${BASH_SOURCE[${#BASH_SOURCE[@]} - 1]}" | |
| script_folder=$(cd `dirname $script_name` && pwd) | |
| print_usage() { | |
| echo "Usage: $script_name <options>" | |
| echo "" | |
| echo "Options:" | |
| echo "\t-a <arguments>\targuments to pass to the docker build command" |
| #! /bin/sh | |
| MKVMERGE="<mkvmerge_path>" | |
| INPUT_FOLDER="<input_folder>" | |
| OUPUT_FOLDER="<output_folder>" | |
| for entry in "$INPUT_FOLDER"/*.mkv; do | |
| NAME=$(basename "$entry") | |
| # remove all non-english autio/subtitles tracks |
| #!/bin/sh | |
| git filter-branch -f --env-filter ' | |
| # Configuration values | |
| OLD_EMAIL="<old_email_to_replace>" | |
| CORRECT_NAME="pasdam" | |
| CORRECT_EMAIL="[email protected]" | |
| if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] |