Skip to content

Instantly share code, notes, and snippets.

@tetele
tetele / README.md
Last active May 7, 2024 00:15
ESPHome config - Raspiaudio Muse Luxe as a voice assistant satellite in Home Assistant

Introduction

The purpose of this ESPHome config is to be able to use the Raspiaudio Muse Luxe as a voice assistant satellite in Home Assistant.

Features

  • wake word, push to talk and continuous conversation support
  • response playback
  • service exposed in HA to start and stop the voice assistant from another device/trigger
  • visual feedback of the recording/success/error status via the Luxe's onboard LED
[
{ code: 'AD', label: 'Andorra', phone: '376', phoneLength: 6},
{ code: 'AE', label: 'United Arab Emirates', phone: '971', phoneLength: 9},
{ code: 'AF', label: 'Afghanistan', phone: '93', phoneLength: 9},
{ code: 'AG', label: 'Antigua and Barbuda', phone: '1-268', phoneLength: 10},
{ code: 'AI', label: 'Anguilla', phone: '1-264', phoneLength: 10},
{ code: 'AL', label: 'Albania', phone: '355', phoneLength: 9},
{ code: 'AM', label: 'Armenia', phone: '374', phoneLength: 6},
{ code: 'AO', label: 'Angola', phone: '244', phoneLength: 9},
{ code: 'AQ', label: 'Antarctica', phone: '672', phoneLength: 6},
@finsterwalder
finsterwalder / FileUploadService.java
Last active May 7, 2024 00:07
Uploading a file with Spring RestTemplate
@Service
public class FileUploadService {
private RestTemplate restTemplate;
@Autowired
public FileUploadService(RestTemplateBuilder builder) {
this.restTemplate = builder.build();
}
@th3at0m
th3at0m / kms.md
Last active May 7, 2024 00:02
KMS Keys/Product Keys for Windows/Windows Server

Here, you can find the Product Keys for activating Windows.

Warming: This won't work with Home editions. Please first update to Professional edition if you want to activate Windows.

How do I activate Windows?

  1. Search for "Command Prompt" in the search box
  2. Right Click on the Command Prompt entry
  3. Press "Run as Administrator", then press yes.
  4. Type these commands one by one:
@worldofprasanna
worldofprasanna / terminal-capture.md
Last active May 6, 2024 23:59
Multiple screen terminal capture using asciinema & tmux

Commands Reference

  1. Start a new tmux named session tmux new -s terminal-capture
  2. Split the screen using these commands,
  • vertical split <C-b>"
  • horizontal split <C-b>%
  1. To navigate between the panes,
  • To goto Left pane <C-b> left-key
  • To goto Right pane <C-b> right-key
  • To goto Top pane up-key
@younesbelkada
younesbelkada / finetune_llama_v2.py
Last active May 6, 2024 23:58
Fine tune Llama v2 models on Guanaco Dataset
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@rigwild
rigwild / patch_apk.md
Last active May 6, 2024 23:58
Full tutorial to patch APKs on Android using apk-mitm and APKLab. Support for bundle APKs.

Patch APK

Full tutorial to patch APKs on Android using apk-mitm and APKLab. Support for bundle APKs.

Pull APK

adb shell pm list packages
adb shell pm path <package_name>
@ashevchuk
ashevchuk / rac_ipmi_jviewer.sh
Last active May 6, 2024 23:58
Aster MegaRAC IPMI q&d fix for broken iKVM jviewer.jnlp
#!/bin/sh
if [ "$#" -ne 3 ]; then
echo "Usage: $0 [ip address] [user name] [password]"
exit 1
fi
IP=$1
IPMI_USER=$2
IPMI_PASS=$3
@Pulimet
Pulimet / AdbCommands
Last active May 6, 2024 23:57
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader