Skip to content

Instantly share code, notes, and snippets.

View diimdeep's full-sized avatar
🎯
Focusing

Dmitry Wolf diimdeep

🎯
Focusing
  • Moscow, Russia
  • 05:49 (UTC +03:00)
View GitHub Profile
@diimdeep
diimdeep / main.m
Created October 28, 2022 19:29
Cycle temperature
#import <Foundation/Foundation.h>
// Partial header for CBBlueLightClient in private CoreBrightness API
@interface CBBlueLightClient : NSObject
- (BOOL)setStrength:(float)strength commit:(BOOL)commit;
- (BOOL)setEnabled:(BOOL)enabled;
@end
int main(int argc, const char * argv[]) {
CBBlueLightClient *client = [[CBBlueLightClient alloc] init];