Skip to content

Instantly share code, notes, and snippets.

@alyx
alyx / atheme.diff
Created June 15, 2019 09:32
Update dist/ and etc/ to match user expectations.
diff --git a/dist/atheme.conf.example b/dist/atheme.example.conf
similarity index 100%
rename from dist/atheme.conf.example
rename to dist/atheme.example.conf
@alyx
alyx / atheme-pam.c
Created June 16, 2019 10:24
Atheme/PAM Authentication Module for Linux-based Systems
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <security/pam_appl.h>
#include <security/pam_modules.h>
#include <xmlrpc-c/base.h>
#include <xmlrpc-c/client.h>
#define NAME "Atheme/PAM Identify Validator"
#define VERSION "1.0"
1. What is your target market?
2. Why choose this market?
3. What products are currently being used?
4. What makes those products popular within your target market?
5. What do those products/platforms do poorly?
6. How will your product resolve these issues / what will your product do better?
7. What is the **end goal** for your product?
@alyx
alyx / balefire.py
Created November 8, 2020 22:41
bitbot, now with balefiring
#--depends-on commands
from src import ModuleManager, utils
class Module(ModuleManager.BaseModule):
@utils.hook("received.message.channel")
def channel_message(self, event):
message_lower = event["message"].lower()
if message_lower.startswith('balefires') == False:
return