Skip to content

Instantly share code, notes, and snippets.

@hanetzer
hanetzer / diff
Last active October 6, 2020 14:53
$ git diff|cat;
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index d906ffb565..f76de0034b 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -63,7 +63,7 @@
#define FW_FILE_NAME "skiboot.lid"
#define FW_LOAD_ADDR 0x0
-#define FW_MAX_SIZE (16 * MiB)
+#define FW_MAX_SIZE (64 * MiB)
@hanetzer
hanetzer / SmelteryBlocks.java
Last active May 8, 2020 02:38
IItemPropertyOverride
package slimeknights.tconstruct.blocks;
import com.google.common.collect.ImmutableSet;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.RenderTypeLookup;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
@hanetzer
hanetzer / stdin
Created April 27, 2020 22:06
stdin
bootf
booting system partition 0:0
USB: USB 2.0 started, EHCI 1.00scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... max USB Storage Device reached: 1 stopping
1 Storage Device(s) found
1 blocks read: OK
Loading image 0:0..........................................................................................................................................................................................................
Booting image...
Signer Cert OK
Policy Cert OK
@hanetzer
hanetzer / stdin
Created April 27, 2020 19:59
stdin
CPBoot 1.0.46.0 (build 43231)
Built: 2014-04-15 at 10:35:41
1024MB DRAM init, XLS CPU, 64bit channel pair mode
DDR2 DRAM running at 533Mhz
DRAM: Total = (0x40000000) 1024 MB
POST: Memory test: Physical 0x00000000 - 0x10000000 - quick test
Memory test: Physical 0x10000000 - 0x40000000 - quick test
PASS
CPU: XLS208, rev. A1 Clock: 750MHz
CPLD: rev: 2.8 (0x2.8)
@hanetzer
hanetzer / $ 7z l lineage_hotdogg-ota-eng.hanetzer.zip;
Created February 12, 2020 08:30
$ 7z l lineage_hotdogg-ota-eng.hanetzer.zip;
$ 7z l lineage_hotdogg-ota-eng.hanetzer.zip
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.utf8,Utf16=on,HugeFiles=on,64 bits,16 CPUs AMD Ryzen 7 1700 Eight-Core Processor (800F11),ASM,AES-NI)
Scanning the drive for archives:
1 file, 751199129 bytes (717 MiB)
Listing archive: lineage_hotdogg-ota-eng.hanetzer.zip
@hanetzer
hanetzer / $ adb shell dmesg;
Created February 5, 2020 22:45
$ adb shell dmesg;
$ adb shell dmesg
[ 0.000000] [ 0.000000]@0 Booting Linux on physical CPU 0x0
[ 0.000000] [ 0.000000]@0 Linux version 4.14.117-perf-gb03e460799e2-dirty (nobody@android-build) (Android (5484270 based on r353983c) clang version 9.0.3 (https://android.googlesource.com/toolchain/clang 745b335211bb9eadfa6aa6301f84715cee4b37c5) (https://android.googlesource.com/toolchain/llvm 60cf23e54e46c807513f7a36d0a7b777920b5881) (based on LLVM 9.0.3svn)) #4 SMP PREEMPT Wed Feb 5 15:36:27 CST 2020
[ 0.000000] [ 0.000000]@0 Boot CPU: AArch64 Processor [51df805e]
[ 0.000000] [ 0.000000]@0 Machine: Qualcomm Technologies, Inc. SM8150P v2 PM8150 SDX55M MTP 19861 53 54
[ 0.000000] [ 0.000000]@0 OF: reserved mem: OVERLAP DETECTED!\x0adisp_rdump_region (0x000000009c000000--0x000000009e400000) overlaps with cont_splash_region (0x000000009c000000--0x000000009e400000)
[ 0.000000] [ 0.000000]@0 Reserved memory: created CMA memory pool at 0x00000000fd400000, size 40 MiB
[ 0.000000] [ 0.000000]@0 OF:
@hanetzer
hanetzer / stdin
Created January 23, 2020 05:22
stdin
0c0874920572889df0229eb3e27ad2c9e5e7f7914a50b2f2bba4d61d5d21b0d4 card/card.apk
0c456d6374d23799824a11123037445bc8a5f5a014bd76ac654f84decef841a0 OPNote/OPNote.apk
48bd2be31f1c1bc9151060820cf886ce9d2db2259c622dade2a4b338842f9116 OPWidget/OPWidget.apk
5b1e695aef047bdf9c35988c1ddecba1395e07222f54056d4b0829ff48262574 OPIconpackSquare/OPIconpackSquare.apk
624af1463a8c11b65fad68fda2c9704ddf73f7aa777e2c1789b4482e5fcc85a9 OPIconpackCircle/OPIconpackCircle.apk
951b4f3bf5bb2c4b3eeb11c542b8f068652440b7bbf15983fa281873fe738040 OPBackupRestore/OPBackupRestore.apk
b2b67c620973996e0c3644073d01c8efbd511e136cfb27f76523c67ea55683e1 Weather/Weather.apk
d4ccecd95150f6d7a2a9737eb663dd18109fda0fd8424ac3c78b63d967994b3f OPIconpackOnePlusO2/OPIconpackOnePlusO2.apk
dca71277f642c8a12f7ad85ea2045f89af918d871888fef957d7f84315327f27 OPForum/OPForum.apk
f4e974fa9618015fa2bb5f50c2bf1a1a8ead7d4ff016f3be8c5dbb77dace07c8 SoundRecorder/SoundRecorder.apk
01-22 22:27:25.384 1285 1285 E update_engine: [0122/222725.384829:ERROR:utils.cc(639)] Marking block device /data/reserve/reserve.img as read_only=1: Not a typewriter (25)
01-22 22:27:25.385 1285 1285 I update_engine: [0122/222725.385620:INFO:delta_performer.cc(476)] Opening /data/reserve/reserve_updating.img partition without O_DSYNC
01-22 22:27:25.385 1285 1285 E update_engine: [0122/222725.385708:ERROR:utils.cc(639)] Marking block device /data/reserve/reserve_updating.img as read_only=0: Not a typewriter (25)
01-22 22:27:25.386 1285 1285 I update_engine: [0122/222725.386721:INFO:delta_performer.cc(136)] Caching writes.
01-22 22:27:25.386 1285 1285 I update_engine: [0122/222725.386808:INFO:delta_performer.cc(488)] Applying 141 operations to partition "reserve"
01-22 22:27:25.391 1285 1285 E update_engine: [0122/222725.391284:ERROR:fec_file_descriptor.cc(30)] No ECC data in the passed file
01-22 22:27:25.391 1285 1285 E update_engine: [0122/222725.391354:ERROR:delta_performer.cc(522)] Unable to
@hanetzer
hanetzer / $ hexdump -C userdata.bin |head;
Created January 23, 2020 01:02
$ hexdump -C userdata.bin |head;
$ hexdump -C userdata.bin |head
00000000 28 7a 10 e4 a4 dc cd 42 73 e8 84 11 1e a4 bc 99 |(z.....Bs.......|
00000010 21 cc 6a 6c a5 c2 2f 16 31 03 2d 9a 68 63 4f 01 |!.jl../.1.-.hcO.|
00000020 de fd fe 04 5a 3f 15 a3 c7 a0 c9 1e e6 82 25 7e |....Z?........%~|
00000030 f3 8b 52 44 2e 09 f4 a3 7d bf 1c 4c 5c 79 24 d0 |..RD....}..L\y$.|
00000040 f5 4f d7 99 de d1 a1 a0 31 b3 fd 1e 4e 69 a7 39 |.O......1...Ni.9|
00000050 5f aa c4 d5 a5 0b 23 f8 df 8e f9 d5 59 05 25 92 |_.....#.....Y.%.|
00000060 7b 7a 75 29 bc 36 d1 d5 3d 51 e0 a1 dd 10 41 8c |{zu).6..=Q....A.|
00000070 fe 1d 4b 0d a8 cb 51 08 e5 ea dd a4 2c aa c5 d5 |..K...Q.....,...|
00000080 82 2c 47 65 4c 64 62 02 c9 12 53 b9 a9 01 ee 32 |.,GeLdb...S....2|
@hanetzer
hanetzer / $ inxi -v7|ansifilter;
Created January 22, 2020 06:32
$ inxi -v7|ansifilter;
$ inxi -v7|ansifilter
System: Host: proprietary-killer Kernel: 5.4.6-gentoo x86_64 bits: 64 compiler: gcc v: 9.2.0 Desktop: i3 4.17.1
info: i3bar dm: startx Distro: Gentoo Base System release 2.6
Machine: Type: Desktop Mobo: ASRock model: X370 Killer SLI/ac serial: <root required> UEFI: American Megatrends
v: P5.50 date: 08/03/2019
Battery: Device-1: hidpp_battery_0 model: Logitech MX Ergo Multi-Device Trackball serial: 406f-9b-ba-aa-d0
charge: 5% (should be ignored) rechargeable: yes status: Discharging
Memory: RAM: total: 62.74 GiB used: 20.46 GiB (32.6%)
RAM Report: unknown-error: dmidecode was unable to generate data
CPU: Topology: 8-Core model: AMD Ryzen 7 1700 bits: 64 type: MT MCP arch: Zen rev: 1 L2 cache: 4096 KiB