Skip to content

Instantly share code, notes, and snippets.

@Aymkdn
Aymkdn / README.md
Created August 6, 2023 17:07
Configurer MPV pour charger les vidéos avec une langue/sous-titre par défaut

Ces instructions sont valables pour la version Android TV/Freebox Pop de l'application MPV.

  1. Ouvrir l'application MPV sur votre écran de TV
    image
  2. Aller dans Settings
    image
  3. Aller dans Advanced
    image
  4. Aller dans Edit mpv.conf
    image
@Aymkdn
Aymkdn / README.md
Last active August 6, 2023 17:16
Créer un raccourci pour Pop Files dans l'interface de la Freebox Pop

Ces explications font suite à cet article d'Univers Freebox : https://www.universfreebox.com/article/550311/free-ajoute-une-nouvelle-fonctionnalite-sur-le-player-pop-qui-vous-permet-de-tout-gerer-plus-facilement

  1. Tout installer pour avoir la commande adb de disponible comme expliqué là
  2. Une fois la connexion établie avec la Freebox grâce à la commande adb shell, il faut d'abord entrer le nom du raccourci : settings put global custom_shortcut_1_title "Pop Files"
  3. Ensuite on indique où ce raccourci va mener : settings put global custom_shortcut_1_uri 'android-app://info.kodono.pop_files#Intent;category=android.intent.action.VIEW;component=info.kodono.pop_files/.MainActivity;end'

Une fois fait, un appui long sur la touche "home" de la télécommande Freebox fera apparaitre un menu avec le raccourci "Pop Files"
![image](https://user-images.githubusercontent.com/946315/258656842-a10

@Aymkdn
Aymkdn / web_outlook_calendar_reminder.js
Created May 24, 2023 14:16
Replace the Web Outlook Calendar Reminder Sound
console.log("### Code injection from Requestly");
// below it's the Base64 version of the ArrayBuffer for mp3
const reminder = `SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4Ljc2LjEwMAAAAAAAAAAAAAAA//NwAAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAABgAAC5BgADBAcKDRATFRgbHiEjJiksLzI0Nzo9QEJFRUhLTlFTVllcX2JkZ2ptcHJ1eHt+gYOGiYmMj5GUl5qdoKKlqKuusbO2uLu9wMLFx8rKzM/R1NbZ297g4uXn6uzu8fP1+Pr8/v8AAAAATGF2YzU4LjEzAAAAAAAAAAAAAAAAJAJlAAAAAAAAuQZaJkmQAAAAAAD/88BkAAccLRzfDCNAGWgeUZ4IRACQEBQy/bfgIicJwQALZEAC3CDiwfehTufIc5+BHBjfkynwf/ZxPUGLvhjKA+/yhzfbyjmE8CHCjiiASFW7b//jGMYxizSwfeXfBAMKD/lAQz5cHwfDwgdBAH3g+BygIAgCAIA+fB8PlAQBAEHHxOD4fAhyoMPB8+XBwEBACDgfB8+JwcBBwgg/ylRyD4Pn6MoGD6z5cHP/0J+CAY/BCUXMMABy/b7a24dz4UhOBbC5TNhWwcsSgZc5pQ0JEg6xiQFoLiCa1lw6t0im4ygJYSiBgNY6l88YqyUPHzBBSnN9daKmUtJJ0tNTdk1abrTOJG7VIaNamRshZSFa0lMmqjUtqlLoOteplUEXXSrqd7stBNa0KrPW6kKuuy3V1XZ7KQttWt13U693XqZN7e/tT2WzqugpJcwNx8VAAEVE//9rZMzRcw0+CzDrPA3wPc7mN9+a87nEPwSqjHeeV7t4X6vfouPu9v+yUTkPWqwkYwR8WttRs7ytqa00avfcLGs5xXOovzX1zvMCzVBoACf/86BE7RMl+x8vp7QAoYFaPl9PeAAyJBQyqZP
@Aymkdn
Aymkdn / privacy
Created April 23, 2023 19:34
Règles de confidentialité de l'application Pop Files
Aucune donnée n'est transmise. Tout est confidentiel et reste sur votre installation Freebox.
@Aymkdn
Aymkdn / install_fix.cmd
Created January 1, 2022 20:06
Installation for nvm.exe v1.1.9
set /P NVM_PATH="Enter the absolute path where the zip file is extracted/copied to: "
setx NVM_HOME "%NVM_PATH%"
set NVM_SYMLINK=C:\Program Files\nodejs
setx NVM_SYMLINK "%NVM_SYMLINK%"
setx PATH "%PATH%;%NVM_PATH%;%NVM_SYMLINK%"
if exist "%SYSTEMDRIVE%\Program Files (x86)\" (
set SYS_ARCH=64
) else (
set SYS_ARCH=32
@Aymkdn
Aymkdn / RichText.vue
Created March 3, 2021 10:12
TipTap TextColor extension
// this is a simplified example using Vuetify v1 and TipTap v1
<template>
<div>
<editor-menu-bar :editor="editor" v-else>
<div class="menubar" slot-scope="{ commands, isActive }">
<v-tooltip top>
<button :class="{ 'menubar__button':true, 'is-active': isActive.bold() }" @click="commands.bold" slot="activator">
<v-icon>format_bold</v-icon>
</button>
<span>Bold</span>
@Aymkdn
Aymkdn / fedauth.js
Last active May 5, 2021 13:36
Node JS way to get the FedAuth cookie for a Sharepoint 2019 OnPrem with AzureAD authentication – See https://github.com/Aymkdn/SharepointPlus/wiki/Using-the-FedAuth-Cookie/
const extend=require('extend');
const { sso } = require('node-expose-sspi');
const fetch = require('node-fetch');
var debugMode = false;
var globalCredentials = {};
/**
* Returns an object of cookies
* @param {Array} cookies An array of "cookieName=cookieValue;whatever…"
@Aymkdn
Aymkdn / linkify
Created June 5, 2018 10:08
Parse URL in a string and convert in a link
var urlRegex =/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
function linkify(text, safeText) {
safeText = (safeText===false? false : true);
if (safeText) text=escapeHtml(text);
return text.replace(urlRegex, function(url) {
return '<a href="' + url + '">' + url + '</a>';
});
}
@Aymkdn
Aymkdn / notifier.js
Last active November 14, 2017 15:52
Have Google Home to speak
// npm install castv2-client google-tts-api
var Client = require('castv2-client').Client;
var client = new Client();
var DefaultMediaReceiver = require('castv2-client').DefaultMediaReceiver;
var GoogleTTS = require('google-tts-api');
var host = "192.168.0.13"; // IP Address of the Google Home
var text = "Bonjour et bienvenue"; // Text to speach
var lang = "fr-FR"; // language
GoogleTTS(text, lang, 1)
.then(function(url) {
<?xml version="1.0" encoding="UTF-8" ?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Todd Vierling</author>
<description>HTML selector that returns a flat, escaped string rather than a node tree. Suitable for use with Pipes and other applications wishing to embed HTML in another XML-like container.</description>
<sampleQuery>select * from {table} where url='http://www.yahoo.com/' and xpath='//a'</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>