Skip to content

Instantly share code, notes, and snippets.

@neofob
neofob / dutule.md
Last active September 7, 2019 16:14
Vai Chưa Hiểu Gánh Đời Sao Quá Nặng
Ai Đi Rồi Còn Gửi Lại Con Ngươi 

sông đôi lúc gọi tôi về, ấm áp 
dòng tóc nào chung thủy một mùi hương.
thuở bé dại ghim mối tình gởi mẹ.
ngắm nhìn cha như một vết thương.
 
trái tim tôi: một dấu chấm than
thân thể tựa khối sầu quen chuyển, động.
@neofob
neofob / workflow.md
Last active August 23, 2019 00:09
workflow openvpn

A brief note on generate keys and all

  • Generating server key
  • Generating client key
  • Save files for server
  • Get client key
  • Finetune client key
  • Load server files
@neofob
neofob / genpass.sh
Created August 15, 2019 06:55
Random password in a random length
#!/usr/bin/env bash
# Generate a random password, save it to a file, copy it via xclip
# Usage: genpass.sh saved_passwd.txt
openssl rand -base64 $(echo $RANDOM%8+24 | bc) | tee > $1 | xclip -selection c
@neofob
neofob / docker-compose.yml
Created July 24, 2019 06:04
docker-compose for openvpn server
---
# Simple docker-compose file for kylemanna/openvpn
version: '3.7'
services:
openvpn:
cap_add:
- NET_ADMIN
image: kylemanna/openvpn:latest
container_name: openvpn
ports:
@neofob
neofob / vim.md
Created July 23, 2019 02:22
vim RE
:%s/\(^[a-z_]*\) /redis_\1: /g
@neofob
neofob / SRE
Created June 21, 2019 17:14
SRE book
https://landing.google.com/sre/sre-book/toc/
@neofob
neofob / pxz.sh
Created June 19, 2019 04:01
Testing pxz
time dd if=/dev/zero bs=1M count=16000 | pxz -T4 -c9 - > /dev/null
@neofob
neofob / vagrant.md
Last active November 25, 2019 19:48
vagrant stuff
  • [private network][0]
  • [private network, static ip][1]
  • [vagrantfile cheatsheet][2]
  • [bridged network][3]
  • [Setup VM with loop][4]
  • [Create multiple VMs using loop][5]
  • [Vagrant cluster machines using loop][6]

List bridged Interfaces

@neofob
neofob / docker.yml
Last active September 23, 2020 17:51 — forked from rbq/docker.yaml
Install Docker CE on Ubuntu using Ansible
---
- hosts: all
tasks:
- name: Install prerequisites for Docker repository
apt:
name: ['apt-transport-https', 'ca-certificates', 'curl', 'gnupg2', 'software-properties-common']
update_cache: yes
- name: Add Docker GPG key
apt_key: url=https://download.docker.com/linux/ubuntu/gpg
@neofob
neofob / grafana.png
Last active May 31, 2019 10:24
grafana
grafana.png