Skip to content

Instantly share code, notes, and snippets.

View roblav96's full-sized avatar

Robert Laverty roblav96

View GitHub Profile
@roblav96
roblav96 / unifi_firmware_upgrade_uap-nanohd_ssh.md
Last active June 21, 2023 18:46
Ubiquiti UniFi firmware upgrade for UAP-nanoHD via ssh
#!/usr/bin/env just --justfile
# https://github.com/casey/just
set shell := ["bash", "-uc"]
_default :
@just --dump
@roblav96
roblav96 / PocketCasts.window.js
Created April 7, 2021 14:53
PocketCasts kiosk style window.open
window.open('https://play.pocketcasts.com/new-releases', 'PocketCasts', 'width=0,height=0')
// Type some code ->
console.log("oO08 iIlL1 g9qCGQ ~-+=>");
@real fox.quick(h){ *is_brown && it_jumps_over(dogs.lazy) }
0123456789 ABC.DEF.GHI.JKL.MNO.PQRS.TUV.WXYZ ß <= ^$#% >=
export function longestCommonSeq(wordX: string, wordY: string) {
const m = wordX.length
const n = wordY.length
const l: Array<Array<number>> = []
@roblav96
roblav96 / nvidia-shield-tv-2017-packages.md
Last active April 22, 2022 22:14
Nvidia Shield TV 2017 - adb shell pm list packages

🟢 System Enabled Packages

android
android.autoinstalls.config.nvidia
com.amazon.amazonvideo.livingroom
com.amazon.amazonvideo.livingroom.nvidia
com.android.backupconfirm
com.android.bluetooth
com.android.bluetoothmidiservice
@roblav96
roblav96 / com.github.pedroSG94.rtmp-rtsp-stream-client-java_rtplibrary.d.ts
Created October 13, 2020 06:11
testCompileOnly 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:+'
declare module com {
export module github {
export module faucamp {
export module simplertmp {
export class Crypto extends java.lang.Object {
public static class: java.lang.Class<com.github.faucamp.simplertmp.Crypto>;
public calculateHmacSHA256(input: native.Array<number>, key: native.Array<number>): native.Array<number>;
public constructor();
public calculateHmacSHA256(input: native.Array<number>, key: native.Array<number>, length: number): native.Array<number>;
}
@roblav96
roblav96 / androidx-29.d.ts
Created October 13, 2020 06:09
node_modules/@nativescript/types-android/lib/android/androidx-29.d.ts
This file has been truncated, but you can view the full file.
declare module android {
export module support {
export module v4 {
export module app {
export class INotificationSideChannel extends java.lang.Object implements android.os.IInterface {
public static class: java.lang.Class<android.support.v4.app.INotificationSideChannel>;
/**
* Constructs a new instance of the android.support.v4.app.INotificationSideChannel interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
@roblav96
roblav96 / android-platform-29.d.ts
Created October 13, 2020 06:09
node_modules/@nativescript/types-android/lib/android/android-platform-29.d.ts
This file has been truncated, but you can view the full file.
/// <reference path="android-declarations.d.ts"/>
declare module android {
export class Manifest extends java.lang.Object {
public static class: java.lang.Class<android.Manifest>;
public constructor();
}
export module Manifest {
export class permission extends java.lang.Object {
$ node --require $(npm root -g)/node-env-dev --inspect -c
glob = require('/usr/local/lib/node_modules/glob')
cwd = process.cwd()
g = (pattern) => {
	files = glob.sync(pattern, { cwd, nodir: true, absolute: true, strict: false })
	console.log(`files ->`, files.map(v=>v.replace(`${cwd}/`, '')).sort(), files.length)
}
about-scheme
chrome-extension-scheme
chrome-scheme
edge-extension-scheme
# edge-scheme
edge-scheme
moz-extension-scheme
ms-browser-extension-scheme
opera-scheme
vivaldi-scheme