Category: Scripts
-
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…
-
Proxy another website url on a particular path using cloudflare workers – modify response body
-
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…
-
golang update in centos
-
basic cwp with jenkins and nodejs
-
How to generate a patch with edited files? How to zip latest committed changes only
Reference: https://stackoverflow.com/a/42971972/2229148 sometimes you need all the files that were updated so you can patch an external app which doesnt uses same git project or many other scenarios in which we need a zip or tar of those files. Use the above command to do so There is a smarter way also, if you want…
-
Basic Authentication in nginx for any domain, server or location block
Update the domain.conf file like /etc/nginx/conf.d/vhosts/myrestricteddomain.com.ssl.conf Ideally, use it in server config Save and restart nginx
-
Installing a testing instance for Magento CLI only
Prerequisite: Magento repo access keys Mysql Database, username and password a domain name pointing to a server if you dont have access key, get a pair here : https://marketplace.magento.com/customer/accessKeys/ In the above command, you can change version/subversion of magento repo. You can also change the install directory After the successful run of above command: YOu…
-
Jenkins auto deploying flask in test env with last build process kill and pipenv
killlastbuild.sh can have anything inside it depending upon your project requirements. I put 2 process killers to kill background-ed daemon processes from previous build command