All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

admin / SMTP_servers

0 likes
0 forks
2 files
Last active 1760962847
1 from datetime import datetime
2 import asyncore
3 from smtpd import SMTPServer
4
5 class EmlServer(SMTPServer):
6 no = 0
7 def process_message(self, peer, mailfrom, rcpttos, data):
8 filename = '%s-%d.eml' % (datetime.now().strftime('%Y%m%d%H%M%S'),
9 self.no)
10 f = open(filename, 'w')

admin / custom_jwt.js

0 likes
0 forks
1 files
Last active 1760343424
1 /**
2 * This function is called during the access token generation process to get custom claims for the access token.
3 * Limit custom claims to under 50KB.
4 *
5 * @param {Payload} payload - The input argument of the function.
6 *
7 * @returns The custom claims.
8 */
9 const getCustomJwtClaims = async ({ token, context, environmentVariables, api }) => {
10 const user = context.user;

admin / ssh-port.service

0 likes
0 forks
1 files
Last active 1757887718
1 [Unit]
2 Description=SSH tunnel
3 After=network-online.target
4 [Service]
5 ExecStart=/usr/bin/ssh -NT \
6 -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes \
7 -R 4433:127.0.0.1:4430 user@1.2.3.4 -p 22
8 RestartSec=15
9 Restart=always
10 [Install]

admin / preparings

0 likes
0 forks
4 files
Last active 1764863694
1 #!/bin/sh
2
3 set -e
4
5 echo 'Preparing start!'
6
7 # prepare packges
8 echo '--------------------'
9 echo 'install packages'
10 echo '--------------------'
Newer Older

Powered by Opengist ⋅ Load: 143ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文