Skip to content

Instantly share code, notes, and snippets.

View ohnx's full-sized avatar
💭
:shipit:

Mason ohnx

💭
:shipit:
View GitHub Profile
@ohnx
ohnx / build_cross_gcc
Created November 26, 2018 17:18 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.
@ohnx
ohnx / cat2think.svg
Last active August 9, 2019 01:55
emojis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

dlkg3

script to download audio clips from https://kg3.qq.com

tries to infer filename from title and falls back to using the song code.

this worked on january 8th, 2020; good luck getting it to work in the future!

@ohnx
ohnx / Makefile
Created February 5, 2020 06:20 — forked from ilammy/Makefile
Linux kernel system call table hooking
obj-m += afw.o
afw-objs := afw_main.o locate_sct.o ttgl.o
ccflags-y := -std=gnu99 -O2
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean