This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Prints information about modules, whether these are enabled or not. | |
# The goal is to quickly find whether a module appears in some package | |
# variant for some distro version. | |
# | |
# Written for use in https://wiki.debian.org/Nginx | |
# | |
# The resulting table should appear as: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated from package gdb using pystubgen | |
""" | |
# Copyright (C) 2010-2015 Free Software Foundation, Inc. | |
""" | |
class Architecture(object): | |
""" | |
GDB architecture object | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS = -Wall -Wextra -g $(shell pkg-config --cflags gtk+-3.0) | |
LDFLAGS = $(shell pkg-config --libs gtk+-3.0) | |
app: app.c | |
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system/vendor/lib/libwvm.so | |
libQSEEComAPI.so | |
libWVStreamControlAPI_L1.so | |
libdrmframework.so | |
libstagefright.so | |
libstlport.so | |
libz.so | |
system/vendor/lib/libwvdrm_L1.so | |
libWVStreamControlAPI_L1.so | |
libstlport.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Patch a recovery image to enable RTC writing | |
Unfortunately it has not the intended effect (tested from recovery): | |
~ # /system/xbin/hwclock -w | |
hwclock: RTC_SET_TIME: Operation not permitted | |
<3>[ 25.821247] spmi_pmic_arb fc4cf000.qcom,spmi: pmic_arb_wait_for_done: transaction denied (0x5) | |
<3>[ 25.821338] qcom,qpnp-rtc qpnp-rtc-ee162000: SPMI write failed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Extract .cpio file from a pbzx Payload file. | |
# | |
# Based on https://gist.github.com/pudquick/ac29c8c19432f2d200d4, | |
# this version adds a command-line interface, improves efficiency (1 MiB chunks | |
# instead of a full copy in memory), adds Python 3 compatibility and | |
# automatically decompresses stuff (some blocks may not be compressed). | |
# | |
# Example usage (from Python): | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# From target/msm8974/tools/mkheader.c (size renamed to size) | |
""" | |
magic[0] = 0x00000005; /* appsbl */ | |
magic[1] = 0x00000003; //Flash_partition_version /* nand */ | |
magic[2] = 0x00000000; //image source pointer | |
magic[3] = base; //image destination pointer | |
magic[4] = code_size + cert_chain_size + signature_size; //image size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Nur libev-4.22.orig/cmakeconfig.h.in libev-4.22/cmakeconfig.h.in | |
--- libev-4.22.orig/cmakeconfig.h.in 1970-01-01 01:00:00.000000000 +0100 | |
+++ libev-4.22/cmakeconfig.h.in 2016-03-18 01:18:55.167666371 +0100 | |
@@ -0,0 +1 @@ | |
+/* Dummy file */ | |
diff -Nur libev-4.22.orig/CMakeLists.txt libev-4.22/CMakeLists.txt | |
--- libev-4.22.orig/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100 | |
+++ libev-4.22/CMakeLists.txt 2016-03-18 01:17:27.359666381 +0100 | |
@@ -0,0 +1,17 @@ | |
+cmake_minimum_required(VERSION 3.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 71fb48669d8508c4571bd9ca4b603ba83d0aa6a8 Mon Sep 17 00:00:00 2001 | |
From: Peter Wu <[email protected]> | |
Date: Tue, 29 Mar 2016 10:41:39 +0200 | |
Subject: [PATCH] Enable more optional dependencies | |
Also add cmake as makedepends and perl for building manual pages. | |
Explicitly use CMAKE_BUILD_TYPE=Release to avoid building in debug mode. | |
Set ECM_MKSPECS_INSTALL_DIR as suggested on | |
http://api.kde.org/ecm/module/ECMGeneratePriFile.html to avoid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Wireshark post-dissector written in Lua | |
-- | |
-- "Turns out #wireshark allows adding any field value as a column. | |
-- How about a column with a function of a value like strlen(x)+5 or log(x)?😁" | |
-- https://twitter.com/Wirefloss/status/790677617955344384 | |
-- | |
-- You were asking for what? Ok, here you go! An example of a Lua | |
-- post-dissector which adds a field to the Wireshark protocol tree which can | |
-- then be displayed as custom column. Have fun! ~ @Lekensteyn | |
-- |