Skip to content

Instantly share code, notes, and snippets.

@unixzilla
unixzilla / gist:b57cf961b9e0099b79a8e362025b08a4
Last active June 4, 2022 18:33
Ubuntu with Docker container application run the curl issue OpenSSL SSL_connect: Connection reset by peer in connection to domain.com:443
The problem is that maybe your host with docker containers network with different MTU settings.
usually your host under the VPN network.
please check in terminal: ip link
look at docker containers mtu number is match with the VPN mtu. e.g: 1400 or 1500
if the docker containers not match vpn mtu, you could try set you network driver mtu in docker-compose.yml
first stop all your docker containers
Then edit docker-compose.yml

Introduction

CICD Pipeline

A software development that plans development how developer coding and testing that process is a continuous integration and then continuous delivery is a process that auto testing on staging[docker] that will marge other code committed by other developers and then deploy to production server manually OR continuous deployment is a process that auto testing and auto-deploy to a production server, aim to automatic DevOps. Following instruction is base on Mac user and VS Code only, if you are Windows or Linux user that may a bit different.

How CI/CD works

every time you do git push will trigger CI operation that will follow the user script instruction (gitlab-ci.yml) to do DevOps operation.

Introduction

A software development that plans development how developer coding and testing that process is a continuous integration and then continuous delivery is a process that auto testing on staging[docker] that will marge other code committed by other developers and then deploy to production server manually OR continuous deployment is a process that auto testing and auto-deploy to a production server, aim to automatic DevOps.

How CI/CD works

every time you do git push will trigger CI operation that will follow the user script instruction (gitlab-ci.yml) to do DevOps operation.

create a git project

@unixzilla
unixzilla / ChunkFile.html
Created November 23, 2021 03:00
upload large file and chunk it send to server
<!DOCTYPE html>
<html>
<head>
<title>Upload Files using XMLHttpRequest</title>
<script type="text/javascript">
var upload_id = '<?= $result['UploadId']; ?>';
var upload_state = [];
var xhr = new XMLHttpRequest ();
@unixzilla
unixzilla / tmux.conf
Last active August 29, 2015 14:19 — forked from spicycode/tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000