Skip to content

Instantly share code, notes, and snippets.

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

George LilDojd

🏠
Working from home
View GitHub Profile
@LilDojd
LilDojd / Crash log, journalctl
Last active January 19, 2023 16:40
igc I255-V dmesg, ethtool
Nov 08 20:23:08 darkforest kernel: igc 0000:0a:00.0 eno1: PCIe link lost, device now detached
Nov 08 20:23:08 darkforest kernel: ------------[ cut here ]------------
Nov 08 20:23:08 darkforest kernel: igc: Failed to read reg 0xc030!
Nov 08 20:23:08 darkforest kernel: WARNING: CPU: 5 PID: 121815 at drivers/net/ethernet/intel/igc/igc_main.c:6197 igc_rd32+0x95/0xa0 [igc]
Nov 08 20:23:08 darkforest kernel: Modules linked in: veth tls udp_diag tcp_diag inet_diag xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 br_netfilter bridge stp llc snd_seq_dummy snd_hrtimer snd_seq rfcomm snd_usb_a>
Nov 08 20:23:08 darkforest kernel: aesni_intel snd_hda_codec crypto_simd cryptd ttm snd_hda_core rapl pcspkr sp5100_tco drm_display_helper snd_hwdep cfg80211 snd_pcm ccp cec i2c_piix4 k10temp snd_timer igc rfkill snd tpm_crb soundcore tpm_tis wmi tpm_tis_core video gpio_amdpt mac_hid tpm acpi_cpufreq gpio_generic >
Nov 08 20:23:08 d
@LilDojd
LilDojd / tree.py
Created November 21, 2019 13:08
Homework for 7_2
import sys
from itertools import compress
from functools import partial
# Define utility classes
class MaskableList(list):
def __getitem__(self, index):
try:
return super(MaskableList, self).__getitem__(index)