Skip to content

Instantly share code, notes, and snippets.

View ar7eniyan's full-sized avatar

ar7eniyan ar7eniyan

  • 09:24 (UTC +03:00)
View GitHub Profile
@ar7eniyan
ar7eniyan / config
Last active June 22, 2024 13:09
Waybar module for controlling brightness of an external display
// insert into ~/.config/waybar/config
"custom/ddc_brightness": {
// I don't even want to know why this works.
// Change it to the following for your custom icons,
// current format is a hack for Material Symbols to display normally:
// "format": "{icon} {percentage}%",
"format": "<span rise='-2pt' size='12pt'>{icon}</span> <span rise='1pt' size='10pt'>{percentage}%</span>",
"format-icons": [
// Icons from Google Material Symbols.
@ar7eniyan
ar7eniyan / servo.c
Last active May 4, 2022 22:24
Servo control terminal over serial port
#include <Arduino.h>
#include <Servo.h>
#define SERVO_DELAY 500
#define SERVO_STEP 1
// or can be 1000 and 2
Servo servo_x, servo_y, servo_claw, servo_rotate;
char prompt[25], cmd_buf[32];
int val_x, val_y, val_claw, val_rotate;
@ar7eniyan
ar7eniyan / viber-patcher.au3
Last active July 13, 2021 07:04
Здесь будет более новый код т. к. я пока не могу редактировать сообщения на 4PDA
#NoTrayIcon
#include <GUIConstantsEx.au3>
#include <File.au3>
#include <FileConstants.au3>
#include <StringConstants.au3>
#include <SQLite.au3>
#include <SQLite.dll.au3>
Opt('MustDeclareVars', True)
Local $patchesCount, $patchName