# B has 2 network interaces, A reachable through one, C reachable through other
# We want A to C communiation (over B)
A----B----C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from colorama import Fore, Style | |
WANTED_WIDTH = 100 | |
DISPLAY_WIDTH = min(WANTED_WIDTH, os.get_terminal_size().columns - 2) | |
print("┏" + "".center(DISPLAY_WIDTH, "━") + "┓") | |
print(f"┃{Fore.RED}" + "CMakeLists to C++17 Utils".center(DISPLAY_WIDTH, " ") + f"{Style.RESET_ALL}┃") | |
print(f"┃{Style.BRIGHT+ Fore.BLACK}" + "Meltwin - 2023".center(DISPLAY_WIDTH, " ") + f"{Style.RESET_ALL}┃") | |
print("┗" + "".center(DISPLAY_WIDTH, "━") + "┛") | |
print() |
cat record.sh
set -x
ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -draw_mouse 0 -i :1 -c:v libx264 -crf 0 -preset ultrafast ~/Videos/$1
# e.g for gcc-6 and g++-6
export CC=/usr/bin/gcc-6
export CXX=/usr/bin/g++-6
cmake ..
make -j8
When:
- using newer compilers from Ubuntu test ppa (e.g. ppa:ubuntu-toolchain-r/test)
- ppa-purge later to revert the system to clean state
it is possible to get to dissastrous state where libgcc_s.so.1
is misssing.
In such state apt
and other applications may not work and system will not boot.
git tag -d <tagname> # delete the old tag locally
git push origin :refs/tags/<tagname> # delete the old tag remotely
git tag <tagname> <commit> # make a new tag locally
git push origin <tagname> # push the new local tag to the remote
Looks like some "time bomb" in Firefox
To workaround:
- Open about:config
- Search for
https3
- Disable
network.http.http3.enabled
- Restart Firefox
Now re-enable network.http.http3.enabled
and restart. It should be still working.
NewerOlder