A no nonsense notebook for nerds
-
Impact.com – one of the WORST partners to work with
This is possibly pure frustration post but allow me to put my arguments here. I will describe all the ways this company is one of the worst software companies I have ever worked with on behalf of a client. The Absolute Worst Affiliate Partner Program: Why impact.com Should Be Avoided at All Costs When choosing…
-
array_diff in excel – finding missing values from column B that exist in column A
Fill column A with bigger sample space, aka the longer array. Fill column B with smaller array, that has few or none of the elements from column A Now, you need to find out values that are in column A but not in column B, here is what you do.Create a separate column C and…
-
How to temporarily bypass content security policy CSP headers
Browser: FirefoxExtension: Mod Headers https://addons.mozilla.org/en-US/firefox/addon/modheader-firefox/ Add A CSP policy like this:Use “parse” option and paste this: To create a Content Security Policy (CSP) header that allows everything, you would use the ‘unsafe-inline’ and ‘unsafe-eval’ sources for scripts and styles, and the * wildcard to allow all other sources. This setup is generally not recommended for…
-
Proxy another website url on a particular path using cloudflare workers – modify response body
-
How to speed up slow Magento indexer process? Maria DB 10.4
Category Products index taking too much time? bin/magento index:reset bin/magento index:reindex Stuck at category products index … Here is the solution if you are using MariaDB 10.4 You need to update options/parameters for your db. If using RDS, edit “DB instance parameter group” that you are using and update these 2 values: After these changes,…
-
Windows 10 WSL Ubuntu Common Commands and hacks
In C:\Windows\System32\drivers\etc\hosts Save the above as a .reg file and run it to update registry Powershell script=> save as .ps1 file netsh interface portproxy show v4tov4 check if your proxy is working Most of the times you may not even need a proxy for apache2. However mysql inside WSL is extremely tricky for some reason.…
-
Remove zone.identifier files in windows
Usually seen in wsl issues https://github.com/microsoft/WSL/issues/7456 and https://github.com/microsoft/WSL/issues/4609
-
Condition types for addAttributeToFilter in Magento2 Collections
-
How to fix CORS error for amazon s3 files and resources?
Go to bucket In the bucket permissions tab There is a section for CORS, put the following in it and save.
-
centos web panel – vhost templates for proxying websocket traffic
http://wiki.centos-webpanel.com/webservers-vhost-templates Templates location: /usr/local/cwpsrv/htdocs/resources/conf/web_servers/– Folder main contains main configuration for WebServers– Folder vhosts contains vhosts configuration for domains (this is what you need) How to create a template fileThe easiest way to do that is to simply copy an existing file and then edit a new file you have created.Note that you need to have…
Got any book recommendations?