The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘Scripting’ Category

Twitter: getting a tweet video URL

Posted by jpluimers on 2024/09/09

For my link archive (as I wish this could be part of a Bookmarklet): the --get-url option of youtube-dl gets you the video URL of a Tweet

# youtube-dl --get-url https://twitter.com/Gert_van_Dijk/status/1548997307017871362
https://video.twimg.com/ext_tw_video/1548997270577840133/pu/vid/320x320/C20GFtInFGjBiY9k.mp4?tag=12

Via:

Read the rest of this entry »

Posted in Bookmarklet, Development, Power User, Python, Scripting, SocialMedia, Software Development, Web Browsers, YouTube, youtube-dl | Leave a Comment »

Shadow IT has entered the chat – got caught running scripts again : sysadmin

Posted by jpluimers on 2024/09/05

Shadow IT has entered the chat

Many companies have hardly any idea how many scripts are being used by their people to get the chores of day to day work done.

Read the rest of this entry »

Posted in Batch-Files, Development, Power User, PowerShell, Python, Scripting, Software Development, Windows, Windows Development | Leave a Comment »

What to do when suddenly some or many .nupkg became zero length and Chocolatey thinks none of them are installed?

Posted by jpluimers on 2024/09/04

A few years back I suddenly had almost all my .nupkg files that Chocolatey uses to track installed software become zero sized.

So I posted a question at [Wayback/Archive] Need help restoring .nupkg files having zero size · Discussion #2765 · chocolatey/choco which got this answer:

Read the rest of this entry »

Posted in Chocolatey, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Leave a Comment »

Brush up on your knowledge of the elements with this Chrome Experiment, an interactive Periodic Table by Sarath Saleem: goo-gl/HJ9O31 #fridayfun

Posted by jpluimers on 2024/09/03

[Wayback/Archive] https://plus.google.com/+Chrome/posts/AgtEDd7ngEJ “Brush up on your knowledge of the elements with this Chrome Experiment, an interactive Periodic Table by Sarath Saleem: goo-gl/HJ9O31 #fridayfun”

This reminded me so much about the atom spin tables I wrote some Turbo Pascal code for in the late 1980s to help a university professor. Maybe one day, I will find that code back.

(note: I expanded the actual googl link because Google URL Shortener was killed in 2019 with links stopping to work in 2025, see [Wayback/Archive] Google Graveyard – Killed by Google)

The links:

--jeroen

Posted in Development, JavaScript/ECMAScript, Pascal, Scripting, Software Development, Turbo Pascal | Leave a Comment »

Kugane/winget: A Winget script to automatically install predefined programs and MS Store apps. Includes automatic update and cleanup job

Posted by jpluimers on 2024/09/03

For my link archive: [Wayback/Archive] Kugane/winget: A Winget script to automatically install predefined programs and MS Store apps. Includes automatic update and cleanup job

–jeroen

Posted in CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »

Tampermonkey script twitter-to-bsky: Crosspost from Twitter/X to Bluesky and Mastodon

Posted by jpluimers on 2024/08/28

For my TODO list: [Wayback/Archive] twitter-to-bsky

Crosspost from Twitter/X to Bluesky and Mastodon

twitter-to-bsky – crosspost from Twitter/X to Bluesky and Mastodon directly in the web browser

twitter-to-bsky is a userscript written for Tampermonkey or Violentmonkey running in desktop web browsers (Chrome/Firefox/Edge).
It allows to automatically crosspost to Bluesky and/or Mastodon when writing posts in the Twitter/X web application in a desktop browser.
More links:

Read the rest of this entry »

Posted in BlueSky, Development, JavaScript/ECMAScript, Mastodon, Scripting, SocialMedia, Software Development, Twitter | Leave a Comment »

Revisited: Bookmarklet for Archive.is to navivate to the canonical link

Posted by jpluimers on 2024/08/27

I put the proper Bookmarklet wrapper around the functions from Bookmarklet for Archive.is to navivate to the canonical link (because especially Firefox needs them):

An immediately invoked function that returns no value or an expression preceded by the void operator will prevent the browser from attempting to parse the result of the evaluation as a snippet of HTML markup:

javascript:(function(){
  //Statements returning a non-undefined type, e.g. assignments
})();

It means they now have become these:

  • Archive.is: navigate canonical URL

    javascript:(function(){location=document.querySelector('link[rel="canonical"]')?.href})();

  • Archive.is: prompt canonical URL

    javascript:(function(){prompt("Anchor",document.querySelector('link[rel="canonical"]')?.href)})();

--jeroen

Read the rest of this entry »

Posted in archive.is / archive.today, Archiving, Bookmarklet, Chrome, Development, Firefox, Internet, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Browsers | Leave a Comment »

Newer WordPress bookmarklets for navigating from a blog post to the classic editor, or getting the canonical url anchor of a blog post

Posted by jpluimers on 2024/08/08

Last year I posted about Some JavaScript bookmarklets for WordPress published pages centered around navigation and IDs.

It depended on HighlanderComments to exist in order for getting its .connectURL which contains the canonical blog post URL (i.e. from https://wiert.me it obtains https://wiert.wordpress.com).

Nowadays HighlanderComments does not always exist, but in that case <link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://wiert.wordpress.com/xmlrpc.php?rsd"> does exist.

Its’ href value can be obtained by querying document.querySelector('link[rel="EditURI"]').href and truncate it, so I made some conditional code that first tries the HighlanderComments and defers code obtaining it from the link element I mentioned above.

I also added proper Bookmarklet wrappers so the function results don’t leak to the console or Browser (Firefox really does not like Bookmarklets without this wrapper).

javascript:(function(){
//Statements returning a non-undefined type, e.g. assignments
})();

Firefox also dislikes pasting code into the development console.

Code:

Read the rest of this entry »

Posted in Bookmarklet, Chrome, Development, Firefox, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Browsers | Leave a Comment »

Some notes on codepoints.net and beta.codepoints.net

Posted by jpluimers on 2024/08/07

At the time of writing a lot of this might be more recent, but for quite some time codepoints.net had not been updated with code point information newer Unicode releases.

Basically it was stuck at Unicode version 8.0 with some 120k glyphs. At the time of writing Unicode version 15.0 is in beta and the difference between 15.0 and 8.0 is some 24k glyphs.

So I had a quick twitter chat with the author and jotted down the links in this blog post so I won’t forget them.

There I learned it was open source (I think it is the only Unicode codepoint site that is).

Here it goes:

Read the rest of this entry »

Posted in *nix, *nix-tools, Apache2, codepoints.net, Conference Topics, Conferences, Database Development, Debian, Development, DVCS - Distributed Version Control, Encoding, Event, GitHub, Linux, MySQL, PHP, Power User, Scripting, Software Development, Source Code Management, Unicode, Web Development | Leave a Comment »

PoshCode/PowerShellPracticeAndStyle: The Unofficial PowerShell Best Practices and Style Guide

Posted by jpluimers on 2024/07/31

For my link archive, the source code [Wayback/Archive] PoshCode/PowerShellPracticeAndStyle: The Unofficial PowerShell Best Practices and Style Guide and on-line “book” version that starts with:

[Wayback/Archive] About this Guide – PowerShell Practice and Style

It covers many topics grouped into a Style Guide and Best Practices:

Read the rest of this entry »

Posted in Development, PowerShell, Scripting, Software Development | Leave a Comment »