Skip to content

Instantly share code, notes, and snippets.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64
Starting driver
ostrace: Found ostrace
xhci: starting driver
block/ata: Starting driver
Partition 0, type: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
block/nvme: Starting driver
Partition 1, type: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
It's a Windows data partition!
block/ata: detected controller
ext2fs: Revision is: 1
@borrrden
borrrden / launch.json
Created January 28, 2021 02:13
VSCode Setup for Debugging PonchoOS
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Kernel",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/kernel/bin/kernel.elf",
"args": [],
"stopAtEntry": false,
@borrrden
borrrden / instructions.sh
Last active November 13, 2023 22:47
Debugging ponchoOS kernel
# INSIDE WSL, install gdb (one-time instruction)
sudo apt install gdb
# Add the following to your kernel Makefile CFLAGS, so that gcc will generate
# debug symbols that the debugger can use
# Note: The thing being added is -g, so as of lesson 12 it should look like this.
# Delete all the contents of the lib folder to force a recompile
CFLAGS = -ffreestanding -fshort-wchar -g
# Add the following to your qemu invocation and start QEmu:
@borrrden
borrrden / config.h
Created January 21, 2020 01:39
config.h for mbedTLS 2.19.1 on UWP
/**
* \file config.h
*
* \brief Configuration options (set of defines)
*
* This set of compile-time options may be used to enable
* or disable features selectively, and reduce the global
* memory footprint.
*/
/*
@borrrden
borrrden / sg_config_bad.json
Last active December 24, 2019 05:13
JSON that causes SG to not start (no error messages)
{
"adminInterface": "0.0.0.0:4985",
"verbose": true,
"logging": {
"log_file_path": "C:\\Development\\logs",
"error": {"enabled": true},
"warn": {"enabled": true},
"info": {"enabled": true},
"debug": {"enabled": true},
"trace": {"enabled": true}
@borrrden
borrrden / Implementation.cs
Last active April 12, 2019 23:01
Trying to run some inserts
// _username and _password are passed in and cluster is created as follows
_cluster = new Cluster(new ClientConfiguration
{
Servers = new List<Uri> {url}
});
// Create the buckets and users, names is a list of strings
var authenticator = new ClassicAuthenticator(_username, _password);
foreach (var name in names) {
authenticator.AddBucketCredential(name, _password);
@borrrden
borrrden / explain_output.json
Created February 1, 2019 00:16
Wrong index query explain plan
[
[
0,
"Init",
0,
54,
0,
"",
"00",
"Start at 54"
@borrrden
borrrden / bad.txt
Created January 31, 2019 22:46
For passive replicator issue
Line 2390: INFO) Replicator {Repl#101}==> class litecore::repl::Replicator C:\Users\Jenkins\AppData\Local\Temp\CouchbaseLite\otherdb1.cblite2\ <-x-msg-conn://291027862 @000001A0F7549D98
Line 2391: INFO) Replicator {Repl#101} Push=passive, Pull=passive, Options={{noIncomingConflicts:true}}
Line 2393: DEBUG) Replicator {Repl#101} onHTTPResponse
Line 2394: DEBUG) Replicator {Repl#101} Queued events 0, delayed events 0
Line 2396: DEBUG) Replicator {Repl#101} onConnec
Line 2397: INFO) Replicator {Repl#101} activityLevel=connecting: connectionState=1
Line 2398: DEBUG) Replicator {Repl#101} Queued events 1, delayed events 0
Line 2399: INFO) Replicator {Repl#101} Connected!
Line 2400: INFO) Replicator {Repl#101} activityLevel=busy: connectionState=2
Line 2402: DEBUG) Replicator {Repl#101} Queued events 1, delayed events 0 (during computeActivityLevel)
@borrrden
borrrden / log.txt
Created January 15, 2019 01:39
Log for false conflict case
INFO) Database (Startup) [3] CouchbaseLite/0.0.0 (.NET; Microsoft Windows 10.0.17134 ) Build/0 LiteCore/0.0.0 (afb3ddd4+) Commit/aa05f71
INFO) Database (Database) [3] Opening database at C:\Users\borrr\AppData\Local\Temp\CouchbaseLite\testdb1.cblite2
INFO) Database {Shared#1}==> class litecore::DataFile::Shared 000001FC5EF99980 @000001FC5EF99980
INFO) Database {Shared#1} instantiated on C:\Users\borrr\AppData\Local\Temp\CouchbaseLite\testdb1.cblite2\db.sqlite3
DEBUG) Database {Shared#1} created for DataFile 000001FC5EFB91A0 at C:\Users\borrr\AppData\Local\Temp\CouchbaseLite\testdb1.cblite2\db.sqlite3
INFO) Database {DB#2}==> class litecore::SQLiteDataFile C:\Users\borrr\AppData\Local\Temp\CouchbaseLite\testdb1.cblite2\db.sqlite3 @000001FC5EFB91A0
INFO) Database {DB#2} Opening database
VERBOSE) Database {DB#2} begin transaction
VERBOSE) Database {DB#2} KeyStore(info) set versioning
VERBOSE) Database {DB#2} KeyStore(info) set publicUUID