Skip to content

Instantly share code, notes, and snippets.

@cikupin
cikupin / .vimrc
Created June 12, 2021 09:29
my personal & simple vim configuration
call plug#begin('~/.vim/plugged')
Plug 'ekalinin/Dockerfile.vim', { 'for': 'docker' }
Plug 'plasticboy/vim-markdown', { 'for': ['markdown', 'md'] }
Plug 'chr4/nginx.vim', { 'for': 'nginx' }
Plug 'hashivim/vim-terraform', { 'for': ['terraform', 'tf'] }
Plug 'hashivim/vim-vagrant', { 'for': ['vagrant', 'Vagrantfile'] }
Plug 'stephpy/vim-yaml', { 'for': ['yaml', 'yml'] }
call plug#end()
@cikupin
cikupin / .zshrc_from_kali_linux
Created December 28, 2020 08:50
raw zsh theme from kali linux
# ~/.zshrc file for zsh interactive shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
setopt numericglobsort # sort filenames numerically when it makes sense
@cikupin
cikupin / .zshrc
Last active August 12, 2020 03:43
# --- My personal zsh configuration
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/cikupin/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
@cikupin
cikupin / .tmux.conf
Last active November 15, 2020 11:03
add split pane usage comment (in case I forget)
# My Personal Tmux Configurations
# split panes using h and v
# split pane vertically : ctrl+b, v
# split pane horizontally : ctrl+b, h
bind v split-window -h
bind h split-window -v
unbind '"'
unbind %
@cikupin
cikupin / influx_event_example.go
Last active November 14, 2019 16:27
example influxdb event submission using http & udp
package main
import (
"log"
"net/http"
"time"
ifxClient "github.com/influxdata/influxdb1-client/v2"
)