To install a custom package or modify an existing docker image we need to
- run a docker a container from the image we wish to modify
- modify the docker container
- commit the changes to the container as a docker image
- test changes made to image
From https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#8.5 | |
Session state at disconnection | |
TCP and HTTP logs provide a session termination indicator in the | |
"termination_state" field, just before the number of active connections. It is | |
2-characters long in TCP mode, and is extended to 4 characters in HTTP mode, | |
each of which has a special meaning : | |
- On the first character, a code reporting the first event which caused the |
#!/bin/bash | |
### | |
### my-script — does one thing well | |
### | |
### Usage: | |
### my-script <input> <output> | |
### | |
### Options: | |
### <input> Input file to read. | |
### <output> Output file to write. Use '-' for stdout. |
#!/bin/bash | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' | |
set -e | |
function cleanup { | |
echo -e "${RED}Removing delay from localhost" | |
echo -e "-----------------------------${NC}" | |
sudo tc qdisc del dev lo root netem | |
sudo tc -s qdisc |
#!/usr/bin/env python3 | |
""" | |
License: MIT License | |
Copyright (c) 2023 Miel Donkers | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
ubuntu@ubuntu:~$ puppet apply pretty.pp [12/46] | |
Notice: Scope(Class[main]): {one => 1, two => [dos, 2]} | |
Notice: Scope(Class[main]): | |
{ | |
"one": "1", | |
"two": [ | |
"dos", | |
"2" | |
] | |
} |
#!/bin/sh | |
export GIT_WORK_TREE=/ | |
if [[ "$1" == "autocommit" ]] | |
then | |
git status --porcelain | grep -v '^??' || exit 0 | |
exec git commit -a -m 'autocommit' | |
fi | |
exec git $@ |
<section> | |
<h2>Tablas con información</h2> | |
<table> | |
<thead><tr> | |
<th>Ciudad</th> | |
<th>Año de fundación</th> | |
<th>Población</th> | |
</tr></thead> | |
<tbody><tr> | |
<td>Gijón</td> |
// ==UserScript== | |
// @name Fix Webogram width | |
// @namespace webogram.fixes | |
// @match https://web.telegram.org/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; |
To install a custom package or modify an existing docker image we need to