This file contains 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
# | |
# 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" |
This file contains 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 php | |
<?php | |
function findGitDir($start) | |
{ | |
$dir = $start; | |
while (true) { | |
$dir = realpath($dir); |
This file contains 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 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. |
This file contains 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 at Sun Jan 18 23:32:11 MSK 2015 | |
# Version: 4c1bb5ad044208329e6c7c1bf23481c9c9c2ad28 | |
# From https://github.com/azat/dot_files | |
# | |
# Begining of ./bash.bashrc | |
# {{{ |
This file contains 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
# | |
# https://github.com/azat/dot_files/blob/master/gdb/gdbinit | |
# | |
# | |
# System-wide GDB initialization file. | |
# | |
set disassembly-flavor intel |
This file contains 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
" 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 |
This file contains 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 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 |
This file contains 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 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 |
This file contains 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 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 |
This file contains 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
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; |