As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/bash | |
echo -n "Name your client (MyBot): " | |
read client_name | |
echo -n "Define your pod address (with https://): " | |
read domain | |
cookie_file="/tmp/.cookie" | |
openid_url="$domain/api/openid_connect" |
The OCS Registration API allows you to register for an account, check the status of the registration and get initial login credentials from within clients.
The base URL for all calls to the API is: <nextcloud_base_url>/ocs/v2.php/apps/registration/api/v1
If cloud providers implement that api they need to provide all of the endpoints described in the following.
All calls to OCS endpoints require the OCS-APIRequest header to be set to true.
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use JSON::XS; | |
use Data::Dump qw(dump); | |
open(my $fh,"-|","docker exec mastodon1_redis_1 redis-cli zrange retry 0 -1") | |
or die "can't open redis-cli. $!"; |
# frozen_string_literal: true | |
Account | |
.local.without_suspended | |
.where('accounts.created_at < ?', 30.days.ago) | |
.where(note: '') | |
.where(display_name: '') | |
.where(avatar_file_name: nil) | |
.where( | |
Account.arel_table[:fields].eq(nil).or( | |
Account.arel_table[:fields].eq([]) |
import os | |
import sqlite3 | |
from datetime import datetime, date | |
from typing import Tuple, Dict, List | |
import getpass | |
from mattermostdriver import Driver | |
import pathlib | |
import json |