Skip to content

Instantly share code, notes, and snippets.

View jjeffery's full-sized avatar

John Jeffery jjeffery

  • Brisbane, Australia
View GitHub Profile
@jjeffery
jjeffery / debloat-windows-11.md
Last active February 5, 2024 13:11
Debloat Windows 11

Debloating Windows 11

Uninstall apps

Windows 11 has a new app uninstall interface which is pretty good. To get there run "Settings", choose "Apps" from the sidebar and then choose "Installed apps". Remove anything you don't want. (e.g. Microsoft Family).

Uninstall XBox Game Bar

You can uninstall other XBox related apps from the "Settings" app, but XBox Game Bar will not uninstall.

@jjeffery
jjeffery / IE.cs
Last active August 20, 2019 22:41
using System;
using System.IO;
using System.Windows.Forms;
using Microsoft.Win32;
namespace Example
{
static class IE
{
private const string FeatureControlKey = @"SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl";
@jjeffery
jjeffery / 99-tempsensor.rules
Last active March 27, 2019 04:12
Temper1 temperature sensor code
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="1130", ATTRS{idProduct}=="660c", MODE="666"
@jjeffery
jjeffery / golang-dev-env-windows.md
Last active September 9, 2022 02:56
Preparing a Go development environment on a Windows PC

Installing a Go development environment on a Windows PC

NOTE: A lot of these instructions change with Go 1.11 and later. These instructions are for Go 1.10.

Prerequisites

Install the following programs.

  • Git bash (https://git-scm.com/download/win) Git is necessary for the go get command, and using the git bash command line works well with the go dev environment.
@jjeffery
jjeffery / golang-grpc-win.md
Last active October 9, 2023 08:41
Installing grpc development environment for Windows

Notes on installing GRPC development environment for Go on Windows

Prerequisites:

  1. Go development environment installed.
  2. $GOPATH/bin
  • I tend to use git bash on my command line, so even though these notes are for Windows, the command line examples have a Unix flavour.
  • The directory names suit my Windows development machine, on which I have a D drive that I use for most of my development work.

Keybase proof

I hereby claim:

  • I am jjeffery on github.
  • I am jjeffery (https://keybase.io/jjeffery) on keybase.
  • I have a public key ASCkYRQBCvRDew1Lond2zmkQXRf1FOLXvdinIPZAC0vP9wo

To claim this, I am signing this object:

@jjeffery
jjeffery / ComWithoutRegistering.cs
Created January 6, 2012 02:25
COM without registering
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
namespace ComWithoutRegisteringExample
{
internal static class ComHelper
{
private delegate int DllGetClassObject(ref Guid clsid, ref Guid iid, [Out, MarshalAs(UnmanagedType.Interface)] out IClassFactory classFactory);