Skip to content

Instantly share code, notes, and snippets.

@mmims
mmims / Program.cs
Created January 22, 2014 14:56
Example code using the ProgressableCopy library
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
namespace ProgressableCopy
{
class Program
@mmims
mmims / Program.cs
Created February 20, 2014 16:37
Eject CD/DVD in WinPE environment
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace EjectMedia
{
class Program
{
'scopeName': 'source.batchfile'
'name': 'Batch File'
'fileTypes': [
'bat'
'cmd'
]
'patterns': [
{
'include': '#commands'
}
@mmims
mmims / Set-ScanState.ps1
Last active February 7, 2018 18:30
Sets the scan state for Nessus security scans. When run without the Relax switch, the security settings needed for scanning will be set to the suggested STIG settings. Use the Relax switch to undo the STIG settings that prevent Nessus from remote scanning capability. A reboot is required for the settings to take effect.
<#
.SYNOPSIS
Sets the scan state for Nessus security scans.
.DESCRIPTION
Sets the scan state for Nessus security scans. When run without the Relax switch, the security settings needed for scanning will be set to the suggested STIG settings. Use the Relax switch to undo the STIG settings that prevent Nessus from remote scanning capability. A reboot is required for the settings to take effect.
.PARAMETER Relax
Relaxes security settings to enable remote scanning of the machine.

Simple Turkey Chili

Ingredients

  • 2 lb Ground Turkey
  • 2 onions, chopped
  • 2 bell peppers, chopped
  • 2 carrots, quartered and diced
  • 1 jalepeno, diced
  • 2 cups water
@mmims
mmims / Dockerfile
Created June 16, 2022 12:43
Pihole + Unbound Container
FROM pihole/pihole:latest
RUN apt-get update && apt-get install -Vy php-cli php-sqlite3 php-intl php-curl unbound wget
RUN wget -O - https://raw.githubusercontent.com/jacklul/pihole-updatelists/master/install.sh | bash
COPY start-services.sh /start-services.sh
COPY unbound-pi-hole.conf /etc/unbound/unbound.conf.d/pi-hole.conf
RUN chmod +x /start-services.sh
RUN unbound-anchor; unbound-checkconf
@mmims
mmims / openapi.json
Last active March 19, 2025 18:46
Collecter Service API
{
"openapi": "3.1.0",
"info": {
"title": "Sigman Collector Service",
"description": "A service for collecting signals data.",
"version": "0.1.0"
},
"paths": {
"/api/v1/ceoi": {
"post": {
@mmims
mmims / air.schema.json
Last active July 17, 2025 16:17
Air JSON Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Air Configuration",
"type": "object",
"properties": {
"root": {
"type": "string",
"description": "Working directory, either '.' or an absolute path.",
"default": "."
},