Hi, I’m Wei! 馃憢

I’m a software engineer that is passionate about creating quality and efficient software. I have experience building web applications with Java, Angular, Javascript, and HTML/CSS.

iPhone Call Menu Automation

With rise in Automated Call Menus, it has become tedious to get past complex menu options. Fortunately iPhone has a built in option to automate this process. Below, I am using Fidelity as an example, as it requires you to login using an numeric representation of your username and password. As my password is very complex, this guide streamlines the process and saves me 1-5 minutes each time I call Fidelity....

July 7, 2023 路 2 min 路 256 words 路 Wei Wang

Powershell Resume Script

Scripts to generate company email specific CV/Resume PDF(s). This is useful for job application email filtering. work.email@my_domain.com will be work.company_name@my_domain.com. The mailto link for the email will also be updated accordingly. CreatePDF.ps1 Creates a PDF by prompted input text in user Desktop. $TextFile = Read-Host -Prompt 'File name' $TextFile = $TextFile.ToLower().Replace(' ', '') $Word = New-Object -ComObject Word.Application $Word.Visible = $false $word.DisplayAlerts = "wdAlertsNone" $Filename = "\path\to\folder\my_resume.docx" $NewFileName = $Filename.Replace(".docx","") $Document = $Word....

February 14, 2023 路 2 min 路 353 words 路 Wei Wang

Duplicati Nextcloud Backup Script

When Duplicati backups and restores Nextcloud files, we want to enable maintenance mode. However by default, Duplicati runs scripts on every operation including when it lists the restore folders, which we don鈥檛 want. The following scripts prevents Duplicati from running the script when it鈥檚 only listing the restore folders. NextcloudOn.sh Script to turn on Nextcloud Maintenance mode #!/bin/bash if [ "%DUPLICATI__OPERATIONNAME%" != "List" ] then nextcloud.occ maintenance:mode --on fi exit 0 NextcloudOff....

February 13, 2023 路 1 min 路 130 words 路 Wei Wang

Duplicati Setup on Ubuntu

Package Repository Setup Adding Mono Repository Add the Mono repository to your system as Duplicati requires mono in order to work. sudo apt install gnupg ca-certificates sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update sudo apt install mono-devel gtk-sharp2 Downloading Duplicati Get the url of the latest version of Duplicat from this link. Run wget to download the file. Replace the link below with the link you got from above....

February 13, 2023 路 3 min 路 481 words 路 Wei Wang