Skip to content

Instantly share code, notes, and snippets.

@dixyes
dixyes / hello.S
Created August 13, 2025 15:32
hello from many unix-like OSs
.text
// for OpenBSD compatible: https://nullprogram.com/blog/2025/03/06/
.pushsection .note.openbsd.ident, "a"
.long 8, 4, 1, 0x6e65704f, 0x00445342, 0
.popsection
.global _entry
_entry:
@nikp123
nikp123 / init_window.c
Created May 16, 2021 11:10
Updated "ugly" EGL wayland example to support XDG
// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2
#include <wayland-client-core.h>
#include <wayland-client.h>
#include <wayland-server.h>
#include <wayland-client-protocol.h>
#include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers
#include "xdg-shell-client-protocol.h"
#include "init_window.h"
@TheSherlockHomie
TheSherlockHomie / RenewExpiredGPGkey.md
Created January 3, 2021 16:36
Updating expired GPG keys and backing them up 🔑🔐💻

Updating expired GPG keys and their backup 🔑🔐💻

I use a GPG key to sign my git commits.

An error like this one might be a sign of an expired GPG key.

error: gpg failed to sign the data fatal: failed to write commit object
--[[
Default, and assumed, LUAI_MAXSHORTLEN is 40. To create a non internalized
string always force the buffer to be greater than that value.
--]]
local _strblob = string.blob or function(length)
return string.rep("\0", math.max(40 + 1, length))
end
--[[
API:

[KINTA]'s heci-qst.c with MEI kernel support

This is mirror of [KINTA]'s [heci-qst.c]. [KINTA]'s [heci-qst.c] is modified from [Andriy Gapon]'s heci-qst.c to support Intel MEI.

# Make sure that your kernel have Intel MEI support. Those values should be 'y' or 'm'
$ gzip -dc /proc/config.gz | grep INTEL_MEI
CONFIG_INTEL_MEI=m
CONFIG_INTEL_MEI_ME=m
@louisstuart96
louisstuart96 / Graphics.md
Last active May 8, 2025 21:52
Graphics API in different languages
@krisleech
krisleech / renew-gpgkey.md
Last active August 28, 2025 14:09
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@huazhanshen
huazhanshen / OneIndex 2.2
Created June 20, 2018 05:14
支持onedrive内的所有视频格式在线播放
[https://github.com/donwa/oneindex](https://github.com/donwa/oneindex)
不用服务器空间,不走服务器流量,
直接列onedrive目录,文件直链下载。
原理:onedrive会把所有视频都转码,供在线预览播放。调用转码好的DASH格式视频,进行在线播放
2.0 beta change log:
1、更新展示界面
@Miouyouyou
Miouyouyou / init_window.c
Created December 15, 2016 07:55
A very ugly Wayland EGL OpenGL example
// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2
#include <wayland-client.h>
#include <wayland-server.h>
#include <wayland-client-protocol.h>
#include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers
#include "init_window.h"
#include "log.h"
#include <string.h>
anonymous
anonymous / list27.txt
Created May 8, 2016 17:40
000(023Rb|001Rb)
001(017La|002Rb)
002(021La|003Rb)
003(021La|004La)
004(009Rb|005Lb)
005(004Ra|005La)
006(008La|007La)
007(009Rb|007La)
008(009Ra|008La)
009(010Ra|026Ra)