Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Laverty roblav96

View GitHub Profile
@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
View ubuntu-install.zsh
#!/usr/bin/env bash
sudo apt install zsh
curl -sfL git.io/antibody | sudo sh -s - -b /usr/local/bin
git clone https://github.com/roblav96/dotfiles $HOME/.dotfiles
sh $HOME/.dotfiles/install.zsh
grep -q -F $(which zsh) /etc/shells
View youtube-grid-video-renderer-filter.ts
Array.from(document.all).forEach(el => {
let tag = el.tagName.toLowerCase()
if (!tag.startsWith('ytd-') || !tag.endsWith('-video-renderer')) return
let overlaytime = el.querySelector('ytd-thumbnail-overlay-time-status-renderer')
if (!overlaytime) return
let time = overlaytime.textContent.trim()
let split = time.split(':').reverse()
let [seconds, minutes, hours] = split.map(Number)
if (hours) minutes += hours * 60
if (minutes >= MINUTES) return
View wakatime-whitelist-domains.log
admanager.google.com
admob.google.com
ads.google.com
admob.google.com
firebase.google.com
console.firebase.google.com
google.com
www.google.com
cloud.google.com
console.cloud.google.com
You can’t perform that action at this time.