Skip to content

Instantly share code, notes, and snippets.

@Orochimarufan
Orochimarufan / intel_backlight.py
Last active August 1, 2018 00:57
Adjust Intel GFX backlight using Rw.exe
#!/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
@Orochimarufan
Orochimarufan / rEFIndNextBoot.cpp
Created July 30, 2018 03:36
Set rEFInd next boot default from Windows
// (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"
@Orochimarufan
Orochimarufan / spken.c
Last active November 2, 2021 19:48
Hi10 pro speaker enabler
#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>
@Orochimarufan
Orochimarufan / manifest.xml
Created March 31, 2015 21:58
BodySlide UAC remover
<?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>
@Orochimarufan
Orochimarufan / LICENSE
Last active August 29, 2015 14:17
FooTab extension
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
@Orochimarufan
Orochimarufan / __init__.lua
Created February 11, 2014 18:45
Lua OOP library (ccobjects)
-- (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.",
@Orochimarufan
Orochimarufan / import.lua
Last active December 10, 2015 05:58
Lua Import System for ComputerCraft
#!/usr/bin/lua
--[[*
* CCImport
* (c) 2012 Orochimarufan
*
* a simple, python-style import mechanism.
* made for ComputerCraft
*
* load with:
* - require