Skip to content

Instantly share code, notes, and snippets.

View Oceanswave's full-sized avatar
🎯
Focusing

Sean McLellan Oceanswave

🎯
Focusing
View GitHub Profile
@Oceanswave
Oceanswave / main.py
Last active January 28, 2024 17:41
Streaming Transcriber w/ Whisper v3
#! python3.7
import argparse
import io
import os
import torch
from transformers import pipeline
import speech_recognition as sr
from datetime import datetime, timedelta
Renaming a Proxmox VE Node
I recently upgraded my homelab Proxmox host server and wanted to repurpose my existing server to use as a testing environment. Below are the steps I used to rename the old Proxmox instance. These steps worked for me. Please let me know in the comments if you try these steps and any issues arise that I didn't have in my environment.
NOTE: Renaming a node that is part of a cluster is not recommended. These steps are intended for standalone nodes. Always make backups of important VMs before attempting to modify the Proxmox host.
Log into ProxMox VE, either at the console, via SSH or the web UI and launch the web shell
Run the following commands, alternatively you can manually edit each file mentioned with nano or vi and replace the old hostname with the new one
# set the old hostname and write to ini
echo "OLD_HOSTNAME=$(hostname)" > ~/pmrename.ini
# set the new hostname in ini, update as needed
@Oceanswave
Oceanswave / Download-SharePoint2019.ps1
Created April 19, 2022 03:50
Download SharePoint 2019 Image
$rgName = "sp2019"
$rgLocation = "eastus2"
$vmSize = "Standard_D2s_v3"
$vmName = "sp2019-test"
$vmAuthenticationType = "password" # ssh
$vmImage = "MicrosoftSharePoint:MicrosoftSharePointServer:sp2019:latest"
$vmUserName = "sp2019"
$vmPassword = "P@ssw0rd1234"
$vmStorageAccountName = "sp2019vm"
$vmStorageAccountSku = "Standard_LRS"
@Oceanswave
Oceanswave / Web.config
Last active November 3, 2021 22:41
default sitecore webconfig
<configuration>
<configSections>
<section name="sitecore" type="Sitecore.Configuration.RuleBasedConfigReader, Sitecore.Kernel"/>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, Sitecore.Logging"/>
<section name="RetryPolicyConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Configuration.RetryPolicyConfigurationSettings, Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.
Configuration, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission="true"/>
<section name="configBuilders"
type="System.Configuration.ConfigurationBuildersSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
@Oceanswave
Oceanswave / clone-devops-repos
Created September 19, 2021 15:13
Clone All Azure DevOps Repos
param(
[string]$Organization
)
if ($Organization -notmatch '^https?://dev.azure.com/\w+') {
$Organization = "https://dev.azure.com/$Organization"
}
# Make sure we are signed in to Azure
$AccountInfo = az account show 2>&1
@Oceanswave
Oceanswave / gist:d7e2263679f7fee72f97972e029f08f7
Last active July 22, 2021 05:18
Ubuntu boot from RPi MSD
1) Download the Ubuntu image for raspberry pi 4 form the Ubuntu official website.
2) Flash the image to a USB drive (USB 3.0 SSD or UBS flash drive).
3) Download the updated firmware files from the raspberry pi github site (https://github.com/raspberrypi/firmware ... aster/boot). Copy all *.dat and *.elf files to the Ubuntu boot partition. (Overwrite the files that were previously there).
NOTE: You must have MSD Booting EEPROM flashed onto your RPI4, or else this will not work!!! See: https://www.raspberrypi.org/documentati ... torageboot
Note: As of August 2020, you may not need to perform step 3. It has been reported that the current Ubuntu image contains the correct firmware files. I will leave this step here in case it does help someone. Be aware that it may not be necessary, but does not hurt to do anyway.
4) Decompress vmlinuz on the boot partition
@Oceanswave
Oceanswave / move.sql
Last active May 24, 2021 15:00
Move SQL Files
--config variables
DECLARE @logpath NVARCHAR(260) = 'C:\SitecoreDBs\logs\'
DECLARE @datapath NVARCHAR(260) = 'C:\SitecoreDBs\data\'
DECLARE @movelogs BIT = 1
DECLARE @movedata BIT = 1
--runtime variables
DECLARE @STMT NVARCHAR(4000)
--uncomment the predicates to include and exclude databases as required
<div style="display:block;position:relative;min-width:0px;max-width:640px"><div style="padding-top:56.25%"><video data-video-id="5742275941001" data-account="5718741448001" data-player="default" data-embed="default" data-usage="cms:sharepoint:16.0.7625.1214:4.0.0-beta20:javascript" class="video-js" controls="" style="width:100%;height:100%;position:absolute;top:0px;bottom:0px;right:0px;left:0px"></video><script src="//players.brightcove.net/5718741448001/default_default/index.min.js"></script></div></div>
@Oceanswave
Oceanswave / MessageTemplate-AM.txt
Last active October 7, 2017 02:43
Remote Work Message Templates
<p>Good Morning,</p>
<p>I have started my work day.<br/>
<ul>
<li>Start Time: {{format startWorkTime 'h:mm tt'}}</li>
<li>End Time: {{format endWorkTime 'h:mm tt'}}</li>
<li>Phone: 571-393-1415</li>
</ul>
</p>
<p>
@Oceanswave
Oceanswave / standard_dev_tools_.md
Last active November 4, 2023 17:14
Standard Dev Tools

Homebrew install:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

macOS Standard Tools:

brew install awscli azcopy azure-cli azure-functions-core-tools balena-cli certbot cmake ctop deno doctl ffmpeg fftw freetype gh git git-flow go graphviz helm jq mkcert mono ncurses nvm packer pyenv python@3.8 qpdf rtmpdump serverless telnet terraform terragrunt wget yarn youtube-dl pandoc rustup tailscale

brew install --cask aerial anaconda caffeine citrix-receiver google-chrome iterm2 lens powershell transmission visual-studio-code microsoft-azure-storage-explorer vlc qbittorrent