check what listening on port 80
sudo ss -nltp | grep 80
encrypting compressed folder
tar cz my_folder/ | openssl enc -aes-256-cbc -e > encrypted.tar.gz.enc
#!/bin/bash | |
DBG=0 | |
dbg() { | |
[[ $DBG == 1 ]] && (1>&2 echo "[DEBUG] : "$1) | |
} | |
info() { | |
echo "[INFO] : $1" |
check what listening on port 80
sudo ss -nltp | grep 80
encrypting compressed folder
tar cz my_folder/ | openssl enc -aes-256-cbc -e > encrypted.tar.gz.enc
/** | |
* https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ | |
*/ | |
object Utf8Decoder { | |
private val Utf8Accept: Int = 0 | |
private val Utf8Reject: Int = 1 | |
//@formatter:off | |
private val utf8d : Array[Int] = Array( |
#!/usr/bin/env sh | |
# Remove all existing alternatives | |
sudo update-alternatives --remove-all llvm | |
# exit on first error | |
set -e | |
# llvm-4.0 | |
sudo update-alternatives \ |
This approach uses update-alternatives to manage GCC and LLVM/CLANG C/C++ compiler toolchains.
Although tested on Linux Mint 18.3, this approach should work on any Debian based distro or for that matter any Linux distro with update-alternatives
support, provided the packages are installed correctly.
There are 3 files
gcc-alternatives.sh
installs GCC versions 5/6/7 and sets up alternatives for gcc
/g++
/cpp
/gfortran
.llvm-clang-alternatives.sh
installs LLVM and CLANG versions 4/5 and sets up alternatives for various LLVM and CLANG programs including clang
and clang++
.cc-alternatives.sh
sets up alternatives for the cc
, cxx
, and the ld
commands. This script can be used to change systemwide default compiler/linker combination to either GCC or CLANG.Once these scripts are run you can change the system GCC/CLANG versions by running sudo update-alternatives --config gcc|clang
. To change the default compiler/linker combo used by t
sudo add-apt-repository ppa:stebbins/handbrake-releases # to get latest
sudo apt update
sudo apt install handbrake-gtk
sudo apt install ubuntu-restricted-extras # to install a collection of codecs
sudo apt install libdvd-pkg # to install a library that plays DVDs in Ubuntu
sudo dpkg-reconfigure libdvd-pkg # do reconfigured if needed