Skip to content

Instantly share code, notes, and snippets.

View karolherbst's full-sized avatar
🦀
*the sound crabs do*

Karol Herbst karolherbst

🦀
*the sound crabs do*
View GitHub Profile
#!/usr/bin/env python3
import os;
file_cur = open("/sys/class/power_supply/BAT0/current_now")
file_vol = open("/sys/class/power_supply/BAT0/voltage_now")
print(int(file_cur.readlines()[0][:-1])/1000000 * int(file_vol.readlines()[0][:-1])/1000000)
file_cur.close()
file_vol.close()
[binaries]
ar = 'ar'
c = 'cc'
cpp = 'c++'
llvm-config = 'llvm-config-32'
pkgconfig = 'pkg-config'
strip = 'strip'
[properties]
c_args = ['-m32']
message does not end with EOR byte: 0x39
77 03 00 00 00 c8 60 06 00 04 3d 3d 31 36 39 38 36 3d 3d 20 62 72 6b 20 73 65 67 6d 65 6e 74 20 6f 76 65 72 66 6c 6f 77 20 69 6e 20 74 68 72 65 61 64
w ? ? ? ? ? ` ? ? ? = = 1 6 9 8 6 = = b r k s e g m e n t o v e r f l o w i n t h r e a d

Simple guide to reverse engineer Nvidia GPUs

Known TODOs

The Nouveau Trello board contains a list of known things which still needs to be implemented or fixed.

Freedesktop Bugzilla

diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 63f4921..e1ab885 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -2611,6 +2611,13 @@ _X_EXPORT void (*glXGetProcAddressARB(const GLubyte * procName)) (void)
typedef void (*gl_function) (void);
gl_function f;
+ if (strcmp((const char *) procName, "glNamedStringARB") == 0 ||
+ strcmp((const char *) procName, "glDeleteNamedStringARB") == 0 ||
if [[ -z "${CARD}" ]]; then
CARD='0'
fi
chipset=$(nvalist | head -$((${CARD} + 1)) | tail -1 | cut -d\ -f3)
nvapeek -c"${CARD}" $1 $2 | while read line; do
reg=$(echo $line | cut -d: -f1)
if [ ! "$reg" == "..." ]; then
for i in {2..5}; do
value=$(echo $line | cut -d\ -f$i)
@karolherbst
karolherbst / gist:10736494
Last active August 29, 2015 13:59
usefull links