Skip to content

Instantly share code, notes, and snippets.

View rwp0's full-sized avatar
📚
On one's own way, at one's own pace…

Elvin Aslanov rwp0

📚
On one's own way, at one's own pace…
View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google]
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"ForceEphemeralProfiles"=dword:00000001
"SavingBrowserHistoryDisabled"=dword:00000001
"SyncDisabled"=dword:00000001
"PasswordManagerEnabled"=dword:00000000
"SigninAllowed"=dword:00000000
"HideWebStoreIcon"=dword:00000001
@rwp0
rwp0 / gist:f89f64fc498b81fce1011ff0cc4e28d7
Created January 16, 2023 14:43 — forked from shaoran/gist:1db4ed8bba8bc054cd31e2ea05a668d1
NetworkManager tls-cipher=DEFAULT:@SECLEVEL=0
# Client configs, 16.04,
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
# network manager, 16.04, install below package to enable import openvpn client configs
sudo apt install network-manager-openvpn-gnome
# Client configs, 18.04/18.10
@rwp0
rwp0 / dnsmasq_log.md
Last active November 26, 2022 18:50 — forked from shuhaowu/debug-dnsmasq.sh
Debug DNSmasq by Llogging its Queries

In /etc/NetworkManager/dnsmasq.d/log.dnsmasq.conf:

log-queries  = extra
log-facility = /var/log/dnsmasq.log
systemctl NetworkManager restart
tail -f /var/log/syslog | ccze -A
@rwp0
rwp0 / compile-php-extension.sh
Created September 23, 2022 14:01 — forked from Chekote/compile-php-extension.sh
How to compile a PHP extension into a shared module for any PHP version
# How to compile a PHP extension into a shared module for any PHP version
# download and decompress required PHP version source (e.g. 5.6.30). See http://php.net/releases/
wget http://php.net/get/php-5.6.30.tar.bz2/from/this/mirror -O php-5.6.30.tar.bz2
tar xvf php-5.6.30.tar.bz2
# compile and install PHP to temporary location (e.g. ~/php-install)
cd php-5.6.30/
time ./configure --prefix=${HOME}/php-install
make -j 8
@rwp0
rwp0 / adb-dns.sh
Last active September 15, 2022 17:19 — forked from sharunkumar/adb-dns.bat
Enabling / Disabling Private DNS in android via ADB
# to disable private dns
adb shell settings put global private_dns_mode off
# to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com