This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "q67iw187djnoimfcz4t9xk3ibe", | |
"name": "Run Name", | |
"description": "Status update description", | |
"owner_user_id": "9pjzm4kit7gp7mwadmcs697dyo", | |
"reporter_user_id": "9pjzm4kit7gp7mwadmcs697dyo", | |
"team_id": "7wx1ybtjebgyfp7b77r1x3pp7c", | |
"channel_id": "fhma9oci8jgqiy5em1s4k6gypy", | |
"create_at": 1630591134576, | |
"end_at": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "q67iw187djnoimfcz4t9xk3ibe", | |
"name": "Run Name", | |
"description": "", | |
"owner_user_id": "9pjzm4kit7gp7mwadmcs697dyo", | |
"reporter_user_id": "9pjzm4kit7gp7mwadmcs697dyo", | |
"team_id": "7wx1ybtjebgyfp7b77r1x3pp7c", | |
"channel_id": "fhma9oci8jgqiy5em1s4k6gypy", | |
"create_at": 1630591134576, | |
"end_at": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Total Active Users (non-bots) | |
SELECT COUNT(DISTINCT u.Id) | |
FROM Users AS u | |
LEFT JOIN Bots ON u.Id = Bots.UserId | |
WHERE u.DeleteAt = 0 | |
AND Bots.UserId IS NULL; | |
-- Total Teams | |
SELECT COUNT(*) FROM Teams | |
WHERE DeleteAt = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# mmctl-export-downloader.sh | |
## ABOUT | |
# | |
# This script automates the process of downloading a very large Mattermost bulk | |
# exports using mmctl. | |
# | |
## USAGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LdapServer="LdapServer" | |
LdapPort="LdapPort" | |
BindUsername="BindUsername" | |
BindPassword="BindPassword" | |
BaseDN="BaseDN" | |
UserFilter="UserFilter" | |
GroupFilter="GroupFilter" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
jq_cmd=jq | |
[[ $(type -P "$jq_cmd") ]] || { | |
echo "'$jq_cmd' command line JSON processor not found"; | |
echo "Please install on linux with 'sudo apt-get install jq'" | |
echo "Please install on mac with 'brew install jq'" | |
exit 1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
## mm_fix_compliance_reports.rb | |
# | |
## ABOUT | |
# | |
# This script takes a Mattermost Compliance Monitoring export CSV and replaces | |
# the direct message channel names with the corresponding usernames. For | |
# example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
## migrate_custom_emoji.rb | |
# | |
## ABOUT | |
# | |
# This script migrates custom emoji from one Mattermost instance to another. | |
# While it can be run on the source, any machine that can access both | |
# servers via HTTP that has a copy of the `/opt/mattermost/data/emoji` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
timestamp_string=`date -Iseconds` | |
parent_dir=`pwd` | |
dirname="$HOSTNAME-$timestamp_string" | |
dirpath="$parent_dir/$dirname" | |
tarname="$dirname.tgz" | |
tarpath="$parent_dir/$tarname" | |
if [[ $1 == "--help" || $1 == "-h" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'json' | |
require 'net-ldap' | |
### | |
## make_ldap_users.rb | |
# | |
# This script automates the process of importing users from a Mattermost bulk |