<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://pockettheories.com/dokuwiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://pockettheories.com/dokuwiki/feed.php">
        <title>Pocket Theories</title>
        <description></description>
        <link>http://pockettheories.com/dokuwiki/</link>
        <image rdf:resource="http://pockettheories.com/dokuwiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-07T14:38:24+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://pockettheories.com/dokuwiki/doku.php?id=git&amp;rev=1777745590&amp;do=diff"/>
                <rdf:li rdf:resource="http://pockettheories.com/dokuwiki/doku.php?id=lxc&amp;rev=1777738418&amp;do=diff"/>
                <rdf:li rdf:resource="http://pockettheories.com/dokuwiki/doku.php?id=linux&amp;rev=1777738300&amp;do=diff"/>
                <rdf:li rdf:resource="http://pockettheories.com/dokuwiki/doku.php?id=slackbotwithbolt&amp;rev=1777654388&amp;do=diff"/>
                <rdf:li rdf:resource="http://pockettheories.com/dokuwiki/doku.php?id=python&amp;rev=1777654092&amp;do=diff"/>
                <rdf:li rdf:resource="http://pockettheories.com/dokuwiki/doku.php?id=docker&amp;rev=1777279804&amp;do=diff"/>
                <rdf:li rdf:resource="http://pockettheories.com/dokuwiki/doku.php?id=interesting202604&amp;rev=1776804018&amp;do=diff"/>
                <rdf:li rdf:resource="http://pockettheories.com/dokuwiki/doku.php?id=ruby&amp;rev=1776625154&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://pockettheories.com/dokuwiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Pocket Theories</title>
        <link>http://pockettheories.com/dokuwiki/</link>
        <url>http://pockettheories.com/dokuwiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://pockettheories.com/dokuwiki/doku.php?id=git&amp;rev=1777745590&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-05-02T18:13:10+00:00</dc:date>
        <dc:creator>reddy (reddy@undisclosed.example.com)</dc:creator>
        <title>git</title>
        <link>http://pockettheories.com/dokuwiki/doku.php?id=git&amp;rev=1777745590&amp;do=diff</link>
        <description>Git Remote Server

Setting up a git server is as easy as this...


# On the server
cd /usr/local/share
sudo mkdir mygitrepo
sudo useradd -d /usr/local/share/mygitrepo -c &quot;Git repo user&quot; gituser
sudo chown gituser mygitrepo
cd mygitrepo
sudo -u gituser mkdir myrepo1
sudo -u gituser git init --bare myrepo1
sudo passwd gituser

# On the client
mkdir project1
cd project1
touch dummyfile
git init
git add dummyfile
git commit -m &quot;Initial commit&quot;
git remote add origin ssh://gituser@myserver/usr/local/s…</description>
    </item>
    <item rdf:about="http://pockettheories.com/dokuwiki/doku.php?id=lxc&amp;rev=1777738418&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-05-02T16:13:38+00:00</dc:date>
        <dc:creator>reddy (reddy@undisclosed.example.com)</dc:creator>
        <title>lxc - created</title>
        <link>http://pockettheories.com/dokuwiki/doku.php?id=lxc&amp;rev=1777738418&amp;do=diff</link>
        <description>LXC Containers

Snippet for Debian/Ubuntu


sudo su -
apt install -y lxc lxc-templates
lxc-create -n mysrv1 -t download -- --dist ubuntu --release jammy --arch amd64
lxc-start -n mysrv1
lxc-attach -n mysrv1</description>
    </item>
    <item rdf:about="http://pockettheories.com/dokuwiki/doku.php?id=linux&amp;rev=1777738300&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-05-02T16:11:40+00:00</dc:date>
        <dc:creator>reddy (reddy@undisclosed.example.com)</dc:creator>
        <title>linux</title>
        <link>http://pockettheories.com/dokuwiki/doku.php?id=linux&amp;rev=1777738300&amp;do=diff</link>
        <description>Linux

Popular Topics

	*  bash
	*  bind
	*  chrony
	*  Docker
	*  diff
	*  FirewallD
	*  Git
	*  keepalive
	*  lxc
	*  mail
	*  rsync
	*  Samba
	*  SELinux
	*  SystemD Unit Files
	*  tuned
	*  ufw
	*  Vim
	*  VNC

