Twitter

Categories

bash, cURL, Scripting

Investigate problems due to User-Agent using Bash

micro-site with two the UA’s and discover the difference. UA_Chrome=”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36″; UA_AdsBot=”AdsBot-Google (+http://www.google.com/adsbot.html)”; URL=”sea/C21/1AI/D01/?v=3.1&NavState=/_/N-1xv8Zmpk&kind=Regenlaars+(Dames)”; # Cloudflare visit “https://www.wehkamp.nl/$URL” “$UA_Chrome”; visit “https://www.wehkamp.nl/$URL” “$UA_AdsBot“; # main gateway visit “https://gateway.wehkamp.internal/$URL” “$UA_Chrome”; visit “https://gateway.wehkamp.internal/$URL”…

Chatops, Databricks / Spark, Python, Slack

Simple Python code to send message to Slack channel (without packages)

…with a #). slack_token = ‘xoxb-my-bot-token’ slack_channel = ‘#my-channel’ slack_icon_url = ‘https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTuGqps7ZafuzUsViFGIremEL2a3NR0KO0s0RTCMXmzmREJd5m4MA&s’ slack_user_name = ‘Double Images Monitor’ I use the same bot for all my messages. To let my users know which application is sending the message, I use a…