Skip to content

Instantly share code, notes, and snippets.

View ismailhkose's full-sized avatar

Ismail Kose ismailhkose

  • Microsoft
  • Redmond
View GitHub Profile
@mqasimsarfraz
mqasimsarfraz / Dockerfile
Created January 8, 2019 19:05
A simple if/else based dockerfile.
FROM centos:7
ARG arg1
ARG arg2
ARG arg3
RUN if [ "x$arg1" = "x" ] ; then echo arg1 not provided ; fi && \
if [ "x$arg2" = "x" ] ; then echo arg2 not provided ; fi && \
if [ "x$arg3" = "x" ] ; then echo arg3 not provided ; fi
@hngouveia01
hngouveia01 / debugging_kernel.txt
Last active June 6, 2024 21:11
Debugging kernel code line by line with Qemu and GDB
We are going to use buildroot to download, configure and compile the kernel.
First, download and uncompress buildroot: https://buildroot.org/download.html
Go to the directory and:
make qemu_x86_defconfig
make menuconfig

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@maggocnx
maggocnx / timertest.c
Created July 8, 2013 07:37
Timer example
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/hrtimer.h>
#include <linux/ktime.h>
unsigned long timer_interval_ns = 1e6;
static struct hrtimer hr_timer;
enum hrtimer_restart timer_callback( struct hrtimer *timer_for_restart )
{
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 31, 2024 13:08
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname