Skip to content

Instantly share code, notes, and snippets.

View asifZaman0362's full-sized avatar
🏠
Working from home

Asif Zaman asifZaman0362

🏠
Working from home
  • None
  • Assam, India
View GitHub Profile
@christopheredsall
christopheredsall / CMakeLists.txt
Created November 10, 2019 11:14
cmake file to print results of find_package(OpenGL)
cmake_minimum_required(VERSION 3.3)
find_package(OpenGL)
message( STATUS "OPENGL_FOUND = ${OPENGL_FOUND}" )
message( STATUS "OPENGL_XMESA_FOUND = ${OPENGL_XMESA_FOUND}" )
message( STATUS "OPENGL_GLU_FOUND = ${OPENGL_GLU_FOUND}" )
message( STATUS "OpenGL_OpenGL_FOUND = ${OpenGL_OpenGL_FOUND}" )
message( STATUS "OpenGL_GLX_FOUND = ${OpenGL_GLX_FOUND}" )
message( STATUS "OpenGL_EGL_FOUND = ${OpenGL_EGL_FOUND}" )
message( STATUS "OPENGL_INCLUDE_DIR = ${OPENGL_INCLUDE_DIR}" )
message( STATUS "OPENGL_EGL_INCLUDE_DIRS = ${OPENGL_EGL_INCLUDE_DIRS}" )
@chriscandy
chriscandy / install-arch-linux-using-efi-and-grub.md
Last active February 1, 2026 20:31
Install Arch Linux using EFI and GRUB

Installing Arch linux with EFI

  1. Change keyboard layout:

    • loadkeys no
  2. Verify boot mode:

    • ls /sys/firmware/efi/efivars (If the directory exist your computer supports EFI)
  3. Ping some site on the Internet to verify connection:

  • ping archlinux.org
@caspian311
caspian311 / client.py
Created January 30, 2013 19:36
Simple client-service dbus example in python.
#!/usr/bin/env python
import dbus
class Client():
def __init__(self):
bus = dbus.SessionBus()
service = bus.get_object('com.example.service', "/com/example/service")
self._message = service.get_dbus_method('get_message', 'com.example.service.Message')
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit')
@rocarvaj
rocarvaj / .vimrc
Created April 27, 2012 21:28
Minimal .vimrc for C/C++ developers
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)