Welcome
My name is Ulysses. Sr. Cloud Engineer at Cardinal Health.
About This Website
This is my static site based on Hugo.
My name is Ulysses. Sr. Cloud Engineer at Cardinal Health.
This is my static site based on Hugo.
If you want to host Git repositories on your desktop or server, then give Gitea a try. Create a new directory. mkdir gitea cd gitea To install, just use Docker Compose to keep it simple. Create a docker-compose.yml file and add the following code below. networks: gitea: external: false services: server: image: docker.gitea.com/gitea:1.25.3 container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 restart: always networks: - gitea volumes: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "222:22" Start Gitea. You will be asked to create a new Gitea account and password. ...
Here’s another great Terminal or CLI tool for navigating files and directories. To install, just use your package manager. In this case, it’s apt. apt install yazi brew install yazi To run, just type yazi. $ yazi If text is not readable, search online for catppuccin yazi theme. Download the file and paste it to ~/.config/yazi/theme.toml. mkdir ~/.config/yazi touch ~/.config/yazi/theme.toml vi ~/.config/yazi/theme.toml Rerun yazi. The new theme should be activated. $ yazi
Convert is an awesome program. Here’s another way of converting JPG to PDF. convert input.jpg output.pdf If you don’t have it installed, run: apt install imagemagick Just run convert thereafter. That is all.
If you like hosting a photo gallery on your own desktop or server, give Immich a try. I installed mine on my Linux Mint desktop using docker compose. (1). Create a directory. mkdir immich; cd immich (2). Download a couple of files. wget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env (3). Customize the .env file with your custom values. UPLOAD_LOCATION= DB_DATA_LOCATION= DB_PASSWORD= (4). Start the container. docker compose up -d (5). Finally, access the gallery from your browser. ...
Portainer is an enterpise container management platform to deploy, troubleshoot and secure Kubernetes, Docker and Podman environments. I run several containers using docker-compose. I was curious installing Portainer to see if there’s any value to this tool. I’m using docker-compose again to install Portainer. (1). Setup Portainer mkdir ~/code/docker/portainer cd ~/code/docker/portainer vi docker-compose.yml (2). Paste content into docker-compose.yml file. version: "3" services: portainer: image: portainer/portainer-ce:latest container_name: portainer ports: - 9000:9000 volumes: - portainer_data:/data - /var/run/docker.sock:/var/run/docker.sock restart: unless-stopped volumes: portainer_data: (3). Run Portainer. ...
There are times you need to get a list of subdirectories in Shell/Bash. Here’s a simple script that reads a certain directory and then lists then. # Function to get subdirectories in a given directory get_subdirectories() { dir="/home/ulysses/code11" # Initialize an empty array to store subdirectories local subdirectories=() # Check if the given path is a directory if [ -d "$dir" ]; then # Loop through the contents of the directory for item in "$dir"/*; do # Check if the item is a directory if [ -d "$item" ]; then subdirectories+=("$item") fi done else # not a valid directory return 1 fi # Return the array of subdirectories echo "${subdirectories[@]}" } # Example usage subdirs=$(get_subdirectories) if [[ $? -eq 0 ]]; then for source_dir in $subdirs; do srcDir=$(basename "$source_dir") echo $srcDir done else echo "The path is not a valid directory." fi The script checks if directory is available or mounted. List subdirectories on directory that’s given.
Ever since Microsoft acquired Github, many developers are re-evaluating their use of GitHub. Reasons why developers are leaving GitHub. Opposition to AI practices. Major point of contention is GitHub’s use of public code to train AI models like Copilot. Risk of Single-Point Control. GitHub has been known to unilaterally ban repositories or accounts at any time. Performance and UI Issues. Users report that GitHub’s web interface has become slow, resource-hungry and requires JavaScript. Intrusive Community Management. The platform is criticized for constantly pushing new, often unwanted features, etc. Inadequate Community Management. Project maintainers find GitHub’s tools insufficient for managing large communities. Reasons why developers are moving to Codeberg. ...
If you find yourself scratching your head as to why your Jekyll site is not working, pay attention to the errors when you run ‘build.’ Most likely the errors you see will give you clues to what’s going on during the rebuild. In my case it was a simple CSS error. It is surprising that a small syntax CSS error can bring down Jekyll. Perform the following steps to troubleshoot your Jekyll site. ...
Here are just a few quality choices between $100-$600 range. Manufacturer Features TLB Mallorca Goodyear welted, refined craftmanship Bridlen Goodyear welted, box calf full grain leather Blkbrd Hand-welted footwear, artisan craftmanship Meermin Goodyear welted, elegance and versatility CNES Hand-welted crafted shoes Skolyx Goodyear welted, box calf full grain leather These are legacy shoes - which were once the standard, but quality is no longer the same as it once was. ...
There’s a command to close a browser tab or window from zsh on a Mac OS. You have to specify which browser you’re using. As well as the current URL of the tab. osascript -e 'tell application "Google Chrome" to close (tabs of windows whose URL contains "uly.me")' Give it a try.