get-hotfix

How to find out if a Windows Server was last patched. From Powershell, run this command. get-hotfix From the command line, run this command. C:\> systeminfo.exe Or from the menu, follow these steps. Open the Windows Settings UI. Click on Update & security. Click on the "Update history" link located under the Windows Update tab.

December 10, 2019 · 1 min · ulysses

audacity on catalina

If you’ve recently upgraded your Mac to Catalina or Mac OS 10.15.1, you may have noticed that Audacity is no longer working. To get it working, you’ll need to download version Audacity 2.3.3. However, installing and running it normally the way you’ve done it in the past will not be enough. Because of Catalina, Audacity is not able to gain permissions to the microphone inputs. The only way I was able to get it working is to launch Audacity from the Terminal. ...

December 8, 2019 · 1 min · ulysses

gcp create filestore

GCP Cloud Filestore is a managed file storage service for applications that require a filesystem interface and a shared filesystem for data. Filestore gives users a simple, native experience for standing up managed Network Attached Storage (NAS) with their Google Compute Engine and Kubernetes Engine instances. With that said, let’s build one. gcloud filestore instances create nfs-server \ --project=[PROJECT_ID] \ --zone=us-central1-c \ --tier=STANDARD \ --file-share=name="vol1",capacity=1TB \ --network=name="default" How to mount the filestore on clients. ...

December 7, 2019 · 1 min · ulysses

aws cli add user

Here’s how to add an AWS user using the CLI. aws iam create-user --user-name john.doe \ --tags Key='Name',Value='John Doe' Key='Role',Value='Admin' Create an access key for the user. aws iam create-access-key --user-name john.doe

December 4, 2019 · 1 min · ulysses

ffmpeg convert ts to mp4

If you have video files that are formatted in MPEG-2, video files with a .m2ts extension, you can convert them to MP4 using ffmpeg. ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4 The video is encoded using open format H.264, while audio is encoded using AAC.

December 4, 2019 · 1 min · ulysses

windows boot time

Here’s how to find when a Windows server was last rebooted. systeminfo | find /i "boot time"

December 2, 2019 · 1 min · ulysses

mac os catalina

I’ve updated my system to the latest Mac OS 10.15.1 codenamed Catalina. Well, it broke a couple of apps that I use regularly, Audacity and OBS. There are currently no updates from Audacity. However, OBS has a workaround in terms of a test build. You have to download it, and set the system preferences to allow the Mac OS to access the cameras (webcam) and audio devices (microphones). There are no official releases yet from neither Audacity and OBS projects. Maybe in a couple of months.

December 1, 2019 · 1 min · ulysses

aws cli add network interface

Create a new interface via AWS CLI with static IP. $ aws ec2 create-network-interface \ --subnet-id subnet-xxxxxxx \ --description "second ip" \ --groups sg-xxxxxxx \ --private-ip-address 10.0.0.16

November 27, 2019 · 1 min · ulysses

set immutable attribute

If you don’t want a file edited or deleted, you can set the immutable attribute to ON. If activated, not even root or the owner of the file can delete it. Users with write access can still read it, but they obviously will not be able to modify it. To unset it, just use the -i option. # Set immutable attribute sudo chattr +i text.txt # Unset immutable attribute sudo chattr -i text.txt

November 27, 2019 · 1 min · ulysses

tcpdump

Tcpdump is a command line utility that allows you to capture and analyze network traffic going through your system. It is often used to help troubleshoot network issues. # Find out if tcpdump is installed $ which tcpdump /usr/sbin/tcpdump # Install tcpdump sudo yum install -y tcpdump # Find which interface is available to you tcpdump -D # Capture on eth0. Use Ctrl-C to end capture. tcpdump -i eth0 # Capture after 10 packets tcpdump -i eth0 -c10 # Filter by port tcpdump -i any -c10 -nn port 80 # Filter by ip address tcpdump -i any -c10 -nn host 192.168.1.23 # Filter by source or destination ip tcpdump -i any -c10 -nn src 192.168.1.23 tcpdump -i any -c10 -nn dst 192.168.1.23 # Filter by destination ip and port tcpdump -i any -c5 -nn src 192.168.1.23 and port 80 # Save output to a file (binary format) tcpdump -i any -c10 -nn -w http.pcap port 80 # Save output to a file (text format) tcpdump -nn -r http.pcap Here’s a good intro article about tcpdump.

November 27, 2019 · 1 min · ulysses