Skip to content

Instantly share code, notes, and snippets.

@matnav
matnav / convert_teams_wiki.py
Created March 11, 2024 23:22 — forked from kai2nenobu/convert_teams_wiki.py
Convert a mht file for Microsoft Teams Wiki into markdown format
import argparse
import logging
import sys
from bs4 import Tag, NavigableString, BeautifulSoup
logger = logging.getLogger(__name__)
class Context:
@matnav
matnav / hosts.ps1
Created June 24, 2019 14:59 — forked from markembling/hosts.ps1
Powershell script for adding/removing/viewing entries to the hosts file.
#
# Powershell script for adding/removing/showing entries to the hosts file.
#
# Known limitations:
# - does not handle entries with comments afterwards ("<ip> <host> # comment")
#
$file = "C:\Windows\System32\drivers\etc\hosts"
function add-host([string]$filename, [string]$ip, [string]$hostname) {
# BOXSTARTER SETUP DESKTOP MACHINE
## HABILITAR POWERSHELL
###### Set-ExecutionPolicy RemoteSigned
## Automatizar setup de maquina com chocolatey
# INSTALL BOXSTARTER (POWERSHELL ADMIN)
###### . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
@matnav
matnav / CW-EmailConnectorMonitor.ps1
Last active February 11, 2019 18:23 — forked from jacksoneyton/CW-EmailConnectorMonitor.ps1
ConnectWise mailbox monitor - For Office365
##This script will check the $email mailbox to make sure there are no emails older than 10 min.
## Requires Exchange Web Services Managed API 2.2
$email = '[email protected]'
$password ='Password'
Import-Module 'C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll'
$Service = [Microsoft.Exchange.WebServices.Data.ExchangeService]::new()
$Service.Credentials = [System.Net.NetworkCredential]::new($email, $Password)
@matnav
matnav / VipreRemovalScript.cmd
Last active June 20, 2019 19:40 — forked from radiumsoup/VipreRemovalScript.cmd
Vipre Removal Script
@echo off
setlocal
setlocal EnableDelayedExpansion
echo ####################################################
echo # #
echo # VIPRE Business Removal Tool v0.2.3 #
echo # #
echo # Last update: Jan 30, 2019 #
echo # Source Instructions: https://bit.ly/22VkcUj #