Skip to content

Instantly share code, notes, and snippets.

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.83-IMMENSITY (marionette@rom-factory) (Android (4691093 based on r316199) clang version 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55536e7d904e0abae47888fc7f) (https://android.googlesource.com/toolchain/llvm 34361f192e41ed6e4e8f9aca80a4ea7e9856f327) (based on LLVM 6.0.2svn)) #19 SMP PREEMPT Sun Aug 4 22:22:34 CEST 2019
[ 0.000000] Boot CPU: AArch64 Processor [51df805e]
[ 0.000000] Powerup reason=0x20001
[ 0.000000] Machine: Qualcomm Technologies, Inc. SM8150 V2 PM8150 RAPHAEL
[ 0.000000] ramoops: msm_reserve_ramoops_memory addr=b0000000,size=400000
[ 0.000000] ramoops: msm_reserve_ramoops_memory record_size=0,ftrace_size=0
[ 0.000000] Memory limit set/overridden to 6075MB
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000f5c00000, size 160 MiB
[ 0.000000] OF: reserved mem: initialized node secure_display_region, compatible id shared-dma-pool
@grimpy
grimpy / isp_status.py
Created July 8, 2019 06:47
isp_status
from i3pystatus import IntervalModule
import time
class VodaFone(IntervalModule):
interval = 3600
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
try:
import vodafone
for _ in range(3):
#!/bin/bash
BTHW="A0:9E:1A:14:FE:10" # Enter your Phone Bluetooth hardware address
TIMEOUT=30000
function expired() {
inactivetime=$(xprintidle)
echo $inactivetime
if [ "$inactivetime" -lt "$TIMEOUT" ]; then
return 1
package main
import (
"flag"
"fmt"
"log"
"os"
"os/exec"
"time"
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: -----------------------------------------------------------------------
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Starting Kodi (18.1 Git:20190224-nogitfound). Platform: Linux x86 64-bit
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Using Release Kodi x64 build
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Kodi compiled 2019-02-24 by GCC 8.2.1 for Linux x86 64-bit version 4.17.11 (266507)
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Running on Arch Linux rolling, kernel: Linux x86 64-bit version 5.0.0-arch1-1-ARCH
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: FFmpeg version/source: 4.0.3-Kodi
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: Host CPU: AMD A8-6600K APU with Radeon(tm) HD Graphics, 4 cores available
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
2019-03-27 21:55:04.113 T:140699969993344 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
2019-03-27 21:55:04.11
from pysnmp.hlapi import *
from collections import defaultdict
dataset = defaultdict(dict)
for (errorIndication,
errorStatus,
errorIndex,
varBinds) in nextCmd(SnmpEngine(),
CommunityData('public', mpModel=0),
import subprocess
import os
images = """\
gcr.io/google-containers/kube-controller-manager v1.13.1 26e6f1db2a52 2 months ago 146MB
gcr.io/google-containers/kube-scheduler v1.13.1 ab81d7360408 2 months ago 79.6MB
gcr.io/google-containers/kube-apiserver v1.13.1 40a63db91ef8 2 months ago 181MB
coredns/coredns 1.2.6 f59dcacceff4 3 months ago 40MB
gcr.io/google-containers/coredns 1.2.6 f59dcacceff4 3 months ago 40MB
ghub.gig.tech/ovcimages/3rdparty/redis 3.2 87856cc39862 4 months ago 76MB
ghub.gig.tech/ovcimages/3rdparty/syncthing latest 0299b59eb58a 4 months ago 22.4MB
load_module /usr/lib/nginx/modules/ngx_http_dav_ext_module.so;
#user html;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
#!/bin/bash
if [ -z "$1" ]; then
cat ~/.warprc | cut -f 1 -d :
exit 0
fi
project=$(bash -c "echo $(grep "^${1}:" ~/.warprc | cut -f 2 -d :)")
session=$(echo $project | sha256sum | awk '{print $1}')
if tmux list-windows -F "#{session_name}:#{window_name}" | grep "code:$1" > /dev/null; then
tmux select-window -t "code:$1"
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of joystick buttons to actions within -->
<!-- Kodi. -->
<!-- -->
<!-- The format is: -->
<!-- <window> -->
<!-- <joystick profile="game.controller.default"> -->
<!-- <button>action</button> -->
<!-- </joystick> -->
<!-- </window> -->