Create the config file:
mkdir -p /etc/systemd/system/docker.service.d && \
vi /etc/systemd/system/docker.service.d/http-proxy.confPut up the configs:
| apt-get install -y wget && \ | |
| wget 'https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-client-plugins_8.0.25-1ubuntu20.04_amd64.deb' && \ | |
| wget 'https://dev.mysql.com/get/Downloads/Connector-C++/libmysqlcppconn9_8.0.25-1ubuntu20.04_amd64.deb' && \ | |
| wget 'https://dev.mysql.com/get/Downloads/Connector-C++/libmysqlcppconn8-2_8.0.25-1ubuntu20.04_amd64.deb' && \ | |
| wget 'https://dev.mysql.com/get/Downloads/Connector-C++/libmysqlcppconn-dev_8.0.25-1ubuntu20.04_amd64.deb' && \ | |
| dpkg -i mysql-community-client-plugins_8.0.25-1ubuntu20.04_amd64.deb && \ | |
| dpkg -i libmysqlcppconn9_8.0.25-1ubuntu20.04_amd64.deb && \ | |
| dpkg -i libmysqlcppconn8-2_8.0.25-1ubuntu20.04_amd64.deb && \ | |
| dpkg -i libmysqlcppconn-dev_8.0.25-1ubuntu20.04_amd64.deb && \ | |
| apt-get install -y libmysqlcppconn-dev |
Create the config file:
mkdir -p /etc/systemd/system/docker.service.d && \
vi /etc/systemd/system/docker.service.d/http-proxy.confPut up the configs:
| # follow `https://www.elastic.co/guide/en/kibana/current/docker.html#run-kibana-on-docker-for-dev` instructions for | |
| # installing ES using docker | |
| function run-docker-es() { | |
| # remove any already running es instance | |
| docker ps -af "name=elasticsearch" -q 2>/dev/null | xargs docker rm &>/dev/null | |
| # launch the ES with 1GB memory limit and 3 core | |
| docker run --name elasticsearch \ | |
| --net elastic \ | |
| -p 9200:9200 \ |
| #include <stdio.h> | |
| #include <sstream> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <iostream> | |
| #include <arpa/inet.h> | |
| #include <sys/socket.h> | |
| #include <unordered_map> | |
| #include <openssl/ssl.h> | |
| #include <openssl/err.h> |
| nano ~/.config/xfce4/terminal/accels.scm |
| # /etc/apt/apt.conf.d/12proxy | |
| Acquire::http::proxy "socks5h://127.0.0.1:9999"; | |
| Acquire::https::proxy "socks5h://127.0.0.1:9999"; |
# nano /etc/default/crio
HTTP_PROXY=http://127.0.0.1:8118
ALL_PROXY=http://127.0.0.1:8118
HTTPS_PROXY=http://127.0.0.1:8118
NO_PROXY=localhost,10.96.0.0/12,192.168.0.0/16,172.16.0.0/12,127.0.0.0/8,<SERVER'S IP> # append any other IPs/domains to not go through the proxy