Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Laverty roblav96

View GitHub Profile
@roblav96
roblav96 / PocketCasts.window.js
Created Apr 7, 2021
PocketCasts kiosk style window.open
View PocketCasts.window.js
window.open('https://play.pocketcasts.com/new-releases', 'PocketCasts', 'width=0,height=0')
View programmingfonts.org.js
// 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 Feb 4, 2021
Nvidia Shield TV 2017 - adb shell pm list packages
View nvidia-shield-tv-2017-packages.md

🟢 System Enabled Packages

android.autoinstalls.config.nvidia
com.amazon.amazonvideo.livingroom
com.android.backupconfirm
com.android.bluetooth
com.android.captiveportallogin
com.android.certinstaller
com.android.cts.ctsshim
com.android.cts.priv.ctsshim
@roblav96
roblav96 / com.github.pedroSG94.rtmp-rtsp-stream-client-java_rtplibrary.d.ts
Created Oct 13, 2020
testCompileOnly 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:+'
View com.github.pedroSG94.rtmp-rtsp-stream-client-java_rtplibrary.d.ts
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 Oct 13, 2020
node_modules/@nativescript/types-android/lib/android/androidx-29.d.ts
View 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 Oct 13, 2020
node_modules/@nativescript/types-android/lib/android/android-platform-29.d.ts
View 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 {
View glob-debug-testing.md
$ 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)
}
View my-nano-whitelist.txt
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
View nftables.conf
#!/usr/sbin/nft -f
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
ct state { established, related } accept
ct state { invalid } drop
iif "lo" accept
View sshd_config
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the