Skip to content

Instantly share code, notes, and snippets.

Avatar

David Ruhmann davidruhmann

View GitHub Profile
@davidruhmann
davidruhmann / index.md
Created Oct 22, 2020
Minecraft Bedrock Research
View index.md

‎‎​

View Logitech T650 on Windows 10.md
  1. Insert the unifying receiver.
  2. Download and Install the latest Unifying Receiver software. (version 250, firmware 024.010.00036 at time of writing)
  3. Download and Install the latest SetPoint software. (version 6.69.126, firmware 041.001.00038 at time of writing)
  4. Sync the T650 to your unifying receiver.
  5. Open SetPoint and make any changes to the SetPoint configuration for your T650.
    • You may need to restart the T650 and SetPoint for initial detection.
  6. Exit/close the SetPoint software (make sure it is fully closed and not in the tasktray)
  7. Open the Properties for C:\Program Files\Logitech\SetPointP\SetPoint.exe
View Program.cs
using System;
using System.IO;
using System.Net.Http;
using System.Xml.Linq;
namespace wsdl2class
{
class Program
{
public static HttpClient client = new HttpClient();
@davidruhmann
davidruhmann / dynamic_vapp_lease_extender.ps1.bat
Last active Jun 22, 2019
VMWare vCloud vApp Lease Extension Script
View dynamic_vapp_lease_extender.ps1.bat
;@echo off
;echo.>"%Temp%\vcloud.ps1"
;findstr -rbv ; %0 >> "%Temp%\vcloud.ps1"
;powershell -executionpolicy unrestricted -command "%Temp%\vcloud.ps1"
;exit /b
$api = "https://vcloud.example.com/api";
# requires powershell version 4+
# environment variables needed
# VCLOUD_AUTH = base64 encoding of user@org:password
View HiddenTask.vbs
Option Explicit
Dim args
args = """" & WScript.Arguments(0) & """"
Dim i
Dim temp
For i = 1 to WScript.Arguments.Count - 1
temp = WScript.Arguments(i)
temp = Replace(temp, " ", "")
temp = Replace(temp, " ", "")
temp = Replace(temp, "^", "")
@davidruhmann
davidruhmann / EventParams.cs
Last active Nov 2, 2020
C# Dynamic EventArgs
View EventParams.cs
// Copyright (c) 2015 David Ruhmann
using System;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Collections.Generic;
namespace ChartedCode
{
@davidruhmann
davidruhmann / Base.cs
Last active Jun 26, 2020
C# Numeric Base Conversion
View Base.cs
// Copyright (c) 2015 David Ruhmann
using System;
using System.Collections.Generic;
using System.Text;
namespace ChartedCode
{
public static class NumberExtensions
{
View ShareX_964-video_crash_log
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: StandardIn has not been redirected.
at System.Diagnostics.Process.get_StandardInput()
at ShareX.HelpersLib.ExternalCLIManager.WriteInput(String input)
at ShareX.ScreenRecordForm.StopRecording()
at ShareX.ScreenRegionForm.OnStopRequested()
at ShareX.ScreenRegionForm.btnAbort_MouseClick(Object sender, MouseEventArgs e)
@davidruhmann
davidruhmann / MessageDlg.cpp
Created Aug 3, 2015
Visual C++ MFC Message Dialog Class
View MessageDlg.cpp
#include "stdafx.h"
#include "MessageDlg.h"
#include <dcp_colorscheme.h> // GetSchemeBrush
#include <Nursing_MsgAPI_Macros.h> // MSGWRITE*
// Static Value Definitions
#define MIN_HEIGHT 50
#define MIN_WIDTH 50
#define MAX_HEIGHT 500
#define MAX_WIDTH 500
View SO28325246.md

Source Drive

If using a batch script, you can obtain the drive letter by using the 0 argument.

echo %~d0

Though if using folder mounts, you will want to keep the folder name as well.

wmic volume where label='Knox' get name

You can’t perform that action at this time.