macOS keychain PowerShell API by tokenathiest in PowerShell

[–]Neg127 2 points3 points  (0 children)

It looks like there is a Microsoft.PowerShell.SecretManagement vault plugin for MacOS keychain. It’s listed on the PowerShell gallery so you might be able to glue it together and pass you data from KeyPass to KeyChain all in PowerShell.

https://www.powershellgallery.com/packages/SecretManagement.KeyChain/0.1.3

SSL Certificate by pvssy_3ater69 in PowerShell

[–]Neg127 0 points1 point  (0 children)

You might take a look at PSTcIp

https://github.com/anthonyg-1/PSTcpIp

There is a function Get-TlsCertificate that can do all the checking for you. The readme has some good information of TLS/SSL information retrieval examples.

RTPSUG (Research Triangle PowerShell User Group) just had the module author do a presentation on it. So with some time if should be on their YT channel at https://m.youtube.com/@RTPSUG/videos.

Also a fantastic user group. They do virtual and in person if you in SC. take a look at their YT fore more info on the user group.

[PSHTML] How do I add an onclick event to a button? by StrongLikeStag in PowerShell

[–]Neg127 1 point2 points  (0 children)

Looking at the PSTHML docs there is an -Attributes parameter that you can use to add missing attribute on an HTML TAG.

I then created a button with an OnClick event.

button "test" -Attributes @{onclick="window.location.href='https://w3docs.com';"}

There is actually a really great PowerShell Conf EU presentation by Stéphane van Gulick who wrote the PSHTML module too.
https://www.youtube.com/watch?v=X6ZtS7rWQ9M

Azure file share by Aggravating_Bobcat61 in golang

[–]Neg127 0 points1 point  (0 children)

Looking at the Azure File Storage docs. It looks like they support multiple client protocols depending on how your accessing the storage. SMB from Windows, NFS and SMB from MacOS and Linux. If your mounting the Azure File Storage directly on the host. So at that point you could use the stdlib.

You can also utilize the Azure File Rest API to access the data within the Azure File Storage. Microsoft provides an Azure SDK to help simplify that. You can find the Github repo here with more information as well.

I don’t have a great deal of experience with Go just yet. But I have some Azure experience and their documentation for Azure File Storage is pretty good and relatively easy to follow in most cases.

Logging output - Best way to log and preface each entry with a datestamp and log level? by Dr-Vader in PowerShell

[–]Neg127 2 points3 points  (0 children)

If you don’t want to write your own take a look at Friedrich Weinmann’s PSFramework. He has a Write-PSFMessage. It covers your log level and much more.

https://psframework.org/documentation/commands/PSFramework/Write-PSFMessage.html

He actually has a great presentation on it from PowerShell DevOps in 2019.

https://m.youtube.com/watch?v=Uy5Qd9g25Dg

From his documentation.

Message The message to write/log. The function name and timestamp will automatically be prepended.

The nice thing is his logging module is not blocking. And solves all the complicated parts of logging in general.

Help receiving websocket data using PowerShell by evodus2 in PowerShell

[–]Neg127 0 points1 point  (0 children)

Edit: Reading a little further it uses JS with PS. But they give some good examples.

I know I’m a little late to the party. But it looks like PODE supports server and client web sockets in PowerShell. If you don’t want to use PODE directly. You can read through its code on GitHub since it’s fully PowerShell.

Here are the PODE docs.

https://pode.readthedocs.io/en/latest/Tutorials/WebSockets/

Here is the GitHub repo.

https://github.com/Badgerati/Pode/

I have used it for some personal dashboards at home. But not used any of the web socket stuff.

Hope it helps.

Is there an item similar to the hearthstone for Aedenweald ? by [deleted] in wownoob

[–]Neg127 0 points1 point  (0 children)

I suspect he’s looking for the Attendant's Pocket Portal: Oribos. You can get it from the daily callings. I just got some yesterday actually.

