<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://memex.kyaruc.moe/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="https://memex.kyaruc.moe/feed.php">
        <title>kyaruc memex - quickref</title>
        <description></description>
        <link>https://memex.kyaruc.moe/</link>
        <image rdf:resource="https://memex.kyaruc.moe/_media/wiki:logo.png" />
       <dc:date>2026-11-24T01:47:01+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://memex.kyaruc.moe/quickref:git?rev=1764022916&amp;do=diff"/>
                <rdf:li rdf:resource="https://memex.kyaruc.moe/quickref:nginx?rev=1795457146&amp;do=diff"/>
                <rdf:li rdf:resource="https://memex.kyaruc.moe/quickref:postgres?rev=1795059193&amp;do=diff"/>
                <rdf:li rdf:resource="https://memex.kyaruc.moe/quickref:rsync?rev=1795060681&amp;do=diff"/>
                <rdf:li rdf:resource="https://memex.kyaruc.moe/quickref:wireguard?rev=1795058907&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://memex.kyaruc.moe/_media/wiki:logo.png">
        <title>kyaruc memex</title>
        <link>https://memex.kyaruc.moe/</link>
        <url>https://memex.kyaruc.moe/_media/wiki:logo.png</url>
    </image>
    <item rdf:about="https://memex.kyaruc.moe/quickref:git?rev=1764022916&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-11-24T22:21:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>git</title>
        <link>https://memex.kyaruc.moe/quickref:git?rev=1764022916&amp;do=diff</link>
        <description>Git

Git version control quick reference.

git send-email

Setup email server:


[sendemail]
	smtpserver = mail.example.org
	smtpuser = you@example.org
	smtpencryption = ssl
	smtpserverport = 465



git config --global user.email &quot;you@example.org&quot;
git config --global user.name &quot;Your Name&quot;</description>
    </item>
    <item rdf:about="https://memex.kyaruc.moe/quickref:nginx?rev=1795457146&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-23T18:05:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>nginx</title>
        <link>https://memex.kyaruc.moe/quickref:nginx?rev=1795457146&amp;do=diff</link>
        <description>nginx QuickRef

Recipes for the vhosts on this box: flat files, proxying local services to subdomains, and PHP apps through php-fpm. Vhosts live in /etc/nginx/sites-available/ symlinked into sites-enabled/. Certbot owns the listen 443 / port-80 redirect boilerplate, only the location logic is shown here. After any edit:</description>
    </item>
    <item rdf:about="https://memex.kyaruc.moe/quickref:postgres?rev=1795059193&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-19T03:33:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>postgres</title>
        <link>https://memex.kyaruc.moe/quickref:postgres?rev=1795059193&amp;do=diff</link>
        <description>PosgreSQL QuickRef

PostgreSQL quick reference.

Create Role &amp; DB


CREATE DATABASE &lt;dbname&gt;;
CREATE ROLE &lt;rolename&gt;;
ALTER USER &lt;rolename&gt; WITH PASSWORD &#039;&lt;password&gt;&#039;;
ALTER USER &lt;rolename&gt; WITH LOGIN;
ALTER DATABASE &lt;dbname&gt; OWNER TO &lt;rolename&gt;;
GRANT ALL PRIVILEGES ON DATABASE &lt;dbname&gt; TO &lt;rolename&gt;;</description>
    </item>
    <item rdf:about="https://memex.kyaruc.moe/quickref:rsync?rev=1795060681&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-19T03:58:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>rsync</title>
        <link>https://memex.kyaruc.moe/quickref:rsync?rev=1795060681&amp;do=diff</link>
        <description>rsync QuickRef

rsync has no built-in date filter. Select files with find and hand the list to --files-from.

Move files older than a date


# 1. build the list -- paths must be relative to the source root
cd /path/src
find . -type f ! -newermt &#039;2026-01-01 00:00:00&#039; -print0 &gt; /tmp/oldfiles

# 2. transfer
rsync -a --from0 --files-from=/tmp/oldfiles . /path/dst</description>
    </item>
    <item rdf:about="https://memex.kyaruc.moe/quickref:wireguard?rev=1795058907&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-19T03:28:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>wireguard</title>
        <link>https://memex.kyaruc.moe/quickref:wireguard?rev=1795058907&amp;do=diff</link>
        <description>WireGuard Server (Debian)

Notes from diagnosing a Debian WireGuard server with roaming clients (one peer per device) NAT&#039;d out to the internet.

Symptom

The tunnel comes up and wg show reports a handshake, but nothing works: no ping to the server, no traffic to the internet, and the handshake counter never moves again.</description>
    </item>
</rdf:RDF>
