Skip to content

Instantly share code, notes, and snippets.

// you can also use imports, for example:
import java.util.Arrays;
// you can write to stdout for debugging purposes, e.g.
// System.out.println("this is a debug message");
class Solution {
public int solution(int[] A) {
int res = 1;
// Implement your solution here
@HauptJ
HauptJ / sendMeetInvite.js
Created November 29, 2025 03:45
Send Google Meet Invites from Google Form spreadsheet entries
const GLOBAL_EVENT_ID_CELL = "E2";
const GLOBAL_TZ = "America/Chicago";
const GLOBAL_TZ_MOD = "-06:00";
function initMeeting(calendarId, eventReqId, eventOwner, eventName, eventStart, eventEnd, eventDesc) {
try {
if(calendarId == null || eventReqId == null || eventOwner == null || eventName == null || eventStart == null | eventDesc == null) {
throw "Required parameneters not present"
}
var attendees = [{email: eventOwner}];
@HauptJ
HauptJ / configWSL.ps1
Created November 22, 2025 22:22
PowerShell script to configure WSL and install distros
#Requires -RunAsAdministrator
param (
[string[]] $optDistros = @("Ubuntu-24.04"),
[string[]] $optConfigs = @("[wsl2]", "networkingMode=mirrored")
)
function updateWSLConfig {
Param(
@HauptJ
HauptJ / enableRDP.ps1
Created November 22, 2025 01:40
PowerShell script to enable RDP, and disable sleep timeout on Windows.
#Requires -RunAsAdministrator
param (
[bool] $optRestart = $false,
[bool] $optDisableSleep = $false
)
try {
$rdpStatus = Get-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\' -Name "fDenyTSConnections"
#include "Dobermann.h"
#include "HellLogging.h"
#include "Input/Input.h"
#include "Ragdoll/RagdollManager.h"
#include "Renderer/Renderer.h"
#include "World/World.h"
#include "UniqueID.h"
#include "HellConstants.h"
void Dobermann::Init(DobermannCreateInfo createInfo) {
#pragma once
#include "HellTypes.h"'
#include "HellConstants.h"
#include "CreateInfo.h"
#include "Types/Game/AnimatedGameObject.h"
struct Dobermann {
void Init(DobermannCreateInfo createInfo);
void Update(float deltaTime);
@HauptJ
HauptJ / MyStringMap.h
Created November 15, 2025 23:52
MyStringMap.h StringMap / HashMap QuadraticProving Implementation in Progress
//
// Created by josh on 11/15/2025.
//
#ifndef MYSTRINGMAP_H
#define MYSTRINGMAP_H
#include "abstractstringmap.h"
#include <string>
#include <utility>
@HauptJ
HauptJ / vscode.yml
Created November 13, 2025 04:02
Ansible Script to Install VSCode on RHEL Systems with DNF
#!/usr/bin/env ansible-playbook
---
- name: Install Text Editors
hosts: localhost
become: true
gather_facts: False
tasks:
- name: Add VSC repo
@HauptJ
HauptJ / optFeatures.ps1
Created November 9, 2025 23:43
PowerShell Script to Enable Windows Optional Features - Specifically HyperV and WSL By Default
#Requires -RunAsAdministrator
param (
[string[]] $optFeatures = @("Microsoft-Hyper-V-All", "VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux"),
[bool] $optRestart = $False
)
try {
foreach($feature in $optFeatures) {
Enable-WindowsOptionalFeature -Online -FeatureName $feature -All -NoRestart
@HauptJ
HauptJ / tex.yml
Created October 4, 2025 17:19
Ansible Playbook to Install Latex on Fedora
#!/usr/bin/env ansible-playbook
---
- name: Install and Configure LaTex
hosts: localhost
become: true
gather_facts: False
vars:
tex_live: texlive-scheme-full
tex_live_retries: 888