Skip to content

Instantly share code, notes, and snippets.

@paxmanchris
paxmanchris / get-uninstallstrings.ps1
Created December 12, 2021 19:59
Get uninstall strings from windows registry
# some apps will not show up in the wmi win32_product object, but there is a way to get the uninstall string for everything
# this will troll the registry and show those apps. Note that the uninstall strings listed will likly not be silent or unattended
# so you may need to do your own research on how to do that
function get-uninstall-list {
param (
$Installed
)
$sanity = new-object System.Collections.ArrayList
<?php
/*
quick and dirty key value store for mysql
*/
/*
CREATE DATABASE `notes`;
USE `notes`;
@paxmanchris
paxmanchris / sso_login_discourse.php
Last active December 26, 2023 09:53
Discourse sso provider login
<?php
require('mysql.php'); // see https://gist.github.com/paxmanchris/f5d4b94f67a8acd8cefc
$me = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
$sso_secret = 'YOUR_SSO_PROVIDER_KEY_HERE';
$discourse_url = 'http://example.com';
if(!empty($_GET) and isset($_GET['sso'])){