Skip to content

Instantly share code, notes, and snippets.

@Aymkdn
Aymkdn / README.md
Last active April 25, 2024 13:58
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 General
    image

  4. Modifier Default Audio Language et Default Subtitle Language

@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 / loadExt.js
Last active December 31, 2022 04:32
To load JS and CSS files with vanilla JavaScript
// long version
function loadExt(files, after) {
var _this=this;
_this.files = files;
_this.js = [];
_this.head = document.getElementsByTagName("head")[0];
_this.after = after || function(){};
_this.loadStyle = function(file) {
var link = document.createElement("link");
link.rel = "stylesheet";
@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 / 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 / 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 / PeopleSearch_parameters.md
Last active June 1, 2020 23:22
Create a Sharepoint 2013 native People Picker in JavaScript (using jQuery, or using SharepointPlus)

Details about some of the options.

SearchPrincipalSource

The principal sources to search.

  • All (15) – Search all principal sources.
  • MembershipProvider (4) – Search the current membership provider.
  • None (0) – Search no principal sources.
  • RoleProvider (8) – Search the current role provider.
  • UserInfoList (1) – Search the user information list.
@Aymkdn
Aymkdn / spservices-startworkflow.js
Created October 11, 2012 15:22
Start a workflow with Sharepoint (JavaScript)
/**
* Start a workflow
*
* @param {Object} params
* @param {String} params.listName The name of the list
* @param {Number} params.itemID The item ID
* @param {String} params.workflowName The name of the workflow
* @param {Array|Object} [params.parameters] An array of object with {Name:"Name of the parameter", Value:"Value of the parameter"}
* @param {Function} [params.after] Callback after the request is done
*/