.htaccess – Basic authentication for all except some ips
AuthType Basic AuthName “Please Log In” AuthUserFile /some/path/.htpasswd Require valid-user Order deny,allow Deny from all Allow from 127.0.0.1 Satisfy anyRead More →
AuthType Basic AuthName “Please Log In” AuthUserFile /some/path/.htpasswd Require valid-user Order deny,allow Deny from all Allow from 127.0.0.1 Satisfy anyRead More →
It’s simple $ timeout 1 bash -c ‘< /dev/tcp/google.com/80’ $ echo $? 0 Read More →
As you know we can use the variable in some of the format such as : [[variable]]$variable${variable} When upgrading to v10.3.1 , i realize that the variable __interval_ms can’t be used as [[__interval_ms]] , we need to to use it as $__interval_ms as [[]] is going to be depreciated soon, it’s recommended to use the new format. If you have old dashboard and it’s not displaying correctly, check the variable.Read More →
I recently bought a used Canon 70-200mm F2.8 IS . The lens is in good condition, but it has an issue with auto focus. When you try to focus, you can see the focus ring spinning very fast, but it’s failed to focus , it seems only focus for object over 10mm or it’s at infinity. After some research, it turn out that the issues was caused by a dirty focus sensor and focus bar. Below are the 2 videos that will help you to fix that problem. I did it it’s half success – the focus is now working, but i damage a flexRead More →
This query can help you to identify the orphan smart detector alerts – there is also a command column which can help you to run it in shell.portal.com resources | where type in (“microsoft.alertsmanagement/smartdetectoralertrules”)| project subscriptionId, id,name,resourceGroup,properties.actionGroups.groupIds[0] , properties.scope[0] | project-rename alert_id = id, alert_subscription=subscriptionId,alert_name=name,target_id=properties_scope_0,actionGroupId=properties_actionGroups_groupIds_0 | extend target_id=tolower(tostring(target_id)) | join kind=leftouter ( resources | project id,name,type,resourceGroup,subscriptionId | extend id=tolower(tostring(id))) on $left.target_id==$right.id | where name==”” | extend target_name=split(target_id,”/”)[-1] |extend cmd_delete=strcat(“az resource delete –ids \””, alert_id,”\””)Read More →
Good article: InfluxDB https://rudimartinsen.com/2017/11/07/some-influxdb-gotchas/Read More →
Discard all your local changes: git reset –hard HEAD git clean -d -f Check local and remote branch: git branch -v -a Check out a remote branch git switch -c branch_name origin/branch_nameRead More →
Designed using Responsive Brix. Powered by WordPress.