Skip to content

Instantly share code, notes, and snippets.


Frédéric frederic

Block or report user

Report or block frederic

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
frederic /
Created Nov 3, 2017
Updated OpenWRT /lib/ file for Netgear R7800, to enable compatibility with recent (Chaos Calmer) ipk packages
# Copyright (C) 2006-2014
# Copyright (C) 2006 Fokus Fraunhofer <>
# Copyright (C) 2010 Vertical Communications
debug () {
${DEBUG:-:} "$@"
mount() {
frederic / MIPS-ath79-dhp-1565-a1-enable-AR7400-port.diff
Last active Feb 16, 2016
OpenWrt patch to enable PLC chipset on DHP-1565 board
View MIPS-ath79-dhp-1565-a1-enable-AR7400-port.diff
Enable port 6 of AR8327 switch on DHP-1565 board to allow communication between CPU & AR7400 PLC chipset.
Signed-off-by: Frédéric Basse <>
target/linux/ar71xx/files/arch/mips/ath79/mach-dhp-1565-a1.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-dhp-1565-a1.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-dhp-1565-a1.c
index ae47764..2963463 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-dhp-1565-a1.c
frederic / unpack_bootldr!_img.c
Created Dec 2, 2014
Tool to unpack Android boot images
View unpack_bootldr!_img.c
* unpack_bootldr!_img : tool to unpack Android boot images
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
frederic /
Created Nov 6, 2014
IDAPython plugin - ARMv7-A CPSR_C enum
from idautils import *
from idaapi import *
from idc import *
Message("%s starting...\n" % __file__)
CPSR_C_enum_id = GetEnum("CPSR_C_enum")
if CPSR_C_enum_id == BADADDR:
CPSR_C_enum_id = AddEnum(-1, "CPSR_C_enum", hexflag())
You can’t perform that action at this time.