Skip to content

Instantly share code, notes, and snippets.


Robert Laverty roblav96

View GitHub Profile
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 / androidx-29.d.ts
Created Oct 13, 2020
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<>;
* Constructs a new instance of the interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
roblav96 / android-platform-29.d.ts
Created Oct 13, 2020
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 {
$ 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 ->`,>v.replace(`${cwd}/`, '')).sort(), files.length)
View my-nano-whitelist.txt
# edge-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 | sudo sh -s - -b /usr/local/bin
git clone $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] =
if (hours) minutes += hours * 60
if (minutes >= MINUTES) return
View wakatime-whitelist-domains.log
You can’t perform that action at this time.