Skip to content

Instantly share code, notes, and snippets.

View rayddteam's full-sized avatar
😄
Happy as Ukrainian can be happy with the electricity 😀

Oleksandr Rybalko rayddteam

😄
Happy as Ukrainian can be happy with the electricity 😀
View GitHub Profile
@rayddteam
rayddteam / asus_rt-ac58u_ipq4018_bootlog.log
Created March 1, 2017 21:48 — forked from pepe2k/asus_rt-ac58u_ipq4018_bootlog.log
Asus RT-AC58U (IPQ4018 based) bootlog
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00096
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Core 0 Frequency, 0 MHz
B - 261 - PBL, Start
B - 1339 - bootable_media_detect_entry, Start
B - 1679 - bootable_media_detect_success, Start
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body id="body">
<script id="jsbin-javascript">
@rayddteam
rayddteam / strerror.c
Created September 20, 2017 21:53
Linux has bad errno documentation, so instead of dig for code meaning just do strerror.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
main(int argc, char **argv)
{
if (argc > 1)
printf("err %s\n", strerror(atoi(argv[1])));
else
// (c) Eric Elliott
const fn = (fn, {required = []}) => (params = {}) => {
const missing = required.filter(param => !(param in params));
if (missing.length) {
throw new Error(`${ fn.name }() Missing required parameter(s):
${ missing.join(', ') }`);
}
@rayddteam
rayddteam / Buffalo WZR-HP-G301NH DDWRT boot.log
Created March 30, 2018 08:59 — forked from josla972/boot.log
Buffalo WZR-HP-G301NH DDWRT boot log
BUFFALO U-BOOT Ver 1.07
AP83-208 (ar9100) U-boot 0.0.12
64 MB
Memory Test (address line)
Memory Test start(0x00000000) end(0x04000000) size(67108864)
Data line test start:0x00000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
Address line test start:0x00000000 len:0x4000000 pattern 0xAAAAAAAA 0x55555555
Fill test patnum:5
@rayddteam
rayddteam / FreeBSD Buffalo WZR-HP-G301NH boot.log
Last active March 30, 2018 11:01 — forked from josla972/gist:2c50047e099ffa77552cba5030cd3600
FreeBSD boot log Buffalo WZR-HP-G301NH
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-RELEASE-p8 #0 r313908+312f06f761f(HEAD)-dirty: Wed Mar 28 15:29:38 JST 2018
josef@freebsd-virtual:/usr/home/josef/ZRouter/obj/usr/home/josef/ZRouter/ZRouter/tmp/mips.mips/usr/home/josef/freebsd/sys/Buffalo_WZR-HP-G301NH mips
gcc version 4.2.1 20070831 patched [FreeBSD]
Preloaded elf kernel "kernel" at 0x804832d0.
link_elf_lookup_symbol: missing symbol hash table
link_elf_lookup_symbol: missing symbol hash table
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-RELEASE-p8 #0 r313908+312f06f761f(HEAD)-dirty: Wed Mar 28 15:29:38 JST 2018
josef@freebsd-virtual:/usr/home/josef/ZRouter/obj/usr/home/josef/ZRouter/ZRouter/tmp/mips.mips/usr/home/josef/freebsd/sys/Buffalo_WZR-HP-G301NH mips
gcc version 4.2.1 20070831 patched [FreeBSD]
Preloaded elf kernel "kernel" at 0x804832d0.
@rayddteam
rayddteam / gist:acacba5f64d9d1a1b7a46e9e101c2226
Created March 30, 2018 14:38 — forked from josla972/gist:7a619f6e76fe4ec2fea7ff65d1fb9b11
Third boot with backslash fixed and FreeBSD current
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #0 65e4b69acf0(master)-dirty: Fri Mar 30 23:25:33 JST 2018
josef@freebsd-virtual:/usr/home/josef/ZRouter/obj/usr/home/josef/ZRouter/ZRouter/tmp/usr/home/josef/freebsd/mips.mips/sys/Buffalo_WZR-HP-G301NH mips
gcc version 4.2.1 20070831 patched [FreeBSD]
Preloaded elf kernel "kernel" at 0x80505e00.
real memory = 67108864 (65536K bytes)
Physical memory chunk(s):
@rayddteam
rayddteam / boot.log
Last active August 21, 2019 23:58
BPI-R2 FreeBSD boot
---<<BOOT>>---
ARM Debug Architecture v7.1
4 watchpoints and 6 breakpoints supported
KDB: debugger backends: ddb
KDB: current backend: ddb
CPU(0) applied BP hardening: not necessary
Copyright (c) 1992-2019 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
@rayddteam
rayddteam / zfs_hdd_sync_backup.sh
Created June 5, 2019 22:06
Daily sync SSD data to HDD for backup (or any other local zfs pools)
#!/bin/sh
SRC="z"
DST="backup"
DATE=$(date +%Y-%m-%d)
### For first time run:
# zfs snapshot -r ${SRC}@${DATE} || (echo "Fail to create ${SRC}@${DATE}"; exit 1)
# zfs send -R ${SRC}@${DATE} | zfs recv -F ${DST}