Skip to content

Instantly share code, notes, and snippets.

View roblav96's full-sized avatar

Robert Laverty roblav96

View GitHub Profile
ack 2.28
adns 1.5.1
ant 1.10.5
antibody 4.1.2
apktool 2.4.0
asciidoc 8.6.10_2
autoconf 2.69
autoconf-archive 2019.01.06
automake 1.16.1_1
awscli 1.16.170
setInterval(Function, 1 << 30)
libc F Fatal signal 6 (SIGABRT), code -6 in tid 32328 (libtun2socks.so)
DEBUG F *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F Build fingerprint: 'NVIDIA/darcy/darcy:8.0.0/OPR6.170623.010/3507953_1441.7411:user/release-keys'
F Revision: '0'
F ABI: 'arm64'
F pid: 32328, tid: 32328, name: libtun2socks.so >>> /data/app/com.github.shadowsocks.tv-wsCQ8H-Q-VDqaAzIE6Uxxw==/lib/arm64/libtun2socks.so <<<
F signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
F x0 0000000000000000 x1 0000000000007e48 x2 0000000000000006 x3 0000000000000008
F x4 000000000000000a x5 000000000000000a x6 000000000000000a x7 000000000000000a
F x8 0000000000000083 x9 63c61d7f4b682dfa x10 0000000000000000 x11 0000000000000001
@roblav96
roblav96 / PlayerActivity.java
Created May 21, 2019 07:09
git diff for ExoPlayer demo changes on Shield TV
@@ -24,9 +24,12 @@ import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Pair;
+import android.view.Display;
import android.view.KeyEvent;
-import android.view.View;
import android.view.View.OnClickListener;
+import android.view.View;
+import android.view.Window;
@roblav96
roblav96 / @\adapters\redis.ts
Created May 14, 2019 05:41
Simple redis adapter for node.js written in TypeScript with pinging and all that jazz...
import * as _ from 'lodash'
import * as IORedis from 'ioredis'
import * as pkgup from 'read-pkg-up'
import * as schedule from 'node-schedule'
export namespace Redis {
export type Coms = string[][]
export interface Event<T = any> {
data: T
name: string
adb shell su -c pm enable --user 0 com.android.inputmethod.latin
adb shell su -c pm enable --user 0 com.android.vending
adb shell su -c pm enable --user 0 com.google.android.ext.services
adb shell su -c pm enable --user 0 com.google.android.feedback
adb shell su -c pm enable --user 0 com.google.android.gms
adb shell su -c pm enable --user 0 com.google.android.gsf
adb shell su -c pm enable --user 0 com.google.android.katniss
adb shell su -c pm enable --user 0 com.google.android.sss
adb shell su -c pm enable --user 0 com.google.android.tv.bugreportsender
@roblav96
roblav96 / emitter.ts
Created April 19, 2019 18:07
Typed - EventEmitter
import * as EventEmitter3 from 'eventemitter3'
import * as pEvent from 'p-event'
export class Emitter<Events = EventEmitter3.Events> extends EventEmitter3<Events> {
get events() {
return this._events
}
hasListener(listener: EventEmitter3.Listener, context?: any, once?: boolean) {
let names = Object.keys(this.events)
@roblav96
roblav96 / emitter.ts
Created April 19, 2019 18:05
Basic - EventEmitter
import * as EventEmitter3 from 'eventemitter3'
import * as pEvent from 'p-event'
export class Emitter<Names extends string = string, Data = any> extends EventEmitter3<Names, Data> {
get events() {
return this._events
}
hasListener(listener: EventEmitter3.Listener<Data>, context?: any, once?: boolean) {
let names = Object.keys(this.events)
{
"primary": "#ab9df2",
"secondary": "#ffd866",
"success": "#a9dc76",
"warning": "#fc9867",
"info": "#78dce8",
"error": "#ff6188",
"black": "#221f22",
"white": "#fcfcfa",
"bg-dark-2": "#221f22",
{
"primary": "#D08770",
"secondary": "#5E81AC",
"success": "#A3BE8C",
"warning": "#EBCB8B",
"info": "#88C0D0",
"error": "#BF616A",
"black": "#2E3440",
"white": "#D8DEE9",
"bg-dark-2": "#2E3440",