Skip to content

Instantly share code, notes, and snippets.

View mholtzhausen's full-sized avatar

Mark Holtzhausen mholtzhausen

View GitHub Profile
@bitaller
bitaller / Disabling Windows 10-11 Update.md
Created December 15, 2022 07:14
Disabling Windows 10-11 Update

if you just want to stop the automatic-update but you still want to be able to install updates yourself by launching the Windows update manually, you just need to apply a group-policy: run: gpedit.msc, computer configuration, administrative templates, windows components, windows update, configure automatic updates - set to disabled.

01_start_run_gpedit_msc_group_policy

02_group_policy_windowsupdate_configureautomaticupdates_disabled_noautoupdate

or apply:

SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
Developer - 22222-00000-00000-00000-00000
Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B
Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89
Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC
https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/
@MuhsinFatih
MuhsinFatih / pythondoneright.md
Last active April 18, 2024 08:10
How to recover from messed up python installation on mac, and never have to mess with apple's shitty python confusion factory

I am assuming you are here because like me, you installed a bazillion different python interpreters on mac and the whole thing is a spagetti. Today, I finally fixed my python installation. Whatever I install for python2 or python3 using pip JUST.WORKS.. My god! finally.

What the hell?

Here is what I had messed up, which you also probably did:

  • I had too many different python interpreters
  • Too many different symlinks which I lost track of
  • almost no package I installed with pip worked without a headache
  • any attempt to fix using online resources made it worse.
@mholtzhausen
mholtzhausen / $$.es6.js
Last active August 21, 2018 13:56
DOM Toolbox -- jQ
/**
Syntax for $(q,c)
$('div.someClass') // [<div.someClass />,<div.someClass />]
$$('div.someClass') // $$[<div.someClass />,<div.someClass />]
.first() // <div.someClass />
.$first() // $$[<div.someClass />]
.last() // <div.someClass />
.$last() // $$[<div.someClass />]
@arnellebalane
arnellebalane / .gitignore
Last active June 19, 2020 19:58
managing secret configs with webpack
# no need to ignore entire "config" directory
secrets.json
@mholtzhausen
mholtzhausen / index.html
Created November 25, 2016 11:44
Remove all instances of item from an array (http://jsbench.github.io/#fec618f95fedb4f152a2f682a9b3d25c) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Remove all instances of item from an array</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@jremmen
jremmen / binarytreeobj.js
Created June 12, 2013 20:55
js: binary tree objects
var Node = function(o){
this.key = o.key;
this.data = o.data;
this.left = {};
this.right = {};
}
var BinaryTree = function(o) {
this.tree = o.tree;