Skip to content

Instantly share code, notes, and snippets.

View koxudaxi's full-sized avatar

Koudai Aono koxudaxi

View GitHub Profile
$ knex migrate:latest
[ { sql:
'select * from information_schema.tables where table_name = ? and table_schema = current_schema()',
bindings: [ 'knex_migrations' ],
output: [Function: output] } ]
[ { sql:
'create table "knex_migrations" ("id" serial primary key, "name" varchar(255), "batch" integer, "migration_time" timestamptz)',
bindings: [] } ]
[ { sql:
'select * from information_schema.tables where table_name = ? and table_schema = current_schema()',
@koxudaxi
koxudaxi / assert_example.py
Created October 4, 2019 18:10
assert python example file by print() and comments
import importlib
import inspect
import os
import re
import sys
from argparse import ArgumentParser, Namespace
from difflib import Differ
from pathlib import Path
from typing import Callable, List
from unittest.mock import patch
@koxudaxi
koxudaxi / 5.10-pre2.cap
Created April 1, 2013 05:00
pxelinux 5.10-pre2 + memtest4.2. pxelinux return to menu when i selected memtest4.2
Socket = 0 Channel = 0 DIMM = 0
Socket = 0 Channel = 0 DIMM = 1
Socket = 0 Channel = 1 DIMM = 0
Socket = 0 Channel = 1 DIMM = 1
heci_reg_ME_CSR_HA.ul = 80000009
@koxudaxi
koxudaxi / 5.01.cap
Created April 1, 2013 04:59
pxelinux 5.01 + memtest4.2. pxelinux return to menu when i selected memtest4.2
Socket = 0 Channel = 0 DIMM = 0
Socket = 0 Channel = 0 DIMM = 1
Socket = 0 Channel = 1 DIMM = 0
Socket = 0 Channel = 1 DIMM = 1
heci_reg_ME_CSR_HA.ul = 80000009
@koxudaxi
koxudaxi / vs.cap
Created March 31, 2013 17:57
The log is pxelinux 5.1.0 pre2 Debug log when memtest4.2 was frozen . I used VirtualBox with virual-serial-port to get the log.
inject: 0x69e80 bytes @ 0x00034180, heap 1 (0x001110a4)
start = 510, len = 9daf0, is_ram = 1_malloc(20, 1, 2) @ 0x00100d69 = 0x000341a0
start = 100000, len = 3df3960, is_ram = 1will inject a block start:0x330000 size 0x3bc3960inject: 0x3bc3960 bytes @ 0x00330000, heap 0 (0x0011101c)
start = 3ff0000, len = 10000, is_ram = 0start = fffc0000, len = 40000, is_ram = 0free(0x000341a0) @ 0x00104694
_malloc(23, 0, 2) @ 0x001032ac = 0x00330020
_malloc(22, 0, 2) @ 0x001032ac = 0x00330060
_malloc(15, 0, 2) @ 0x001032ac = 0x003300a0
_malloc(12, 0, 2) @ 0x001032ac = 0x003300e0
_malloc(26, 0, 2) @ 0x001032ac = 0x00330120
_malloc(24, 0, 2) @ 0x001032ac = 0x00330160