This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Intel Backlight Hack | |
# CC0 2018 Taeyeon Mori aka /u/Haruha | |
# Must be absolute! | |
rw_path = "D:\\Development\\Win32-Intel-Backlight\\Rw-Everything\\Rw.exe" | |
# Actuall Rw batch code follows | |
rw_code = """\ | |
Read Intel GFX BAR1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (c) 2018 Taeyeon Mori | |
// CC0 | |
// | |
#include "stdafx.h" | |
#include <Windows.h> | |
#define REFIND_GUID L"{36d08fa7-cf0b-42f5-8f14-68df73ed3740}" | |
#define PREVIOUS_BOOT L"PreviousBoot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <errno.h> | |
#include <dirent.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <sys/utsname.h> | |
#include <fcntl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8' standalone='yes'?> | |
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> | |
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> | |
<security> | |
<requestedPrivileges> | |
<requestedExecutionLevel level='asInvoker' uiAccess='false' /> | |
</requestedPrivileges> | |
</security> | |
</trustInfo> | |
<dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (c) 2013, mike_sf@outlook.com | |
2015, Taeyeon Mori <orochimarufan@vivaldi.net> | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
Neither the name of the mike_sf@outlook.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- (c) 2012 Orochimarufan | |
-- Pythonic OOP for Lua | |
-- make table callable. | |
local table = setmetatable({}, {__index=table, __call=function(...)return{...}end}) | |
-- strings | |
local err = { | |
NOATTR = "%s has no attribute '%s'", | |
NOCALL = "%s is not callable.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lua | |
--[[* | |
* CCImport | |
* (c) 2012 Orochimarufan | |
* | |
* a simple, python-style import mechanism. | |
* made for ComputerCraft | |
* | |
* load with: | |
* - require |