Skip to content

Instantly share code, notes, and snippets.

View jordandrako's full-sized avatar

Jordan Janzen jordandrako

View GitHub Profile
@ZachHaber
ZachHaber / VisGraph.tsx
Created April 15, 2021 21:00
Re write of https://github.com/crubier/react-graph-vis to a function component for strict mode compliance
import React, {
forwardRef,
HTMLAttributes,
useEffect,
useImperativeHandle,
useRef,
useState,
} from 'react';
import { DataSet } from 'vis-data';
import {
@pldmgg
pldmgg / Home_Assistant_Migration_to_HassOS_VM.txt
Last active May 19, 2020 23:43
Home_Assistant_Migration_to_HassOS_VM
##### Make a Snapshot of your existing HA implementation #####
- In the Home Assistant dashboard, navigate Supervisor -> Snapshots. Give the resulting .tar file a name, make sure "Full Snapshot" is checked, and then click "Create".
- Download the resulting snapshot .tar by clicking on it and selecting "Download"
##### Download your preferred virtual appliance containing HassOS #####
- From here (under the "As a virtual appliance" section): https://www.home-assistant.io/hassio/installation/
##### Deploy the VM #####
- How you deploy the VM depends on what hypervisor you're using, so I'm not going to cover that here.
- Whatever hypervisor you use, make sure the VM automatically starts when your host OS starts
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active March 30, 2024 16:53
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: >-
@fedme
fedme / Run Visual Studio Code for Linux from WSL.md
Last active November 8, 2023 09:33
Run Visual Studio Code for Linux from WSL on Windows 10

Run Visual Studio Code for Linux from WSL

Thanks a lot to mredbishop and others for their insturctions posted here. This is just a recap of what they figured out.

This process was tested on WSL Ubuntu 18.04.

Install VcXsrv on Windows

  1. Dowload the VcXsrv installer from https://sourceforge.net/projects/vcxsrv/
  2. Install the software on Windows

Add VS Code repositories

@schmich
schmich / ducky.md
Last active April 5, 2024 14:20
Programming media keys on the Ducky One 2 Skyline

Programming Media Keys on the Ducky One 2 Skyline

To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.

Example

Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.

As an example, to bind Fn+PgUp to the play/pause media function:

@paulirish
paulirish / bling.js
Last active May 1, 2024 19:56
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@AWMooreCO
AWMooreCO / AdvancedWindowSnap.ahk
Last active April 6, 2024 01:29
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap
* Snaps the Active Window to one of nine different window positions.
*
* @author Andrew Moore <andrew+github@awmoore.com>
* @version 1.0
*/
/**
* SnapActiveWindow resizes and moves (snaps) the active window to a given position.
@jmacqueen
jmacqueen / README.md
Last active December 27, 2015 02:39
Basic Grunt config for working with the Bones Wordpress starter theme

A basic Grunt configuration for working with the Bones Wordpress Starter theme. To be expanded! Compiles and compresses Sass and uses rsync to update the local installation of Wordpress for testing so I can keep my MAMP installation free of extraneous files...and simply FTP over the final result if it checks out without putting uneccessary node_modules or .scss files on the server by mistake. This was pretty much put together because I kept mistakenly FTPing over my .sass-cache files like an idiot.

For this to work, the theme in development lives in 'src' inside the project directory so node_modules, .sass-cache, gruntfile.js, package.json and src are all together in the top-level directory.

project folder
  .sass-cache
  gruntfile.js
  node_modules
 package.json