Catégorie : Astuce

Portable version of NodeJS on Windows

(This is a corrected version of this blog post) Install Cmder in your desired location. Download nvm-noinstall.zip from the latest release. Extract the contents of nvm-noinstall.zip (i.e.: nvm.exe …) into the bin folder inside of the portable Cmder folder. Navigate to the bin. Create a new file called install_fix.cmd that contains this code. Open a […]

Redirect non-www to www on a PHPBB Forum

In the PHPBB directory, edit the file .htaccess and after RewriteRule ^(.*)$ app.php [QSA,L] you can enter: RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don’t put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Now, rewrite […]

Capacitor Plugin for HTTP requests with self-signed SSL certificates

I’m using CapacitorJS for easy development with Android. I needed a way to do an HTTPS request to a box that uses self-signed SSL certificate. To accomplish it, I created my own capacitor plugin. See this wiki page for details: https://github.com/Aymkdn/assistant-freebox-cloud/wiki/Capacitor-Plugin-for-HTTP-requests-with-self-signed-SSL-certificates

Enable CORS with IIS

It’s as easy as editing the web.config file with the below: <?xml version= »1.0″ encoding= »UTF-8″?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add name= »Access-Control-Allow-Origin » value= »https://my.site.com » /> <add name= »Access-Control-Allow-Headers » value= »Authorization,Accept,Content-Type,X-Requested-With » /> <add name= »Access-Control-Allow-Credentials » value= »true » /> </customHeaders> </httpProtocol> </system.webServer> </configuration>

L’application Android « Huawei Health » (ou « Santé » en français) retourne l’erreur : « les notifications sont indisponibles »

« Erreur du système, les notifications sont indisponibles. Veuillez redémarrer votre téléphone. Si le problème persiste, contactez le fabricant de votre appareil. » J’ai eu cette erreur sur mon Samsung S20 FE. J’ai réussi à m’en sortir ou désinstallant tout puis en réinstallant… Mais je pense que la solution pouvait être autre : dans les Paramètres du […]

Problème d’accès avec C:\Program Files\WindowsApps

J’utilise d’habitude le raccourci wt.exe dans la barre de Windows Explorer, mais j’ai reçu une erreur aujourd’hui me disant que le fichier n’existe pas… Après quelques recherches, j’ai découvert que je n’ai aucun accès au répertoire C:\Program Files\WindowsApps là où se trouve Windows Terminal. J’ai réussi à le refaire marcher en lançant un terminal en […]

Access to Sharepoint Online with Windows Explorer

If you want to access your Sharepoint online (https://[tenant].sharepoint.com), you first need to make sure the site is in the Trusted Website in Internet Explorer. Open Internet Explorer, navigate to the website, then open the Internet Options: Add your website to the Trusted Website zone: Next open Windows Explorer and right-click on « Your PC « , […]

Let’s Encrypt Certificate: how to remove a domain from a certname that contains several domains

My server manages several websites with different domains using Apache. The first time I used Let’s Encrypt I followed the default command which has created one certname for ALL my domains. Now I want to remove just one domain from this certificate, and it becomes complicated to understand how to do it. The best solution […]

Sharepoint error message « Invalid URL argument » with WebPartPages

For me the issue was this part of the XML request: <AddWebPart xmlns=’http://microsoft.com/sharepoint/webpartpages/’> (with a / at the end of the url) instead of <AddWebPart xmlns=’http://microsoft.com/sharepoint/webpartpages’>.