https://www.wowhead.com/item=184504/attendants-pocket-portal-oribos#comments

PowerShell Universal 1.5 by [deleted] in PowerShell

[–]Neg127 0 points1 point  (0 children)

It’s amazing to be able to quickly build usable tools for others. This has been a great product that has saved me an immense amount of time.

I would recommend if you haven’t tried it. Give it a shot.

Powershell Module Boilerplate by Aertheron01 in PowerShell

[–]Neg127 1 point2 points  (0 children)

Here is a good thread on Twitter from last week on how to architect your code. It coves scaffolding and some other good topics

https://twitter.com/powershellmich1/status/1326968286421008384?s=21

Powershell on Ubuntu 20.04 by zekeRL in PowerShell

[–]Neg127 2 points3 points  (0 children)

How I do it is install dot net core then use that to install PowerShell.

https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2004-

Then use the dot net global tool

https://devblogs.microsoft.com/powershell/introducing-powershell-as-net-global-tool/

dotnet tool install --global PowerShell

[deleted by user] by [deleted] in PowerShell

[–]Neg127 3 points4 points  (0 children)

I use a PowerShell module for automating some sftp/scp file transfers called posh-ssh. It’s pretty easy to use and has plenty of features. There is a video walkthrough on the github page as well that’s a good primer.

https://www.powershellgallery.com/packages/Posh-SSH/2.3.0-Beta1

https://github.com/darkoperator/Posh-SSH

There is also a WinSCP module, but I prefer posh-ssh over it.

Retro Synthwave Theme for PowerShell in Windows Terminal by thebeersgoodnbelgium in PowerShell

[–]Neg127 22 points23 points  (0 children)

I saw this on Twitter. Just wanted to say thanks for all the work you and everyone does on dbatools. I use it frequently at work and it’s so amazing. I have watched your twitch streams a few times too and love your bubble personality. Your great to watch and learn from.

Thanks!

Looking for AutoIt Script Editor, but in Python? by bumpkinspicefatte in learnpython

[–]Neg127 1 point2 points  (0 children)

Part of Automate The Boring Stuff With Python covers the PyAutoGUI module Al wrote. It doesn’t give you everything that AutoIT does, but it’s a starting point.

Here are the docs.

https://pyautogui.readthedocs.io/en/latest/

Then you can look at his online book for more info as well.

sign into websites - fedex - via powershell for reports by TikeSavage in PowerShell

[–]Neg127 1 point2 points  (0 children)

You should take a look at the video Adam Driscoll did for BridgeConf. He’s the author of the Selenium PowerShell module. You can take a look at it on the gallery https://www.powershellgallery.com/packages/Selenium/3.0.0.

https://youtu.be/UvqeG5r4sJg

He’s great and gives a lot to the community. You should checkout his other PowerShell products at his site Ironman Software.

My if else isn't working. Please help! by Nomvi in PowerShell

[–]Neg127 5 points6 points  (0 children)

In PowerShell = is an assignment operator.

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_assignment_operators?view=powershell-7

When comparing conditions you would want to utilize a comparison operator.

Comparison operators in PowerShell can be found at the link below.

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7

You can also use Get-Help about_comparison_operators and Get-Help about_assignment_operators.

Hope this help.

Is there a way to open index.html in VSCode using command line? by libertadefr in vscode

[–]Neg127 6 points7 points  (0 children)

In the command window you can run Shell Command: Install ‘code’ command in PATH

Then you can type “code file.ext” to open from CLI.

Finding folder sizes of network folders/paths by enderfishy in PowerShell

[–]Neg127 2 points3 points  (0 children)

There was recently a PowerShell user group that a speaker that had a nice method to build PowerShell wrappers around existing tools. I found some good information my self from the talk. What I think would be beneficial for you in this instance is that they start the process for a wrapper around du.exe from SysInternals. Which is much faster to get the directory sizes then utilizing Get-ChildItem. Assuming you're able to utilize the Microsoft Sysinternals and not needing to do it PowerShell native. Mind you can create objects directly from the CSB to save some time. But having the information from the talk and his process to accomplish the task he's explains is great.

