Skip to content

Instantly share code, notes, and snippets.

View doesnotexist's full-sized avatar

Omar El-Domeiri doesnotexist

View GitHub Profile
@doesnotexist
doesnotexist / private_fork.md
Created August 31, 2022 20:07 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

diff --git a/consts.go b/consts.go
index 6f1cb7b..b61a406 100644
--- a/consts.go
+++ b/consts.go
@@ -13,17 +13,17 @@ const (
V4L2_MEMORY_MMAP = 1
- VIDIOC_DQBUF = 0xc0445611
- VIDIOC_QBUF = 0xc044560f
@doesnotexist
doesnotexist / Linux_DRM_OpenGLES.c
Created February 25, 2022 05:50 — forked from Miouyouyou/Linux_DRM_OpenGLES.c
An example, inspired by Rob Clark "kmscube.c" that uses Linux Direct Rendering Manager ( DRM ) and EGL to create an OpenGL ES 2 context. This is a standalone example, that just clears the screen with a blueish color. Usable with Rockchip DRM drivers and Mali Wayland/DRM userspace drivers.
// gcc -o drmgl Linux_DRM_OpenGLES.c `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2
/*
* Copyright (c) 2012 Arvin Schnell <arvin.schnell@gmail.com>
* Copyright (c) 2012 Rob Clark <rob@ti.com>
* Copyright (c) 2017 Miouyouyou <Myy> <myy@miouyouyou.fr>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation

Keybase proof

I hereby claim:

  • I am doesnotexist on github.
  • I am doesnotexist (https://keybase.io/doesnotexist) on keybase.
  • I have a public key whose fingerprint is D0F7 E407 7EBE A3B3 A002 5923 BFE9 0BC0 A3C5 8D10

To claim this, I am signing this object: