Friday, 8 January 2021

Moving a repository from Bitbucket to Github

 In this example, the Panoramic Data "Toggl.Api" was moved from Bitbucket to Github:

cd f:\projects\Toggl.Api
git pull
git remote add upstream git@github.com:panoramicdata/Toggl.Api.git
git push upstream develop
git push --tags upstream

then...

  1. Double check that the Github repository has all content
  2. Go to the web interface of the old Bitbucket repository
  3. Select menu option Setting > Delete repository
  4. Add the URL of the new Github repository as redirect URL
Finally, to clean up:

git remote remove origin
git remote rename upstream origin


Thursday, 17 December 2020

Dear Santa Pune,

I have been a good boy this year.

For Christmas 2021, I would like:

  • Custom Properties on all entities (including ability to filter via the REST API) so that System Integration is actually possible.
  • V3 of the REST API published, and under SEMVER
  • The broken Alerting API to be fixed (see various other FEED tickets)
  • The UI to finally be self-consistent (either back with the old style or with the new style - I really don't care)
  • To receive a reference number when I send a support/feedback ticket and to be able to track its progress via the UI
  • Themes / Dark Mode
  • A machine-readable Audit Log for ALL Create/Update/Delete actions with a published, consistent JSON schema

I hope you are able to deliver all the releases to the good boys and girls.

Happy Christmas,

David

p.s. Also:

  • A last_updated field on all entities

Wednesday, 9 December 2020

Getting Remote Explorer to work in VS Code

 Follow the instructions in this post:

https://github.com/PowerShell/Win32-OpenSSH/issues/1263#issuecomment-699148072

Friday, 6 November 2020

LogicMonitor LMGlobalData

 To view additional information about your LogicMonitor account, press F12 in Chrome, go to the Console and type:

LMGlobalData

Tuesday, 22 September 2020

Timing cURL

This article ALMOST provides the information needed to add timing output to your cURL query:

Unfortunately, it gets the file format wrong.

Instead, the file should contain the following:

time_namelookup: %{time_namelookup}\n time_connect: %{time_connect}\n time_appconnect: %{time_appconnect}\n time_pretransfer: %{time_pretransfer}\n time_redirect: %{time_redirect}\n time_starttransfer: %{time_starttransfer}\n ———\n time_total: %{time_total}\n
curl -w "@curl-format.txt" -o /dev/null -s http://wordpress.com/

What this does:

  • -w "@curl-format.txt" tells cURL to use our format file
  • -o /dev/null redirects the output of the request to /dev/null
  • -s tells cURL not to show a progress meter
  • http://wordpress.com/ is the URL we are requesting