Skip to content

Instantly share code, notes, and snippets.

@mcfrojd
mcfrojd / Shield_Intents.MD
Last active April 12, 2025 04:44
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@etiennetremel
etiennetremel / README.md
Last active March 25, 2025 15:36
Simple Wireguard setup as VPN server and multiple clients

Simple WireGuard configuration

1 server, 2 clients

Getting started

Install Wireguard on all machines.

Generate all keys

@fnky
fnky / ANSI.md
Last active May 10, 2025 11:07
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@mcastelino
mcastelino / remap_and_post.md
Last active March 21, 2023 15:08
Interrupt Remapping and posted interrupt notes

https://software.intel.com/sites/default/files/managed/c5/15/vt-directed-io-spec.pdf

• Legacy pin interrupts

— For devices that use legacy methods for interrupt routing (such as either through direct wiring to the I/OxAPIC input pins, or through INTx messages), the I/OxAPIC hardware generates the interrupt-request transaction. To identify the source of interrupt requests generated by I/OxAPICs, the interrupt-remapping hardware requires each I/OxAPIC in the platform (enumerated through the ACPI Multiple APIC Descriptor Tables (MADT)) to include a unique 16-bit source-id in its requests. BIOS reports the source-id for these I/OxAPICs via ACPI

@reefwing
reefwing / IRBeacon.ino
Created August 9, 2018 02:45
An IR remote using the ESP32 and controlled via the IoT hub in Azure.
/*
* IRbeacon: Continually sends IR remote control information every 5 seconds
* An IR LED must be connected to the ESP32 pin IR_LED via 100 ohm resistor.
* Uses the ESP32-IRremote library and modified functions from the
* Microsoft GetStarted.ino sketch in the Examples folder.
*
* 0xa90 is the Sony power on/off code.
*
* Version 0.1 August, 2018
* Copyright 2018 David Such
@xpac1985
xpac1985 / nftables.xml
Created April 5, 2018 18:08
nftables Syntax Highlighting for Notepad++
<NotepadPlus>
<UserLang name="nftables" ext="" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03&quot; 04&quot;</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@ayufan
ayufan / scores.md
Created February 2, 2018 08:35
Geekbench average scores for A64/H6/RK3328/RK3399

Allwinner A64

$ get-gb-scores.sh sun50iw1p1
Average Geekbench 4 scores for `sun50iw1p1`:

 -> Downloading page 10
Single-Core Score:	458.991
Multi-Core Score:	1133.27
@Disassembler0
Disassembler0 / AllowInsecureGuestAuth.reg
Created January 31, 2018 15:55
Allow insecure guest authentication
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters]
"AllowInsecureGuestAuth"=dword:00000001
@ewpratten
ewpratten / hosts-yt-ads
Last active March 21, 2025 10:23
youtube ads hosts file
This project has been moved to a GitHub repository to allow Pull Requests.
See: https://github.com/Ewpratten/youtube_ad_blocklist
@Sporif
Sporif / RestartFirefoxButton_Movable.uc.js
Last active October 3, 2022 18:27
Restart Button for Firefox. An updated version of https://github.com/Endor8/userChrome.js/tree/master/restartfirefoxbutton_movable. Middle click also empties the script cache.
(function() {
if (location != 'chrome://browser/content/browser.xul' && location != 'chrome://browser/content/browser.xhtml')
return;
try {
CustomizableUI.createWidget({
id: 'restart-button',
type: 'custom',
defaultArea: CustomizableUI.AREA_NAVBAR,
onBuild: function(aDocument) {