<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/scripts/pretty-feed-v3.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:h="http://www.w3.org/TR/html4/"><channel><title>evert.io</title><description>Evert&apos;s Personal projects and blog posts</description><link>https://astro-pure.js.org</link><item><title>Run SOCKS proxy on Android</title><link>https://astro-pure.js.org/blog/run-http-proxy-on-android</link><guid isPermaLink="true">https://astro-pure.js.org/blog/run-http-proxy-on-android</guid><description>Reference for running a SOCKS proxy on Android</description><pubDate>Sun, 27 Oct 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;(This is more of a reference than a blog post)&lt;/p&gt;
&lt;p&gt;The goal is to browse the internet from a PC using the phone&apos;s mobile data through a hotspot, as if the traffic was coming from the phone.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install Termux
&lt;ol&gt;
&lt;li&gt;Note: I had to use the one from F-Droid since the Google Play version caused an &quot;access denied&quot; error somewhere during the process below.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Create hotspot&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In Termux:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Download Glider
# https://github.com/nadoo/glider

wget &apos;https://github.com/nadoo/glider/releases/download/v0.16.3/glider_0.16.3_linux_arm64.tar.gz&apos;
tar -xvzf glider_0.16.3_linux_arm64.tar.gz
cd glider_0.16.3_linux_arm64

# Get IP of the phone
ifconfig

# Start Socks proxy
./glider -verbose -listen :8443
&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;Connect PC to hotspot&lt;/li&gt;
&lt;li&gt;Configure web browser to use the phone IP and port 8443 as a SOCKS5 proxy&lt;/li&gt;
&lt;/ol&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>Raspberry Pi Zero W WiFi Bridge</title><link>https://astro-pure.js.org/blog/pi-zero-w-wifi-bridge</link><guid isPermaLink="true">https://astro-pure.js.org/blog/pi-zero-w-wifi-bridge</guid><pubDate>Sat, 13 Jul 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Use the Raspberry Pi Zero W to bridge two wireless networks.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use &lt;code&gt;nmtui&lt;/code&gt; to connect the USB WiFi adapter to the WiFi network for the internet connection&lt;/li&gt;
&lt;li&gt;Disable auto connect for the &lt;code&gt;preconfigured&lt;/code&gt; connection&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&quot;https://gist.github.com/narate/d3f001c97e1c981a59f94cd76f041140&quot;&gt;https://gist.github.com/narate/d3f001c97e1c981a59f94cd76f041140&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CONNECTION_NAME=hotspot
SSID=my-ssid
INTERFACE=wlan0 # Interface for hosting the hotspot
PASSWORD=HJbiuAUYvo873bhyaF

# autoconnect is no because it will be started by the `start-hotspot.sh` script
nmcli con add type wifi ifname $INTERFACE con-name $CONNECTION_NAME autoconnect no ssid $SSID
nmcli con modify $CONNECTION_NAME 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify $CONNECTION_NAME wifi-sec.key-mgmt wpa-psk
nmcli con modify $CONNECTION_NAME wifi-sec.psk &quot;$PASSWORD&quot;
nmcli con up $CONNECTION_NAME
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I had a problem where the hotspot had to be started after the internet interface is up.
Solution:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://askubuntu.com/a/1015291&quot;&gt;https://askubuntu.com/a/1015291&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/etc/NetworkManager/dispatcher.d/start-hotspot.sh&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;!/bin/bash

interf=$1
state=$2

# TODO: change `my-ethernet-device` and `my-hotspot`
if [ $interf = &quot;my-ethernet-device&quot; -a $state = &quot;up&quot; ]; then
    nmcli connection up &apos;my-hotspot&apos;
fi

if [ $interf = &quot;my-ethernet-device&quot; -a $state = &quot;down&quot; ]; then
   nmcli connection down &apos;my-hotspot&apos;
fi
&lt;/code&gt;&lt;/pre&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>Using Dev Containers with Podman and Selinux</title><link>https://astro-pure.js.org/blog/dev-containers-podman</link><guid isPermaLink="true">https://astro-pure.js.org/blog/dev-containers-podman</guid><pubDate>Sat, 15 Jun 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Trying to use Podman with Development Containers without first modifying the &lt;code&gt;devcontainer.json&lt;/code&gt; results in access denied errors within the container.&lt;/p&gt;
&lt;p&gt;Add the following to &lt;code&gt;devcontainer.json&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;&quot;runArgs&quot;: [
		&quot;--userns=keep-id&quot;,
		&quot;--security-opt=label=disable&quot;
	  ],
&quot;containerEnv&quot;: {
		&quot;HOME&quot;: &quot;/home/vscode&quot; // TODO: change to the directory of the default user in the container
	},
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Related issues:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/microsoft/vscode-remote-release/issues/1333&quot;&gt;microsoft/vscode-remote-release - Support SELinux enabled systems&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item><item><title>International calling rates from South Africa to Australia</title><link>https://astro-pure.js.org/blog/international-calling-rates-south-africa</link><guid isPermaLink="true">https://astro-pure.js.org/blog/international-calling-rates-south-africa</guid><pubDate>Thu, 06 Jun 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A comparison of international calling rates for different mobile service providers in South Africa, specifically when calling to &lt;strong&gt;Australia&lt;/strong&gt; (+61 2...).&lt;/p&gt;
&lt;p&gt;| Provider                                                                                                           | Tariff (Rand per Minute) | Comments                                           |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------ | -------------------------------------------------- |
| &lt;a href=&quot;https://group.telkom.co.za/about_us/download/Telkom-Mobile-International-Calling-Rates.pdf&quot;&gt;Telkom Mobile&lt;/a&gt;       | R1.12                    | Did not explicitly list the price for area code 02 |
| &lt;a href=&quot;https://www.cellc.co.za/cellc/international-calling&quot;&gt;CellC&lt;/a&gt;                                                       | R1.99                    |                                                    |
| &lt;a href=&quot;https://mybroadband.co.za/news/cellular/86585-lowest-international-call-rates-in-sa-launched.html&quot;&gt;MTN&lt;/a&gt;           | R1.99 ?                  | Official site was under maintenance                |
| &lt;a href=&quot;https://www.vodacom.co.za/vodacom/services/convenience-and-security/calling/international-calling-rates&quot;&gt;Vodacom&lt;/a&gt; | R4.69 (Prepaid)          |                                                    |
| &lt;a href=&quot;https://mobile.standardbank.co.za/sim/pricing-guide&quot;&gt;Standard Bank Mobile&lt;/a&gt;                                        | R22.80 to R34.06         |                                                    |&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 2024-06-20:&lt;/strong&gt; I can confirm the tariff on Telkom Mobile is R1.12 per minute to +61 2...&lt;/p&gt;</content:encoded><h:img src="undefined"/><enclosure url="undefined"/></item></channel></rss>