Skip to content

Instantly share code, notes, and snippets.

View Arbel-arad's full-sized avatar

Arbel Arad Arbel-arad

  • rehovot, israel
  • 11:22 (UTC +03:00)
View GitHub Profile
@igormp
igormp / rustup-update.hook
Created April 15, 2018 05:27
Runs rustup update after each pacman -Syu
[Trigger]
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Updating rust components...
When = PostTransaction
Depends = rustup
# Be sure to replace $INSERTYOURUSERHERE the actual name of the current user whose toolchain should be updated
@fnky
fnky / ANSI.md
Last active July 5, 2024 21:27
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@liads
liads / ElectraClimate.h
Created June 16, 2019 20:53
ESPHome climate component for Electra AC (RC-3 IR remote)
#include "esphome.h"
static const char *TAG = "electra.climate";
typedef enum IRElectraMode {
IRElectraModeCool = 0b001,
IRElectraModeHeat = 0b010,
IRElectraModeAuto = 0b011,
IRElectraModeDry = 0b100,
IRElectraModeFan = 0b101,
@sspaeti
sspaeti / onenote_export.py
Last active June 22, 2024 22:32 — forked from danmou/onenote_export.py
Onenote export to HTML
### README
# This Python scripts exports all the OneNote notebooks linked to your Microsoft account to HTML files.
## Output
# The notebooks will each become a subdirectory of the `output` folder, with further subdirectories
# for the sections within each notebook and the pages within each section. Each page is a directory
# containing the HTML file `<page-name>.html` and its images and attachments. I changed to create
# sepearte directories for `images` and `attachments` as my Markdown editor (obsidian) would show
# this directories seperately what didn't look nice in the File-Tree. Like this, images and Attachments
# are not shown in the tree but within the Markdown which is what I wanted. Any sub-pages will be