Skip to content

Instantly share code, notes, and snippets.

View ismailhkose's full-sized avatar

Ismail Kose ismailhkose

  • Microsoft
  • Redmond
View GitHub Profile
@ismailhkose
ismailhkose / my_python_env.sh
Created September 28, 2021 21:40 — forked from lsdr/my_python_env.sh
requirements.txt and a quick sh script to bootstrap my core virtualenv
#!/bin/sh
# assumptions:
# * virtualenv is avaliable and working
# * virtualenvs go to ~/.pvm
export PIP_REQUIRE_VIRTUALENV=true
export PIP_RESPECT_VIRTUALENV=true
export VIRTUALENV_DISTRIBUTE=true
cd ~; mkdir -p ~/.pvm/core
virtualenv --python=/usr/bin/python --clear --no-site-packages --distribute ~/.pvm/core
@ismailhkose
ismailhkose / debugging_kernel.txt
Created October 7, 2020 23:48 — forked from hngouveia01/debugging_kernel.txt
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
@ismailhkose
ismailhkose / framebuffer.c
Created September 7, 2017 00:36 — forked from FredEckert/framebuffer.c
Paint Pixels to Screen via Linux FrameBuffer
/*
To test that the Linux framebuffer is set up correctly, and that the device permissions
are correct, use the program below which opens the frame buffer and draws a gradient-
filled red square:
retrieved from:
Testing the Linux Framebuffer for Qtopia Core (qt4-x11-4.2.2)
http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2/qtopiacore-testingframebuffer.html
*/
1. Execute make first. This will result in a netlinkKernel.ko output among many others.
2. Execute $ gcc netlinkUser.c -o netlinkUser
3. Insert kernel module by :$ sudo insmod netlinkKernel.ko
4. Run ./netlinkUser to see message and run dmesg to see debug messages
5. Remove module by : $ sudo rmmod netlinkKernel
6. Finally make clean to remove output files.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@ismailhkose
ismailhkose / tmux.md
Last active August 29, 2015 14:25 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname