Skip to content

Instantly share code, notes, and snippets.

View rarinaferrari's full-sized avatar
:octocat:
Focusing

Андрей rarinaferrari

:octocat:
Focusing
  • OBIT LLC
  • Saint-Petersburg
View GitHub Profile
@rarinaferrari
rarinaferrari / web-servers.md
Created May 17, 2024 05:43 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@rarinaferrari
rarinaferrari / 00-docker-shorewall.md
Created May 16, 2023 11:53 — forked from lukasnellen/00-docker-shorewall.md
setup shorewall for docker networking beyond the default bridge network, e.g., for docker-compose

Docker(-compose) with shorewall

The shorewall documentation explains in http://shorewall.org/Docker.html how to configure shorewall for use with docker. The problem with the configuration is that it only allows connections from the host to the main bridge docker0. Connections to other networks on dynamically created bridges, with names starting by default with br-, is blocked. Instead of the recommended contents of /etc/shorewall/interfaces, use wild-card interface names as follows:

#ZONE	INTERFACE	OPTIONS
#dock	docker0		bridge     # disabled default recommendation
dock 	docker0		physical=docker+,routeback=1
dock 	br		physical=br-+,routeback=1
@rarinaferrari
rarinaferrari / gnome-terminal-profiles.adoc
Created December 13, 2022 08:43 — forked from giig982/gnome-terminal-profiles.adoc
Export / Import Gnome Terminal Profiles

Export Gnome Terminal Profile

List profiles

dconf dump /org/gnome/terminal/legacy/profiles:/

Determine the terminal profile string for the profile you will need. This is the terminal profile that I will export: