Skip to content

Instantly share code, notes, and snippets.

Avatar
⌨️
ENOTTY

Luna Nova nallar

⌨️
ENOTTY
View GitHub Profile
@nallar
nallar / grub-kexec.sh
Created May 10, 2019
worst bootloader ever
View grub-kexec.sh
#!/usr/bin/env bash
# This script boots the first linux it finds in a grub config on any available mount point
# using kexec
DEBIAN_FRONTEND=noninteractive sudo apt-get -q -y install kexec-tools
set -euvo pipefail
parts=$(sudo blkid | grep -v /dev/loop | sort | cut -d: -f 1)
grub_paths="/boot/grub/grub.cfg /grub/grub.cfg /boot/grub.cfg"
View xyratex disk shelf serial commands.txt
Enclosure serial console commands
COMMANDS:
Note: Not all commands are supported, 'help' lists supported commands.
acfail_sim Simulate AC Fail condition
auto_iic_recovery Enable/disable the automatic bus recovery.
batt_cell_balance Override auto cell balancing by individually turning on/off the balance FET s
batt_clear_cell_fault_poh Clear the Power On Hours stored as a result of a >500mV cell imbalance fault
@nallar
nallar / dhclient log
Created Jul 11, 2018
Flapping Interfaces Trouble
View dhclient log
Jul 11 09:22:21 dhclient[87943]: exiting.
Jul 11 09:22:21 dhclient[87943]: connection closed
Jul 11 09:22:13 dhclient[27206]: em2 link state up -> down
Jul 11 09:21:26 dhclient[73751]: bound: renewal in 190763 seconds.
Jul 11 09:21:26 dhclient: Deleting old routes
Jul 11 09:21:26 dhclient: Comparing Routers: Old: <FLAPPING GATEWAY IP> New: <FLAPPING GATEWAY IP>
Jul 11 09:21:26 dhclient: Comparing IPs: Old: <FLAPPING WAN IP> New: <FLAPPING WAN IP>
Jul 11 09:21:26 dhclient: Starting delete_old_states()
Jul 11 09:21:25 dhclient: New Routers (em2): <FLAPPING GATEWAY IP>
Jul 11 09:21:24 dhclient: New Routers (em2): <FLAPPING GATEWAY IP>
@nallar
nallar / GPIOThreads.strace
Last active Jun 1, 2018
C3000 Onboard Administrator straces of mgmt
View GPIOThreads.strace
# strace -x -s 256 -p 1957 -p 1958
Process 1957 attached - interrupt to quit
Process 1958 attached - interrupt to quit
[pid 1958] rt_sigsuspend([] <unfinished ...>
[pid 1957] rt_sigsuspend([] <unfinished ...>
[pid 1958] <... rt_sigsuspend resumed> ) = ? ERESTARTNOHAND (To be restarted)
[pid 1958] --- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
[pid 1958] sigreturn() = ? (mask now [])
[pid 1958] rt_sigprocmask(SIG_BLOCK, [CHLD], [RTMIN], 8) = 0
[pid 1958] rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
View halp.txt
rdrand stressor will be skipped, not a recognised Intel CPU.
tsc stressor will be skipped, not a recognised Intel CPU.
disabled 'cpu-online' as it may hang the machine (enable it with the --pathological option)
dispatching hogs: 16 af-alg, 16 atomic, 16 branch, 16 bsearch, 16 cache, 16 context, 16 cpu, 16 crypt, 16 fp-error, 16 funccall, 16 getrandom, 16 heapsort, 16 hsearch, 16 icache, 16 ioport, 16 lockbus, 16 longjmp, 16 lsearch, 16 malloc, 16 matrix, 16 membarrier, 16 memcpy, 16 mergesort, 16 nop, 16 numa, 16 opcode, 16 qsort, 16 radixsort, 16 str, 16 stream, 16 tree, 16 tsearch, 16 vecmath, 16 wcs, 16 zlib
stress-ng-numa: system has 1 of a maximum 1024 memory NUMA nodes
stress-ng-stream: stressor loosely based on a variant of the STREAM benchmark code
stress-ng-stream: do NOT submit any of these results to the STREAM benchmark results
stress-ng-stream: Using CPU cache size of 8192K
View events.cpp
#include "events.h"
OurCameraEventHandler g_ourCameraEventHandler;
OurActionEventHandler g_ourActionEventHandler;
OurNiNodeUpdateEventHandler g_ourNinodeEventHandler;
bool Events::Hook(SKSEMessagingInterface* iface) {
_MESSAGE("Events::Hook AddEventSink");
EventDispatcher<SKSEActionEvent> * aed = (EventDispatcher<SKSEActionEvent> *)iface->GetEventDispatcher(SKSEMessagingInterface::kDispatcher_ActionEvent);
aed->AddEventSink(&g_ourActionEventHandler);
View scene ninode dump.txt
This file has been truncated, but you can view the full file.
NODE {SceneGraph} {WorldRoot Node} {21D21D60}
NODE {NiNode} {WorldRoot CameraNode} {21D13650}
OTHER {NiCamera} {WorldRoot Camera} {21D11B20}
NODE {ShadowSceneNode} {shadow scene node} {D3D11A0}
NODE {BSMultiBoundNode} {Sky} {21F55E40}
NODE {NiNode} {(null)} {26E54690}
GEOMETRY {BSTriShape} {AtmosphereDome:0} {26DFE680}
NODE {NiNode} {(null)} {26E543F0}
NODE {NiNode} {SkyrimStars} {2757B3B0}
View skeleton dump
NODE {BSFadeNode} {skeleton_female.nif} {DAE31080}
EXTRA {BSBoneMap} {BOM} {DAE31080}
EXTRA {BSBound} {BBX} {DAE31080}
EXTRA {BSXFlags} {BSX} {DAE31080}
EXTRA {BSBoneLODExtraData} {BSBoneLOD} {DAE31080}
EXTRA {NiIntegerExtraData} {SkeletonID} {DAE31080}
NODE {NiNode} {NPC} {DAE3B650}
EXTRA {NiStringExtraData} {species} {DAE3B650}
EXTRA {NiStringExtraData} {rigPerspective} {DAE3B650}
EXTRA {NiStringExtraData} {rigVersion} {DAE3B650}
View untestedNameUUIDthingyforCJ.xml
<patchGroups>
<minecraft>
<class id="net.minecraft.server.network.NetHandlerLoginServer">
<replaceMethod code="return new ^class:GameProfile^(this.^field:NetHandlerLoginServer/server^.^method:MinecraftServer/getPlayerProfileCache^().^method:PlayerProfileCache/getGameProfileForUsername^($1.^method:GameProfile/getName^()).^method:GameProfile/getId^(), $1.^method:GameProfile/getName^());">getOfflineProfile</replaceMethod>
</class>
</minecraft>
</patchGroups>
View gist:b653d25b31db49f0849fd4243e347435
2017-11-06 14:12:37, Info CBS Appl: Partial install Status testing, package: Package_for_KB4051613~31bf3856ad364e35~amd64~~10.0.1.0, partially installed (true/false), 0
2017-11-06 14:12:38, Info CBS DLWD: Expecting search returns 1 update, actual:0 [HRESULT = 0x800f0954 - CBS_E_INVALID_WINDOWS_UPDATE_COUNT_WSUS]
2017-11-06 14:12:38, Info CBS DWLD:Failed to do Windows update search [HRESULT = 0x800f0954 - CBS_E_INVALID_WINDOWS_UPDATE_COUNT_WSUS]
2017-11-06 14:12:38, Info CBS FC: WindowsUpdateDownloadFromUUP returns. [0x800F0954]
2017-11-06 14:12:38, Error CBS FC: CFCAcquirerWUClient::Download(136): Result = 0x800F0954
2017-11-06 14:12:38, Error CBS FC: CFCAcquirerWrapper::Execute(147): Result = 0x800F0954
2017-11-06 14:12:38, Info CBS Failed to get uup features from WU, sessionData: {"ModuleID":"FOD","Features":[{"name":"NetFX3~"}]} [HRESULT = 0x800f0954 - CBS_E_INVALI
You can’t perform that action at this time.