Skip to content

Instantly share code, notes, and snippets.

View Un1Gfn's full-sized avatar

吳德潤 Un1Gfn

View GitHub Profile
pkgbase = openrw-git
pkgdesc = A re-implementation of Rockstar Games' Grand Theft Auto III
pkgver = r1976.30856790
pkgrel = 1
url = https://github.com/rwengine/openrw
arch = x86_64
license = GPL3
makedepends = git
makedepends = cmake
makedepends = make
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
// https://cmcenroe.me/2018/01/30/fbclock.html
// gcc -std=gnu11 -Wall -Wextra -O0 -g framebuffer.c
// fbgrab -d /dev/fb0 -s 5 -v -z 9 framebuffer.png
#include <assert.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <stdint.h>
@Un1Gfn
Un1Gfn / 0_bios.txt
Last active February 16, 2020 19:03
BIOS
https://download.lenovo.com/eol/index.html
http://www.thinkwiki.org/wiki/BIOS_Upgrade_Downloads
https://youtu.be/CyxgYnOcsTw
https://youtu.be/F5mKul8WUn0
https://youtu.be/PUaDkQFD7FE
# Thank you code_nomad: http://9m.no/ꪯ鵞
# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# Thank you code_nomad: http://9m.no/ꪯ鵞
# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
#!/bin/bash
# https://en.wikipedia.org/wiki/MD5#Collision_vulnerabilities
# https://unix.stackexchange.com/a/82563/246562
tr -d ' \n' <<EOF | xxd -r -p | md5sum
d131dd02c5e6eec4 693d9a0698aff95c 2fcab58712467eab 4004583eb8fb7f89
55ad340609f4b302 83e488832571415a 085125e8f7cdc99f d91dbdf280373c5b
d8823e3156348f5b ae6dacd436c919c6 dd53e2b487da03fd 02396306d248cda0
e99f33420f577ee8 ce54b67080a80d1e c69821bcb6a88393 96f9652b6ff72a70
// gcc -std=c11 -g -O0 -Wall -Wextra -fdiagnostics-color=always ieee754.c
/*
$ ./a.out x 0 x inf -inf x nan -nan x 1 1.5 1.75 1.875 -1.875 x
0 00000000 00000000000000000000000
0 11111111 00000000000000000000000
1 11111111 00000000000000000000000