Skip to content

Instantly share code, notes, and snippets.

View iamoverit's full-sized avatar

Ilya Filisteev iamoverit

View GitHub Profile
@iamoverit
iamoverit / userChrome.css
Created January 22, 2023 00:51
firefox css oled friendly
:root{
--uc-autohide-toolbox-delay: 200ms; /* Wait 0.1s before hiding toolbars */
}
#navigator-toolbox{
transition: opacity 82ms linear !important;
transition-delay: var(--uc-autohide-toolbox-delay) !important;
transform-origin: top;
opacity: 0;
}
@iamoverit
iamoverit / README.md
Last active June 15, 2021 08:12 — forked from softmoth/README.md
Using a proxy to avoid tether throttling

Using a proxy to avoid tether throttling

I use my mobile phone for internet access. My provider's Unlimited data plan discourages tethering (using the phone as a hotspot), though, by throttling traffic it sees coming from other devices.

A fairly simple and robust solution is to run a proxy server on the phone, and then set up your router to send all traffic through the proxy.

Run a proxy on the phone

ARG GRAFANA_VERSION="latest"
FROM grafana/grafana:${GRAFANA_VERSION}-ubuntu
USER root
# Set DEBIAN_FRONTEND=noninteractive in environment at build-time
ARG DEBIAN_FRONTEND=noninteractive
ARG GF_INSTALL_IMAGE_RENDERER_PLUGIN="false"
docker run -d --name local-clickhouse-server --ulimit nofile=262144:262144 -p 127.0.0.1:8123:8123 -p 127.0.0.1:9000:9000 -p 127.0.0.1:9009:9009 --volume=$HOME/local_clickhouse_database:/var/lib/clickhouse yandex/clickhouse-server 2> /dev/null || docker start local-clickhouse-server
#!/usr/bin/env python
'''
Get windows_ip:wsl_ip
'''
import socket
import re
import subprocess
reg = re.compile('\(WSL\).*?IPv4 Address.*?:.*?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})', flags=re.DOTALL|re.UNICODE)