Skip to content

Instantly share code, notes, and snippets.

View tcitworld's full-sized avatar

Thomas Citharel tcitworld

View GitHub Profile
@RobertKrajewski
RobertKrajewski / mattermost-dl.py
Last active June 21, 2024 20:44
This script allows to export the content (text+files) of an interactively selected Mattermost channel (public, private, group, direct message) to files. Tested on Mattermost 5.27 using Python 3.7
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
@tribela
tribela / empty_account.rb
Last active February 10, 2020 08:35
Find empty account from mastodon
# 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([])
@tateisu
tateisu / checkRetry.pl
Last active October 28, 2019 18:15
check sidekiq retry
#!/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. $!";

API documentation DRAFT

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.

@zauberstuhl
zauberstuhl / diaspora_api_register_client.sh
Created June 8, 2016 20:47
Diaspora API - Register a new application/client and retrieve an access token for your pod
#!/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"
@Kaligule
Kaligule / Support_Poche.md
Last active January 4, 2016 05:49
Support wallabag!

This is a list of Apps, Servives and Websites I want to support wallabag (as soon as the Api is launched). I should write them when the time has come.

Podcast Apps

Twitter Clients

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: