• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Misc

Windows Curl Command

January 11, 2023

If you have to download a file from the Internet on a Windows server, can certainly use the browser. But if the browser is rendering the file instead of downloading them, you may have to use the curl command which is already pre-installed on most Windows servers. Just open the command line. Here’s the the curl command to download a file.

curl.exe --output index.txt --url https://website.domain/index.txt

curl.exe --output index.txt --url https://website.domain/index.txt

Filed Under: Misc Tagged With: curl, download, server, windows

Hide All Windows Except Current

September 10, 2022

Less clutter is good. There are times when there’s too many windows in our desktop. Having less clutter leads to better focus. Here’s how to hide all Windows on a Mac OS except for the current or active one.

Command + Option + h

Command + Option + h

I wished there was a command to bring them all back, but I have not found one yet.

Filed Under: Misc

Windows Check If Port is Listening

March 3, 2022

Here’s how to check if port is listening on a Windows Server.

Log in to the destination server.

netstat -ano | find "443" | find "LISTEN"
tasklist /fi "PID eq "443"

netstat -ano | find "443" | find "LISTEN" tasklist /fi "PID eq "443"

Filed Under: Misc Tagged With: check, listening, netstat, port, tasklist, windows

Github SSH Keys Setup

November 11, 2021

Here’s how to setup your SSH keys to work with Github.

Generate a key using ed25519 public-key signature system.

ssh-keygen -t ed25519

ssh-keygen -t ed25519

It creates a id_ed25519.pub file.

Go to Github.com and open up Settings > SSH & GPG keys.

Click New SSH key. Give a title and paste your pub key. Authorize.

Filed Under: Misc

Where in Windows

October 6, 2021

How to find where the executable is located in Windows? Use the where command in CMD.

where gcloud
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\gcloud
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd

where gcloud C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\gcloud C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd

It will list multiple locations if you have several versions installed on your system.

Filed Under: Misc Tagged With: command, executable, location, where, windows

Sublime Text Terraform Syntax

August 4, 2021

If you use Terraform and Sublime Text, add Terraform Syntax Highlighter using Package Control.

Press Ctrl+Shift+P or Cmd+Shift+P.
Select “Package Control: Install package”
Select “Terraform”

Press Ctrl+Shift+P or Cmd+Shift+P. Select “Package Control: Install package” Select “Terraform”

It should install in a few seconds.

Filed Under: Misc Tagged With: highlighter, sublime text 3, syntax, terraform

Tomcat Install

June 4, 2021

Tomcat requires JRE.

wget jre-8uversion-linux-x64.tar.gz
# or
apt-get install default-jdk

wget jre-8uversion-linux-x64.tar.gz # or apt-get install default-jdk

Install Tomcat 8 on Linux.

wget https://mirrors.gigenet.com/apache/tomcat/tomcat-8/v8.5.66/bin/apache-tomcat-8.5.66.tar.gz
tar zxpvf apache-tomcat-8.5.66.tar.gz
cd /opt/tomcat/apache-tomcat-8.5.66/bin/
./startup.sh

wget https://mirrors.gigenet.com/apache/tomcat/tomcat-8/v8.5.66/bin/apache-tomcat-8.5.66.tar.gz tar zxpvf apache-tomcat-8.5.66.tar.gz cd /opt/tomcat/apache-tomcat-8.5.66/bin/ ./startup.sh

Status|Start|Stop|Restart Tomcat.

systemctl status tomcat8
systemctl start tomcat8
systemctl stop tomcat8
systemctl restart tomcat8

systemctl status tomcat8 systemctl start tomcat8 systemctl stop tomcat8 systemctl restart tomcat8

Filed Under: Misc Tagged With: apache, install, restart, server, start, status, stop, tomcat, web

BitWarden

March 11, 2021

I changed password managers from LastPass to BitWarden the other day. Migrating your credentials requires exporting and importing a CSV file from one program to another. It was an easy transition. Everything seems to work. As you may be aware, LastPass decided to make their free account limited to just one device. Customers will need to choose which device to use, whether desktop or mobile. Not both. If you want it on multiple devices, you’ll need to fork up $3 per month. It is not that expensive, but there are other alternatives. A few recommend BitWarden. It will let you sync to all devices for free. It was an easy choice.

Filed Under: Misc Tagged With: bitwarden, lastpass, managers, password

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 6
  • Go to Next Page »
  • Home
  • About
  • Archives

Copyright © 2023