Skip to content

Instantly share code, notes, and snippets.

View npjohnson's full-sized avatar
🏠
Working from home

Nolen Johnson npjohnson

🏠
Working from home
View GitHub Profile
#!/bin/bash
#
URL=${1}
ZIP=$(basename "${URL}")
BUILD_ID=$(echo "${ZIP}" | awk -F- '{print $3}')
DEVICE=$(echo "${ZIP}" | awk -F- '{print $1}')
# Make the tmp directory
mkdir -p "${HOME}/tmp/${DEVICE}-images"
#!/bin/bash
#
URL=${1}
ZIP=$(basename "${URL}")
BUILD_ID=$(echo "${ZIP}" | awk -F- '{print $3}')
DEVICE=$(echo "${ZIP}" | awk -F- '{print $1}')
# Make the tmp directory
mkdir -p "${HOME}/tmp/${DEVICE}-images"
@npjohnson
npjohnson / lineage-build-day.py
Created January 24, 2021 21:07
LineageOS Build Server Day Calulator
#!/usr/bin/env python2
## Build servers use python2, and python3 actually changes the results
### LineageOS Build Day Calculator
## Imports
import calendar
import random
## Variables
# We use 7 for W, 28 for M, but we currently use W
buckets=7
#!/usr/bin/env python2
## Build servers use python2, and python3 actually changes the results
### LineageOS Build Day Calculator
## Imports
import calendar
import random
## Variables
# We use 7 for W, 28 for M, but we currently use W
buckets=7
This file has been truncated, but you can view the full file.
--------- beginning of main
09-13 16:29:42.957 3111 3111 W auditd : type=2000 audit(0.0:1): initialized
09-13 16:29:45.664 3111 3111 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
09-13 16:29:46.540 2523 2523 I init : type=1400 audit(0.0:3): avc: denied { write } for name="watermark_scale_factor" dev="proc" ino=2684 scontext=u:r:vendor_init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=1
09-13 16:29:46.548 3112 3112 I lowmemorykiller: Using psi monitors for memory pressure detection
09-13 16:29:46.550 3112 3112 I lowmemorykiller: Process polling is supported
--------- beginning of kernel
09-13 16:29:46.580 0 0 I : [ 0.000000@0]d Booting Linux on physical CPU 0x0
09-13 16:29:46.580 0 0 I : [ 0.000000@0]d Linux version 4.9.180-gc1350506bd03 (nobody@android-build) (Android (6877366 based on r383902b1) clang version 11.0.2 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79))