jmjl / gist:bfe8b1b64d0b416a9977015ed67561d9
0 likes
0 forks
3 files
Last active
1 | #!/bin/bash |
2 | # Configurable variables |
3 | PATH=/bin:/usr/bin:/usr/local/bin |
4 | DOC_ROOT=~/temp/www |
5 | DEF_HTML=index.html |
6 | DEF_DIR=www |
7 | LOG_FACILITY=local1 |
8 | # End of configurables |
9 | HTTP_VERSION="HTTP/1.0" |
10 | SERVER="bash-httpd/0.04" |
alexlehm / gist:1431ef88eff44196b5901d1487c9a9d5
0 likes
0 forks
3 files
Last active
1 | openssl genrsa -out relay.key 2048 |
2 | openssl req -new -key relay.key -out relay.csr |
3 | openssl x509 -req -in relay.csr -signkey relay.key -out relay.crt -days 3650 -sha256 -extfile v3.ext |
alexlehm / config-v1.1.xml
0 likes
0 forks
2 files
Last active
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <clientConfig version="1.1"> |
3 | <emailProvider id="tilde.green"> |
4 | <domain>tilde.green</domain> |
5 | <displayName>Tilde.green email</displayName> |
6 | <displayShortName>Tilde.Green</displayShortName> |
7 | <incomingServer type="imap"> |
8 | <hostname>imap.tilde.green</hostname> |
9 | <port>993</port> |
10 | <socketType>SSL</socketType> |
alexlehm / gist:bc17dafe5a454c78971c5f3c77318347
0 likes
0 forks
1 files
Last active
1 | telnet -4 im.chaotic.ninja 6668 |
2 | Trying 154.53.34.77... |
3 | telnet: Unable to connect to remote host: Connection timed out |
alexlehm / gist:a3d3fb8df0f54b08a0dc0d6c007d4b00
0 likes
0 forks
1 files
Last active
1 | local.test |
2 | tilde.food+drink |
3 | tilde.club |
4 | tilde.projects |
5 | tilde.meetups |
6 | comp.admin.policy |
7 | comp.ai |
8 | comp.ai.alife |
9 | comp.ai.doc-analysis.misc |
10 | comp.ai.doc-analysis.ocr |
jmjl / gist:49a614ceabe74be0971478a86c5ae7fb
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # mpdsrvp |
3 | # |
4 | # Serve a MPD instance on a different port already in a partition |
5 | # This "adds" partition support for mpd clients that don't support it. |
6 | # |
7 | # ~jmjl |
8 | : "${mpd_srv_addr:="127.0.0.1"}" |
9 | : "${mpd_srv_port:="6600"}" |
jmjl / gist:374a2fc9703f4c888555fde75e69605e
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # Assuming you want to make a random private /120 prefix in IP and have all of |
3 | # those addresses assigned to the loopback interface (dev lo), and you're root, |
4 | # and have https://gitlab.com/ipcalc/ipcalc installed, and aren't in a network |
5 | # namespace other than global, run: |
6 | # |
7 | # If you also want to be able to bind to those IP addresses, run the following command: |
8 | # sysctl -w net.ipv6.ip_nonlocal_bind = 1 |
9 | # |
10 | # |
alexlehm / gist:ff5ee5bfe89b4ec3a807053a714bffef
1 likes
0 forks
1 files
Last active
1 | Incoming: |
2 | Servername: imap.tilde.green |
3 | Port: 993 |
4 | Username: username |
5 | Conenction security: SSL/TLS |
6 | Authentication method: Normal password |
7 | |
8 | Outgoing: |
9 | Servername: smtp.tilde.green |
10 | Port: 465 |
jmjl / gist:2b3a2285602f4aacb70e912b61519920
0 likes
0 forks
2 files
Last active
I DON'T THINK THIS SATISFIES THE https://validator.w3.org/feed/docs/atom.html#sampleFeed spec Modify hugo's default RSS feed to make the post's content shown be the post's full content and not only a short snippet of it. To be placed as layouts/index.xml (or renamed to whatever the feed name would be )
1 | From <https://github.com/ttys3/hugo-theme-terminal/blob/86c8d80e396b82f28927b659e0e0edd9d8959afe/layouts/_default/home.rss.xml> |
2 | |
3 | You should probably use this instead. |
4 | |
5 | <EOF |
6 | {{- $pctx := . -}} |
7 | {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} |
8 | {{- $pages := slice -}} |
9 | {{- if or $.IsHome $.IsSection -}} |
10 | {{- $pages = $pctx.RegularPages -}} |
Newer
Older