Skip to content

Instantly share code, notes, and snippets.

View matteocrippa's full-sized avatar

Matteo Crippa matteocrippa

View GitHub Profile
@dpearson2699
dpearson2699 / config.json
Last active March 8, 2026 07:11 — forked from joshbalfour/config.json
Copilot Support for Claude-Code-Router with GPT Codex (Responses API) support, hot-swap fixes, and xhigh reasoning
{
"LOG": false,
"LOG_LEVEL": "debug",
"CLAUDE_PATH": "",
"HOST": "127.0.0.1",
"PORT": 3456,
"APIKEY": "",
"API_TIMEOUT_MS": "600000",
"PROXY_URL": "",
"Plugins": [
@renatoccosta
renatoccosta / install-ha-opi5.adoc
Last active February 3, 2026 18:29
Install Home Assistant on OrangePi 5

Installing Home Assistant on OrangePi 5 Board

This tutorial will enable the use of Home Assistant on an OrangePi 5 board with the following characteristics:

  • OrangePi Debian OS

  • OS running on a SDCard

  • Home Assistant Supervised Instalation

The steps are a compilation with few modifications from instructions found over the web. Links are at the end.

@alejandro-du
alejandro-du / armbian-setup.sh
Created December 12, 2022 13:49
A script that configures a Wi-Fi connection with static IP on Armbian for headless setups
#!/bin/bash
# find the mount point with sudo fdisk -l
mount /dev/mmcblk0p1 /media/sdcard/
rm /media/sdcard/boot/armbian_first_run.txt.template
touch /media/sdcard/boot/armbian_first_run.txt
echo "FR_general_delete_this_file_after_completion=1" >> /media/sdcard/boot/armbian_first_run.txt
echo "FR_net_change_defaults=1" >> /media/sdcard/boot/armbian_first_run.txt
@joshnuss
joshnuss / ble_speedometer_esp32.ino
Last active August 17, 2023 21:46
Bluetooth Speedometer using ESP32 and Hall effect sensor
/*
* Using digital hall effect sensor SENS-M-10 (purchased at Abra)
*
* MCU Board: ESP2-WROOM-32
*/
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
@brucebentley
brucebentley / iOS Shortcuts Catalog.md
Last active March 5, 2026 16:14
This is a public resource designed to help people get started with Siri Shortcuts & the Shortcuts app. It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Bruce's iOS Shortcut Catalog

Hello and welcome to my Shortcuts Catalog!

This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.

It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Enjoy!

import Combine
import Foundation
enum RequestError: Error {
case urlError(URLError)
case decodingError(DecodingError)
case genericError(Error)
}
class NetworkClient {
@kevinkub
kevinkub / scriptable-line-chart.js
Last active February 16, 2026 18:27
Simple line chart class for https://scriptable.app 📈
class LineChart {
// LineChart by https://kevinkub.de/
constructor(width, height, values) {
this.ctx = new DrawContext();
this.ctx.size = new Size(width, height);
this.values = values;
}
_calculatePath() {
@androidneha
androidneha / adb_commands.MD
Last active November 7, 2025 06:00
Some adb commands to change setting for battery optimisation, start service, stop service, grant permission, revoke permission and etc.

To list-up installed app

pm list packages

Search for a particualr app with pacakagename

pm list pacakges | grep com.abc

Turn on Battery Optimization for a particular app

adb shell dumpsys deviceidle whitelist -<package_name>

Turn off Battery Optimization for a particular app

@pmkay
pmkay / top-brew-packages.txt
Last active March 6, 2026 06:42 — forked from r5v9/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@Akhu
Akhu / CoreData + Codable.swift
Created May 11, 2018 09:46
Mixing Codable and Core Data in Swift
//
// Article.swift
// Veille
//
// Created by Anthony Da Cruz on 26/01/2018.
// Copyright © 2018 Anthony Da Cruz. All rights reserved.
//
import Foundation
import CoreData