Skip to content

Instantly share code, notes, and snippets.

illustris

Block or report user

Report or block illustris

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
@illustris
illustris / F612W_dosubmit_bypass.js
Created Apr 6, 2018
Modified dosubmit function to bypass captcha on ZTE F612W router login page
View F612W_dosubmit_bypass.js
function dosubmit()
{
if (getObj("Frm_Username").value == "")
{
getObj("errmsg").innerHTML = "Username cannot be empty.";
getObj("myLayer").style.visibility = "visible" ;
return;
}
else
{
@illustris
illustris / example.c
Created Mar 25, 2018
Example code for efficiently tailing a log file
View example.c
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/inotify.h>
#include <sys/stat.h>
#include <fcntl.h>
View rx.ino
#include <FlexCAN.h>
#include <kinetis_flexcan.h>
int led = 13;
// create CAN object
FlexCAN CANReceiver(500000);
static CAN_message_t msg;
void setup() {
// init CAN bus
View Makefile
# The name of your project (used to name the compiled .hex file)
TARGET = $(notdir $(CURDIR))
# The teensy version to use, 30, 31, 35, 36, or LC
TEENSY = 36
# Set to 24000000, 48000000, or 96000000 to set CPU core speed
#TEENSY_CORE_SPEED = 48000000
TEENSY_CORE_SPEED = 180000000
View can't write mstatus
core 0: 0x0000000080000000 (0x006f8f93) addi t6, t6, 6
:
core 0: 0x0000000080000004 (0x300f9073) csrw mstatus, t6
: reg 0 mstatus
0x0000000000000002
: reg 0 t6
0x0000000000000006
:
View FreeRTOS sret acting up
illustris@RISCV:~/FreeRTOS/Demo/riscv-spike$ rv 17 && spike -d riscv-spike.elf
'/opt/riscv' -> '/home/illustris/rv17'
: until pc 0 6a4
: reg 0 mepc
0x0000000000004e84
:
core 0: 0x00000000000006a4 (0x10010113) addi sp, sp, 256
:
core 0: 0x00000000000006a8 (0x10000073) sret
: pc 0
View FreeRTOS 1.9 objdump
riscv-spike.elf: file format elf64-littleriscv
Disassembly of section .text:
0000000080000000 <boot>:
80000000: 1400006f j 80000140 <_mstart>
0000000080000004 <debugloop>:
View keybase.md

Keybase proof

I hereby claim:

  • I am illustris on github.
  • I am illustris (https://keybase.io/illustris) on keybase.
  • I have a public key whose fingerprint is 084B D98E 9A82 A04F B475 851E E905 7543 CFE2 6FB5

To claim this, I am signing this object:

You can’t perform that action at this time.