Skip to content

Instantly share code, notes, and snippets.

#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.11.6 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@azat
azat / git_history.php
Created November 30, 2013 09:03
git_history.php
#!/usr/bin/env php
<?php
function findGitDir($start)
{
$dir = $start;
while (true) {
$dir = realpath($dir);
@azat
azat / .bashrc
Created December 3, 2013 10:23
old .bashrc with a little overhead for git prompt (because it is in PS1, without functions)
#
# Generated at Tue May 14 19:11:16 UTC 2013
# From https://github.com/azat/dot_files
#
# Begining of ./bash.bashrc
# {{{
# System-wide .bashrc file for interactive bash(1) shells.
@azat
azat / .bashrc
Last active February 19, 2025 17:22
.bashrc generated from upstream.
#
# Generated at Sun Jan 18 23:32:11 MSK 2015
# Version: 4c1bb5ad044208329e6c7c1bf23481c9c9c2ad28
# From https://github.com/azat/dot_files
#
# Begining of ./bash.bashrc
# {{{
@azat
azat / .gdbinit
Last active January 26, 2016 15:45
gdb init
#
# https://github.com/azat/dot_files/blob/master/gdb/gdbinit
#
#
# System-wide GDB initialization file.
#
set disassembly-flavor intel
@azat
azat / .vimrc
Last active February 16, 2024 15:19
generated from upstream
" Do not run defaults vim, that can enable mouse mode and other stuff
"
" Defaults:
" - /usr/share/vim/vim80/defaults.vim (debian)
let g:skip_defaults_vim=1
runtime! debian.vim
runtime! archlinux.vim
" Load vim-plug
#!/usr/bin/env bash
cd /sys/kernel/debug/tracing
echo >| trace
echo ext4_* >| set_graph_function
for i in printk irq_exit local_apic_timer_interrupt smp_apic_timer_interrupt; do
echo $i >> set_graph_notrace
done
echo function_graph >| current_tracer
#!/usr/bin/env bash
#
# http://en.opensuse.org/SDB:XFStests
#
export TEST_DIR=/xfs-playground/test
#export TEST_DEV=/dev/sdb1
#export SCRATCH_DEV=/dev/sdb1
export TEST_DEV=/dev/sdb1
#!/usr/bin/env bash
set -x
target=$1
for i in /usr/src/linux/fs/ext4/ext4.ko /usr/src/linux/vmlinux; do
scp -P2204 root@localhost:$i ./
done
typedef unsigned char u8;
size_t ffsn(u8 *a, size_t len)
{
const size_t chunk_size = sizeof(long long int);
const size_t bits_in_byte = 8;
u8 *begin = a;
u8 *end = a + len;
size_t pos = 0;