Skip to content

Instantly share code, notes, and snippets.

View XenHat's full-sized avatar
🛠️

XenHat XenHat

🛠️
  • Quebec, Canada
  • 01:40 (UTC -04:00)
  • X @XenHat
View GitHub Profile
@XenHat
XenHat / gentoo-cnf.bash
Last active December 26, 2019 00:23
Ubuntu and Gentoo cross-compatible implementation of Command Not Found snippet
# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ] || [ -x /usr/share/command-not-found/command-not-found ]; then
function command_not_found_handle() {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/lib/command-not-found -- "$1"
return $?
elif [ -x /usr/share/command-not-found/command-not-found ]; then
/usr/share/command-not-found/command-not-found -- "$1"
return $?
@XenHat
XenHat / cloudSettings
Last active January 2, 2022 08:49
Old Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-01-02T08:49:16.852Z","extensionVersion":"v3.4.3"}
@XenHat
XenHat / OEMBIOSFields.md
Last active August 9, 2018 20:57
OEM Fields explanation by Peter M. Dodge

Explanation of the keys

Manufacturer:

This is a string containing the manufacturer. Microsoft encourages system builders to put their name here, if theyre not a company, but you can put what you want.

Model:

A model number string for the computer, ie "Brendr I VTE-001-001 (w/ ASUSTek P5G41C-M)

@XenHat
XenHat / unbloat.ps1
Last active November 5, 2017 22:18
Uninstall Default Windows 8+ Modern Apps
$WMI = get-appxpackage -allusers | Where-Object { $_.name -NotMatch ".NET" <# NEVER DELET DIS #>`
<# System Apps #>`
-And $_.name -NotMatch "1527c705-839a-4832-9118-54d4Bd6a0c89" `
-And $_.name -NotMatch "AccountsControl" `
-And $_.name -NotMatch "BioEnrollment" `
-And $_.name -NotMatch "BrokerPlugin" `
-And $_.name -NotMatch "c5e2524a-ea46-4f67-841f-6a9465d9d515" `
-And $_.name -NotMatch "ChxApp" `
-And $_.name -NotMatch "communication" `
-And $_.name -NotMatch "ContactSupport" `
@XenHat
XenHat / cf-ddns.sh
Created June 22, 2016 14:35 — forked from larrybolt/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh

Keybase proof

I hereby claim:

  • I am XenHat on github.
  • I am tahnex (https://keybase.io/tahnex) on keybase.
  • I have a public key whose fingerprint is 14BC C7EF 1230 2F4F 8EC6 591C 7AE6 2037 1765 2F0B

To claim this, I am signing this object:

@XenHat
XenHat / gist:9420924
Created March 7, 2014 21:49
v2.7, still restores color.
///////////////////////////////////////////////////////////////////////////
// CCNG - Color Changer Next Gen by Miguael Liamano
///////////////////////////////////////////////////////////////////////////
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of