Skip to content

Instantly share code, notes, and snippets.

View dylanninin's full-sized avatar
🏠
Working from home

dylanninin dylanninin

🏠
Working from home
View GitHub Profile
@dylanninin
dylanninin / StrongSwan_build_notes.txt
Created August 13, 2021 04:20 — forked from metral/StrongSwan_build_notes.txt
StrongSwan vici python usage snippet
# install notes for ubuntu 14.04 / odroid xu4
sudo apt-get install libgmp3-dev
# dont apt-get StrongSwan! (its really old)
wget https://download.strongswan.org/strongswan-5.5.1.tar.bz2
tar xvfj strongswan-5.5.1.tar.bz2
cd strongswan-5.5.1
sudo ./configure --prefix=/usr --sysconfdir=/etc --enable-python-eggs --enable-python-eggs-install --enable-vici
sudo make
sudo make install
@dylanninin
dylanninin / curl.conf
Last active August 7, 2021 10:33
website response speed monitor with collectd
# file: curl.conf
LoadPlugin curl
<Plugin curl>
<Page "bing_cn">
URL "https://cn.bing.com"
MeasureResponseTime true
MeasureResponseCode true
<Statistics>
TotalTime true
NamelookupTime true

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from Feb

@dylanninin
dylanninin / iptables_rules.sh
Created June 27, 2018 12:43 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@dylanninin
dylanninin / django.conf
Created June 21, 2018 12:03
supervisor with django
# Ansible managed
[program:django]
directory=/work/apps/django/apisite ;
environment=DJANGO_SETTINGS_MODULE=apisite.settings ;
command=/home/ubuntu/.pyenv/versions/django-3.6.1/bin/python manage.py runserver 10300 ;
process_name=%(program_name)s-%(process_num)02d ;
numprocs=1 ;
autostart=True ;
autorestart=True ;
redirect_stderr=False ;
@dylanninin
dylanninin / tmux.conf
Created May 3, 2018 09:30
tmux dot conf
# cat << EOF > /dev/null
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# /!\ do not edit this file
# instead, override settings in ~/.tmux.conf.local, see README.md
# -- general -------------------------------------------------------------------
# Ansible managed
upstream egolife_backend_api {
server localhost:5000;
}
server {
listen 80;
server_name api.egolife.com;
return 301 https://api.egolife.com$request_uri;
}
@dylanninin
dylanninin / nginx-geoip-module.md
Last active April 17, 2018 10:02 — forked from VirtuBox/nginx-geoip-module.md
How to configure GeoIP module for Nginx

Create a folder to store the databases :

mkdir -p /usr/share/GeoIP

Download Country IP database

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
@dylanninin
dylanninin / Netfilter-IPTables-Diagrams.md
Created April 12, 2018 08:38 — forked from nerdalert/Netfilter-IPTables-Diagrams.md
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

@dylanninin
dylanninin / address.md
Last active February 27, 2018 04:00
coin

My Coin Address

  • BTC:1EQC8CCuWWtfB8twe4TnsjJw57udA89YFv
  • BCH:qzf0cl8epxuq73z2m7ewyqpdrve8657qlqy5ru3u5m
  • ETH:0xaD184Ae170D6D42051B7aC403aC1ed5942cCCFDB

Welcome to donate!