Skip to content

Instantly share code, notes, and snippets.

View anthonywong's full-sized avatar
🏠
Working from home

Anthony Wong anthonywong

🏠
Working from home
View GitHub Profile
@RobertKrajewski
RobertKrajewski / mattermost-dl.py
Last active December 31, 2025 11:00
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
@semenko
semenko / dmidecode
Last active October 26, 2021 02:57
Dell XPS 13 2015 model 9343 on Ubuntu 15.04, dmidecode, lsusb, lspci
$ sudo dmidecode
# dmidecode 2.12
# SMBIOS entry point at 0x000f0000
SMBIOS 2.8 present.
<SNIP>
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
@chihchun
chihchun / gist:5432992
Created April 22, 2013 07:15
Canonical kernel contribution between v3.8..v3.9-rc8
$ git log --graph --pretty=format:"%an <%ae>" --abbrev-commit v3.8..v3.9-rc8 --author=canonical|sort -n|uniq -c|sort -nr
24 * David Henningsson <david.henningsson@canonical.com>
20 * Ming Lei <ming.lei@canonical.com>
12 * Tim Gardner <tim.gardner@canonical.com>
12 * Maarten Lankhorst <maarten.lankhorst@canonical.com>
6 * Seth Forshee <seth.forshee@canonical.com>
6 * AceLan Kao <acelan.kao@canonical.com>
4 * Colin Ian King <colin.king@canonical.com>
3 * Tyler Hicks <tyhicks@canonical.com>
2 * Paolo Pisati <paolo.pisati@canonical.com>