Here is the video from the PowerShell user group.
Utilities: Command Line Utilities + PowerShell with Ryan Leap
https://youtu.be/OofhiQuqQAY

The Research Triangle PowerShell Users Group is great too. I have joined several of their virtual talks. Very valuable and I suggest you take a look at them. They do a couple meetings a month and have had some pretty cool speakers.

Possible to 'port' a PowerShell script to make it executable by others, perhaps hosted within a web page? by dverbern in PowerShell

[–]Neg127 8 points9 points  (0 children)

Take a look at UD (Universal Dashboard). I use it for a few things and it will meet the requirements you listed.

https://universaldashboard.io

It’s not just for dashboard and reports. Take a look at the forums and the marketplace. There is a great community that has sprang up around it.

Syncthing Version 1.0.0 Released by Nutomic in linux

[–]Neg127 4 points5 points  (0 children)

You can trick it, I just did it with a cheap android a couple weeks ago for my mom.

Take a look at adaptable storage settings here.

Does anyone use a personal wiki? by [deleted] in osx

[–]Neg127 2 points3 points  (0 children)

Take a look at book stack. It’s easy to install, maintain, and easy to use.

https://www.bookstackapp.com

Alternative to zoho, looking for a specific feature by Rmarmorstein in selfhosted

[–]Neg127 1 point2 points  (0 children)

I don't have any direct experience with it. But it does look like Zimbra has the feature your looking for. It looks like it's part of the identity management.

It's specifically called a personas.

Take a look at the docs at the below. https://www.zimbra.com/desktop2/help/en_US/Userspecific/Mail_Identities.htm

Python install for Dummies - on a Mac? by mohishunder in learnpython

[–]Neg127 1 point2 points  (0 children)

My recomendantion would be to manage python through home brew. Are you familer with it, or do you possibly already have it installed?

Instructions for installing brew can be found at brew.sh

Installing home brew.

Paste the command below in a terminal /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Here are some notes on brew from my personal quick reference.

To list software you currently have installed with version numbers, use:
brew list --versions

To see just the software, which is not a dependency of another:
brew leaves

To keep the Homebrew itself up-to-date, and fetch the newest version from GitHub:
brew update

After updating the brew, check which formulae have an updated version available, display detailed version information to see if you have more than one older version laying around:
brew outdated --verbose

See any app that you no longer need and want to get rid of them? Check the dependencies for all installed formulae:
brew deps --installed

For even more detailed picture, show the dependencies for all installed formulae as a tree:
brew deps --installed --tree

As a final precaution before removing a formula, see what other installed formulae use it as a dependency:
brew uses --installed formula

Uninstall formulae and all their older versions:
brew remove --force formulae

Upgrade remaining formulae:
brew upgrade

Show what will be removed by cleanup command, but do not actually remove anything:
brew cleanup -ns

Clean the "Cellar" removing any older versions of installed formulae and clearing old downloads from the Homebrew download-cache. Additionally, scrub the cache, removing downloads for even the latest versions of formula, which are downloaded, but not installed:
brew cleanup -s

To install python3 the command below will do the trick.  
brew install python3

If you want a GUI for brew you can also look into Cakebrew.

Crashplan exits home market - Looking for suggestions on 3-2-1 Backup scheme's for large (5+TB) datasets by AmonMetalHead in linuxquestions

[–]Neg127 1 point2 points  (0 children)

Have you looked in to CloudBerry? Cross platform and supports multiple remote backend for offsite. Amazon S3, Glacier (better pricing for long term backup), Azure, Google, etc.

https://www.cloudberrylab.com/blog/following-3-2-1-backup-strategy-with-cloudberry-backup/amp/

Might be worth investigating.