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 -}} |
jmjl / gist:aea99b3445194b04b992fe4c5b6800d7
0 likes
0 forks
1 files
Last active
Based on KeyCloak's Design Document
$ curl -s "https://id.tilde.green/realms/tgci/.well-known/openid-configuration" |jq '.'
{
"issuer": "https://id.tilde.green/realms/tgci",
alexlehm / gist:359a392fd1744b8e9439e8775714b4c8
0 likes
0 forks
1 files
Last active
1 | test |
2 | test |
3 | test |
4 | test |
5 | test |
alexlehm / gist:1fef84e65f814dc9b68f439152a4e083
0 likes
0 forks
1 files
Last active
1 | #! /bin/sh |
2 | |
3 | # create an opengist file and push it to the server |
4 | # |
5 | # alexlehm/at/gmail.com |
6 | |
7 | TMPDIR=git_gist.$$ |
8 | |
9 | if [ `expr "$1" : "https://"` = 0 ] |
10 | then |
alexlehm / gist:d20151da3f104445a00f7b7cf6e77acc
0 likes
0 forks
1 files
Last active
1 | #! /bin/sh |
2 | |
3 | # create an opengist file and push it to the server |
4 | # |
5 | # alexlehm/at/gmail.com |
6 | |
7 | TMPDIR=git_gist.$$ |
8 | |
9 | if [ `expr "$1" : "https://"` = 0 ] |
10 | then |
alexlehm / tagpacker to netscape html converter
0 likes
0 forks
1 files
Last active
convert tagpacker html explort to netscape format to import it to linkwarden
1 | #! perl |
2 | # |
3 | # convert tagpacker html export to a netscape html compatible format to make it importable in linkwarden |
4 | # the script is pretty sloppy, it will likely break for some lines |
5 | # |
6 | # alexlehm/at/gmail.com |
7 | # |
8 | # https://wiki.creativecommons.org/wiki/CC0 |
9 | # |
alexlehm / pocket to netscape html converter
0 likes
0 forks
1 files
Last active
make pocket exports importable in linkwarden
1 | #! perl |
2 | # |
3 | # convert pocket html export to a netscape html compatible format to make it importable in linkwarden |
4 | # the script is pretty sloppy, it will likely break for some lines |
5 | # |
6 | # alexlehm/at/gmail.com |
7 | # |
8 | # https://wiki.creativecommons.org/wiki/CC0 |
9 | # |
Newer
Older