Skip to content

Instantly share code, notes, and snippets.


Luna Allan nallar

Block or report user

Report or block nallar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import lombok.val;
import org.junit.Assert;
import org.junit.Test;
import java.lang.invoke.*;
Your scientists were so preoccupied with whether or not they could, they didn’t stop to think if they should.
Please don't actually do this... :P
View Pokemon ORAS XY romfs file


  • Ohana 3DS
  • Ohana 3DS Rebirth (can't open overworld models?)
  • pk3ds (tools -> unpack)

##Unpacking/Repacking files in romFS

  • Open pk3ds packing tool from tools menu
  • Drag a/N/N/N -> unpack at top of pkedit tool window
  • Folder is created
  • Open/edit models in this folder
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}
nallar /
Created May 10, 2019
worst bootloader ever
#!/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
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 / 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 / block.hosts
Created Oct 29, 2015
3DS anti-browserhax blocker
View block.hosts
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);
You can’t perform that action at this time.