Miscellaneous

Suppressing the Service Restart prompt for &quot;apt install&quot;


/etc/needrestart/needrestart.conf
$nrconf{verbosity} = 0;
$nrconf{restart} = &#039;a&#039;;

export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
export NEEDRESTART_MODE=a  # default is &quot;i&quot;nteractive…</description>
    </item>
    <item rdf:about="http://pockettheories.com/dokuwiki/doku.php?id=slackbotwithbolt&amp;rev=1777654388&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-05-01T16:53:08+00:00</dc:date>
        <dc:creator>reddy (reddy@undisclosed.example.com)</dc:creator>
        <title>slackbotwithbolt - created</title>
        <link>http://pockettheories.com/dokuwiki/doku.php?id=slackbotwithbolt&amp;rev=1777654388&amp;do=diff</link>
        <description>Slack Bot With Bolt

Within the Slack website

Go to api.slack.com , go to “Your Apps”, and “Create App”.

Enable Socket Mode, and in token add “connections::write”.

In the OAuth and Permissions tab, add the Bot Token Scopes. If you change these later, you will need to re-install the app to the workspace.</description>
    </item>
    <item rdf:about="http://pockettheories.com/dokuwiki/doku.php?id=python&amp;rev=1777654092&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-05-01T16:48:12+00:00</dc:date>
        <dc:creator>reddy (reddy@undisclosed.example.com)</dc:creator>
        <title>python</title>
        <link>http://pockettheories.com/dokuwiki/doku.php?id=python&amp;rev=1777654092&amp;do=diff</link>
        <description>Python

SlackBotWithBolt

JSON Serialization for Custom Classes

Attempting to run json.dumps() on a custom class results in the error: “Object of type  is not JSON serializable.” By returning the dict as the serializer in a lambda passed to the default parameter of json.dumps(), we can get the class to serialize to JSON.</description>
    </item>
    <item rdf:about="http://pockettheories.com/dokuwiki/doku.php?id=docker&amp;rev=1777279804&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-04-27T08:50:04+00:00</dc:date>
        <dc:creator>reddy (reddy@undisclosed.example.com)</dc:creator>
        <title>docker - [Ubuntu] </title>
        <link>http://pockettheories.com/dokuwiki/doku.php?id=docker&amp;rev=1777279804&amp;do=diff</link>
        <description>Installing

Debian


apt update
apt remove docker docker-engine docker.io containerd runc
apt install -y apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo &quot;deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable&quot; | tee /etc/apt/sources.list.d/docker.l…</description>
    </item>
    <item rdf:about="http://pockettheories.com/dokuwiki/doku.php?id=interesting202604&amp;rev=1776804018&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-04-21T20:40:18+00:00</dc:date>
        <dc:creator>reddy (reddy@undisclosed.example.com)</dc:creator>
        <title>interesting202604</title>
        <link>http://pockettheories.com/dokuwiki/doku.php?id=interesting202604&amp;rev=1776804018&amp;do=diff</link>
        <description>Interesting Stuff in April 2026

	*  Microsoft has an interesting Python tool, markitdown for converting documents to MarkDown.
	*  Cheap routers? See Cudy, Tenda, Mercusys.

Interesting Stuff in March 2026

	*  Looking for something to install on your NAS? Try JellyFin, Immich (Docker container only), and NextCloud.</description>
    </item>
    <item rdf:about="http://pockettheories.com/dokuwiki/doku.php?id=ruby&amp;rev=1776625154&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-04-19T18:59:14+00:00</dc:date>
        <dc:creator>reddy (reddy@undisclosed.example.com)</dc:creator>
        <title>ruby</title>
        <link>http://pockettheories.com/dokuwiki/doku.php?id=ruby&amp;rev=1776625154&amp;do=diff</link>
        <description>Ruby

Rails

Popular Gems

	*  EventMachine
	*  Kaminari
	*  Ransack
	*  Railties

Seed Data


bundle add faker  # Add it to only the development and test groups, if you are a stickler for convention

# In db/seeds.rb
50.times do
  MyModel.create! name: Faker::Name.name
end

rails db:migrate &amp;&amp; rails db:seed</description>
    </item>
</rdf:RDF>
