Skip to content

Instantly share code, notes, and snippets.

@eslammedhat
eslammedhat / ubuntu_2004_awus036ach.md
Created June 20, 2024 18:04 — forked from xemoe/ubuntu_2004_awus036ach.md
Ubuntu 20.04 setup wireless usb alfa awus036ach
@eslammedhat
eslammedhat / c_cpp_properties.json
Created September 25, 2022 23:43 — forked from gyulkkajo/c_cpp_properties.json
IntelliSense config file for Linux kernel X86_64.
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}",
"LINUX_PATH/include",
"LINUX_PATH/include/uapi",
"LINUX_PATH/include/generated",
"LINUX_PATH/arch/x86/include",
@eslammedhat
eslammedhat / Makefile
Last active June 26, 2022 18:41 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@eslammedhat
eslammedhat / CMakeLists.txt
Created May 30, 2022 21:07 — forked from scivision/CMakeLists.txt
CMake pkg-config .pc.in generate template
# this fragment generates build/my_package.pc
#
# cmake -B build -DCMAKE_INSTALL_PREFIX=~/mylib
cmake_minimum_required(VERSION 3.0)
project(mylib
LANGUAGES C
HOMEPAGE_URL https://github.invalid/username/mylib
DESCRIPTION "example library"
@eslammedhat
eslammedhat / .bashrc
Created April 28, 2022 21:50
Add this snippet in you're local .bashrc to customize prompt and print git branc.
custom_prompt=yes
# this is a user defined section
if [ -n "$custom_prompt" ]; then
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="${debian_chroot:+($debian_chroot)}"
PS1="$PS1\[\033[01;32m\]\u" # user name
PS1="$PS1@\h" # host