Skip to content

Instantly share code, notes, and snippets.

@2legit2git
2legit2git / take-control-fix.ps1
Last active February 5, 2025 10:57
Fix for N-Central Take Control issue on February 3, 2025. Adds "LogLevel=8" to BASupSrvc.ini and restarts Take Control services. I found all of our installations had the file located in the first $FileName variable. Uncomment the line that corresponds to the correct location for the .ini.
$FileName = "C:\ProgramData\GetSupportService\BASupSrvc.ini"
#$FileName = "C:\ProgramData\GetSupportService_N-central\BASupSrvc.ini"
#$FileName = "C:\ProgramData\GetSupportService_LOGICnow\BASupSrvc.ini"
$Pattern = "[Main]"
$FileOriginal = Get-Content $FileName
[String[]] $FileModified = @()
Foreach ($Line in $FileOriginal)
{
@keeferrourke
keeferrourke / flac2opus
Last active December 7, 2024 06:49
This is a script to convert all flac files in a given directory to ogg/opus. I wrote this because mp3 kinda sucks and opus is a free format that is pretty much taking over the internet.
#!/bin/bash
# Copyright 2017 Keefer Rourke <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCNUMBERLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY