Skip to content

Instantly share code, notes, and snippets.

View hareeshpc's full-sized avatar

Hareesh P hareeshpc

  • Stockholm, Sweden
View GitHub Profile

Overview

+------------------------+                 +----------------------+
|                        |                 |                      |
|                        |                 |                      |
|           h1           |                 |          h2          |
|                        |                 |                      |
|                        |                 |                      |
Based on : https://github.com/jessfraz/dockerfiles/blob/master/chrome/stable/Dockerfile
Dockerfile
==========
```
# Base docker image
FROM debian:bullseye-slim
LABEL maintainer "Jessie Frazelle <[email protected]>"
# Install Chrome

Dev Machine

Setting up a personal development machine

Required software

  • git
  • Vim 8.0
  • Tmux
  • fzf

Salt

Salt architecture

Master-minion architecture

  • ZeroMQ based transport
    • network topology
  • concurrency
@hareeshpc
hareeshpc / vimrc_wip
Created August 2, 2019 11:52
Vimrc wip
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
Plug 'junegunn/seoul256.vim'
Plug 'ConradIrwin/vim-bracketed-paste'
Plug '/home/hareesh/.fzf'
Plug 'junegunn/fzf.vim'
Plug 'https://github.com/Alok/notational-fzf-vim'
Plug 'vim-airline/vim-airline'
" Initialize plugin system
Dockerfile
----------
FROM python:3-alpine
#FROM fedora:latest
ADD ipvs.py /
RUN pip install gnlpy six
CMD [ "python", "./ipvs.py" ]

Prerequisites

Virtual box preconfig

When starting virtual box it was missing the required kernel headers. First get them by

sudo yum install kernel-devel 
sudo /sbin/vboxconfig

Reference

https://www.nadeau.tv/ssh-with-a-bastion-host/

One Liner

ssh -o ProxyCommand='ssh -W %h:%p user@bastion' user@target

Config based

To let scp/rsync/debuuger connect, edit your ~/.ssh/config file to define the proxy command and other params. For example:

@hareeshpc
hareeshpc / vagrant_with_libvirt_provider.txt
Last active December 5, 2017 07:29
vagrant_with_libvirt_provider
# KVM and Qemu
yum install -y qemu-kvm \
qemu-img \
virt-manager \
libvirt \
libvirt-python \
python-virtinst \
libvirt-client \
virt-install \