Étiquette : Astuce

Use CTRL and TAB to switch between two tabs in Chrome

It’s super handy to be able to switch between two tabs in the web browser… But it’s tricky to set it up in Chrome! Install AutoControl: Keyboard shortcut, Mouse gesture Install the native component as the extension asks for Add a new action The trigger is LEFT CTRL and TAB The action is Switch to […]

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>

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 […]

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’>.

chrome-search://local-ntp/local-ntp.html makes Chrome unresponsive

Sometimes, when I open a new tab in Chrome, it first tries to get chrome-search://local-ntp/local-ntp.html and while it’s doing it, I cannot enter any URL. Eventually it will popup a message asking me if I want to wait or exit the page… The way I found to fix it is to go to the page […]

Our system has detected an unusual rate of unsolicited mail originating from your IP address

Gmail could report back this error message: « Our system has detected an unusual rate of unsolicited mail originating from your IP address » If your DKIM, SPF and DMARC are all set and your emails are correctly identified, then you may want to check the both links: Good links to get help on what to do: […]