This file contains hidden or 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
--- | |
version: '2' | |
services: | |
broker: | |
image: confluentinc/cp-kafka:7.3.3 | |
hostname: broker | |
container_name: broker | |
ports: | |
- "9092:9092" | |
- "9101:9101" |
This file contains hidden or 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
<header> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<div id="success-alert" class="alert alert-success alert-dismissible col-xs-8 text-center " style="display: none;"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
<i class="icon fa fa-check"></i> Changes saved! | |
</div> | |
</header> |
This file contains hidden or 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
#!/bin/sh | |
function post_to_slack () { | |
SLACK_URL=https://hooks.slack.com/services/.... | |
case "$1" in | |
INFO) | |
SLACK_ICON=':slack:' | |
;; | |
WARN) |
This file contains hidden or 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
version: '2' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper | |
environment: | |
- ZOOKEEPER_CLIENT_PORT=2181 | |
ports: | |
- "2181:2181" | |
kafka: |
This file contains hidden or 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 ubuntu:16.04 | |
MAINTAINER XXX | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get -yqq install \ | |
software-properties-common \ | |
python-software-properties \ | |
ca-certificates \ | |
netcat \ | |
nano \ |
This file contains hidden or 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
if [ "$color_prompt" = yes ]; then | |
PS1="[\[$(tput sgr0)\]\[\033[38;5;119m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\] @ \[$(tput sgr0)\]\[\033[38;5;14m\]\H\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;226m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]] \[$(tput sgr0)\]\[\033[38;5;75m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\] {\[$(tput sgr0)\]\[\033[38;5;1m\]\$?\[$(tput sgr0)\]\[\033[38;5;15m\]}\n\[$(tput sgr0)\]\[\033[38;5;7m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
fi |
This file contains hidden or 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
# To meausre energy consumption of an application, we can use Intel PCM Tools. | |
sudo pcm.x -- filename arguments |
This file contains hidden or 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
wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz | |
tar-xvf tmux-1.9a.tar.gz | |
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xvf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure | |
make | |
cd ../tmux-1.9a |
This file contains hidden or 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
#!/bin/sh | |
sgrep () | |
{ | |
if [ "${3}" ]; then | |
if [ -n "${2}" ]; then | |
find . \( -name "${3}" -prune \) -o -name "*" -exec grep -i --color -Hn "${1}" {} 2>/dev/null \; | |
else | |
find ${2} \( -name "${3}" -prune \) -o -name "*" -exec grep -i --color -Hn "${1}" {} 2>/dev/null \; | |
fi |
This file contains hidden or 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
cat fileList.log | sed 's/.*/"&"/' | xargs cp -t folderName |
NewerOlder