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_inodereader.o := -DDEBUG | |
obj-m += inodereader.o | |
# | |
# Kernel source directory, default or not | |
# | |
# Idea taken from: Documentation/kbuild/modules.txt | |
# | |
KDIR ?= /lib/modules/`uname -r`/build |
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
/* | |
* 2022 April, 18 | |
* The author disclaims copyright to this source code, and it is | |
* release to the public domain. | |
* | |
* This code serves and has been published for study purposes | |
* only, I am not responsible for any damage caused by it. | |
*/ | |
#include <stdio.h> |
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
/* | |
* 2021 November, 17 | |
* The author disclaims copyright to this source code, and it is | |
* release to the public domain. | |
* | |
* This code serves and has been published for study purposes | |
* only, I am not responsible for any damage caused by it. | |
*/ | |
/* Enable nftw(). */ |
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
# RecOTool.py -- Recursively finds dependencies in Mach-O binaries | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Run with Python2... I don't know why do not works with 3.... | |
# | |
# Usage | |
# python RecOTool.py /usr/bin/something -o deps.png (if Graphviz installed) | |
# python RecOTool.py /usr/bin/something -v (output only text, verbose mode | |
# enabled) |
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 sh | |
# | |
# Usage: | |
# ./index_files.sh files* | |
# ./index_files.sh < files.txt | |
# cat files.txt | ./index_files.sh..... (you get it) | |
# | |
percep "$@" | tee index_files.txt | |
cut -d' ' -f1 < index_files.txt > hash_files.txt |
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
# Sample toolchain file for building for Windows from an Ubuntu Linux system. | |
# | |
# Typical usage: | |
# *) install cross compiler: `sudo apt-get install mingw-w64` | |
# *) cd build | |
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake .. | |
set(CMAKE_SYSTEM_NAME Windows) | |
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) |
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
/* | |
* MIT License | |
* | |
* Copyright (c) 2021 Davidson Francis <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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
# | |
# MIT License | |
# | |
# Copyright (c) 2021 Davidson Francis <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
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
/* | |
* Public domain, do whatever you want with this. | |
* | |
* Build: gcc disksize.c -o disksize -std=c99 -pedantic -Wall -Wextra | |
* Usage: ./disksize /dev/sdX | |
*/ | |
#include <stdio.h> | |
#include <inttypes.h> | |
#include <assert.h> |
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
# Increase maximum recent files on VLC, by Theldus | |
# | |
# First of all, this is not an official patch!, apply at your | |
# own risk, nonetheless, it should be safe =). | |
# | |
# Second of all, it's so much easy to increase this limit, why on earth VLC | |
# uses a hardcoded number? 10 at the moment. VLC already saves more than 10 | |
# items on the ~/.config/vlc/vlc-qt-interface.conf, so why not makes use of | |
# such thing? I really dont know. Anyway, apply this and be happy. | |
# |