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
export PROMPT="%F{green}%n%f@%m %F{magenta}%~%f$ " | |
export CLICOLOR=1 | |
export LS_COLORS="di=31;41:ln=31;41:so=31;41:pi=31;41:ex=31;41:bd=31;41:cd=31;41:su=31;41:sg=31;41:tw=31;41:ow=31;41:" | |
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
setopt BEEP NO_AUTOLIST BASH_AUTOLIST NO_MENUCOMPLETE |
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 confluent_kafka.avro import AvroConsumer | |
from confluent_kafka.avro.serializer import SerializerError | |
c = AvroConsumer({ | |
'bootstrap.servers': 'localhost:9092', | |
'group.id': 'groupid', | |
'schema.registry.url': 'http://127.0.0.1:8081' | |
}) | |
c.subscribe(['reddit_posts']) |
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
# Get license.json from Landoop | |
docker run -p 3030:3030 -p 9092:9092 -p 2181:2181 -p 3031:3031 --rm \ | |
-e LICENSE="$(cat ./license.json)" \ | |
-e SAMPLEDATA=0 \ | |
-e KAFKA_AUTO_CREATE_TOPICS_ENABLE=false \ | |
-e KAFKA_ADVERTISED_HOST_NAME=localhost \ | |
landoop/kafka-lenses-dev |
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
# Boot into Live CD/USB | |
# Use UK keyboard | |
loadkeys uk | |
# Check partitions available | |
fdisk -l | |
# Use fdisk to format partitions | |
# o to overwrite the disk | |
# n to create new partition |
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
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B) | |
set -g prefix C-space | |
unbind-key C-b | |
bind-key C-space send-prefix | |
# Set new panes to open in current directory | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" |
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
vim-go | |
nerdtree | |
ctrlp |
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
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set number | |
let g:go_highlight_functions = 1 | |
let g:go_highlight_methods = 1 | |
let g:go_highlight_fields = 1 | |
let g:go_highlight_types = 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
// | |
// ViewController.swift | |
// CacheDelegate | |
// | |
// Created by Heng, William (Mobile Developer) on 23/03/2016. | |
// Copyright © 2016 Heng, William (Mobile Developer). All rights reserved. | |
// | |
import UIKit |
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
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold |
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
export PS1="\[\033[38;5;10m\]\u\[$(tput sgr0)\]\[\033[38;5;0m\]@\h:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;135m\]\w\[$(tput sgr0)\]\[\033[38;5;0m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
export GOPATH="$HOME/Code/Go" | |
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home" | |
export PATH="/usr/local/sbin:$GOPATH/bin:$JAVA_HOME/bin:$PATH" | |
alias ls='ls -Gfh' | |
alias mvnn='mvn -DskipTests=true' |
NewerOlder