Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Frédéric frederic

🎯
Focusing
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
frederic / functions.sh
Created Nov 3, 2017
Updated OpenWRT /lib/functions.sh file for Netgear R7800, to enable compatibility with recent (Chaos Calmer) ipk packages
View functions.sh
#!/bin/sh
# Copyright (C) 2006-2014 OpenWrt.org
# Copyright (C) 2006 Fokus Fraunhofer <carsten.tittel@fokus.fraunhofer.de>
# Copyright (C) 2010 Vertical Communications
debug () {
${DEBUG:-:} "$@"
}
mount() {
@frederic
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 <contact@fredericb.info>
---
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
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
* https://gist.github.com/frederic/
**/
/**
* 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
frederic / ida-armv7a-cpsr_c.py
Created Nov 6, 2014
IDAPython plugin - ARMv7-A CPSR_C enum
View ida-armv7a-cpsr_c.py
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())
SetEnumBf(CPSR_C_enum_id,1);
You can’t perform that action at this time.