Skip to content

Instantly share code, notes, and snippets.

View dmulder's full-sized avatar

David Mulder dmulder

View GitHub Profile
@dmulder
dmulder / main.rs
Created July 10, 2024 16:12
A simple test dbus extension that should respond to requests for the MS Identity Broker
use std::error::Error;
use std::future::pending;
use zbus::{connection, interface};
pub struct Broker;
#[interface(name = "com.microsoft.identity.broker1")]
impl Broker {
#[allow(non_snake_case)]
fn getAccounts(&mut self, num: f32, session_id: &str, context: &str) -> String {
@dmulder
dmulder / main.go
Created September 9, 2021 16:27
Slack autotoken modified to simply load a browser for authentication (for complicated auth situations). Taken from https://github.com/insomniacslk/irc-slack
// autotoken retrieves a Slack token and cookie using your Slack team
// credentials.
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
/*
Unix SMB/CIFS implementation.
Samba utility functions
Copyright (C) David Mulder <[email protected]> 2021
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@dmulder
dmulder / MultiLineEdit.py
Created August 1, 2019 22:52
MultiLineEdit test file
from yast import import_module
import_module('UI')
from yast import *
UI.OpenDialog(
VBox(
MultiLineEdit(Id('problem'), 'Enter text here:'),
PushButton("&OK"),
)
)