Skip to content

Instantly share code, notes, and snippets.

View andy-shev's full-sized avatar

Andy Shevchenko andy-shev

View GitHub Profile
@andy-shev
andy-shev / Linux kernel simple tasks
Last active June 24, 2023 13:37
Linux kernel simple tasks for newbies or anybody who wants to enter to kernel development
The below list of tasks for Linux kernel is in completely arbitrary order by
complexness, tree wideness, etc.
1. GCC warning: dubious: x | !y: `git grep -n ' | !'`
2. Check for possibility to use %*ph: `git grep -n -i '%02x[ :-]%02x[ :-]%02x'`
3. Any of custom code that implements already provided extensions described in printk-formats.rst
4. driver_override_store() unification (manipulation with strings)
5. Run `codespell` across drivers and subsystems
6. Fix ioremap(..., 0) [size = 0] across architectures, now some return NULL, some return address, some may even have leaks
7. Common helper to search for magic inside BIOS region: `git grep -n -i ' = .*0xf0000[^0-9a-f]'`
@andy-shev
andy-shev / Test FAT32 Image
Last active January 27, 2020 16:31
mmc-fat-part
Test Fat32 image
@andy-shev
andy-shev / .gitignore
Last active May 11, 2020 20:50
Git version to C file
version.h
module
*.o

Forward GNUPG agent with the following steps:

On the remote insecure machine:

Run gpg once to create the directory structure.

gpg --list-keys

On the local machine:

@andy-shev
andy-shev / jive2git.py
Last active September 23, 2020 17:53
Covnvert Jive CMS document to a Git repository
#!/usr/bin/python3 -tt
# -*- coding: UTF-8 -*-
# vim: ts=4 sw=4 et ai si
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
import argparse
import dateutil.parser
import errno