Gregory Varghese
  • About Me
  • Labs
  • GitHub
  • My Work Setup
  • My Photography Blog
  • Contact Me
  • About Me
  • Labs
  • GitHub
  • My Work Setup
  • My Photography Blog
  • Contact Me
  • Categories
  • All
  • Administration
  • Solutions
  • Troubleshooting
  • Tips and Tricks
  • Development
23rd March 2023
AIDevelopment

AI Experiments Featuring Monkeys

I was experimenting with AI writing and images and was experimenting. My initial testing was for serious subject matters, and it proved to be surprisingly well-written.

I decided to experiment to see how absurd things could get and was not disappointed. Here's the first result.

Continue Reading
0
312
6th January 2023
AdministrationSoftwareSolutionsTips and TricksToolsTroubleshootingUtilitiesWindowsWindows 10Windows 7Windows 8

How to Delete Folder with Special Character in Windows 10/11

I ran into an issue where a folder was created by some application with a special Unicode character that Windows Explorer doesn't seem to play nicely with. I also was unable to tell what the character was since nothing would reveal it. The folder's there, but you can't rename or delete it. If I tried to remove or delete it, I'd get an error saying the folder doesn't exist:

Continue Reading
0
401
14th November 2022
DevelopmentLaravelMacMAMPPHPProgramming

Using Laravel Vite with MAMP

As seen in other posts, I use MAMP quite a bit for my web development environment. I know I can run docker, or any of the other platforms out there but they use more memory and resources that I'd prefer to devote to my dev tools.

I started a new Laravel project and wanted to use MAMP but Vite was throwing errors due to the SSL not matching out of the box.

When adding

Continue Reading
2
386
1st August 2022
Uncategorized

Deploying Storybook via Gitlab Pipeline via SFTP

This is an update to my previous script to deploy Storybook to S3 via Gitlab Pipelines. We're running a dev server on EC2 and I wanted to be able to deploy the project using SFTP. This assumes you already created a new user account on the FTP server.

Create an SSH key on your local machine and save it without a password using the following command:

Continue Reading
0
271
11th January 2022
DevelopmentGatsbyProgrammingWeb Development

Add GTM to Gatsby using Helmet

One of my devs needed to add Google Tag Manager (GTM) to an older Gatsby project we built and he was running into issues implementing the GTM code provided by Google since the react-google-tag-manager package required a newer version of Gatsby and its dependencies.

The issue turned out to be that the strings needed to be escaped for Helmet/React to process it correctly. If you're using an older version of Gatsby, the snippet below should help you add GTM and call your events as needed. Just add it to your main template file.

Continue Reading
0
203
23rd October 2021
AdministrationDevelopmentGitlabPipelinesTips and TricksTools

How to deploy a React app to Amazon S3 using Gitlab CI/CD

I've been trying to build more CI/CD scripts using Gitlab to automate pipeline deployments for work. Here's a useful one for building and deploying a React app to Amazon S3.

You'll need to add a variable called S3_BUCKET_NAME to your repo or replace the variable with your bucket path.

Continue Reading
0
313
4th January 2021
AdministrationBitbucketDevelopmentDigital OceanDropletJigsawLaravelLaravelPHPPHPPipelinesProgrammingSolutionsTips and TricksToolsTroubleshootingWeb Development

How to Setup CI/CD of Jigsaw Site to Digital Ocean Droplet Using Bitbucket Pipelines

I created a new personal resume site and decided I wanted to build a static site since it wouldn't be frequently updated. I evaluated Nuxt, Gatsby, and a few others but settled on Jigsaw, a static site generator based on Laravel. I had never used it before and figured this would be a good learning experience while building something I needed. I was pleasantly surprised by how easy it is to use and setup, so kudos to the Tighten team for putting together such an elegant solution.

I wanted to get a CI/CD pipeline configured to handle the site's deployment but couldn't find any working tutorials, so I'm sharing my solution in case it helps others. I'm using Bitbucket for this since it's a personal private repo, so I'm using Bitbucket Pipelines.

Continue Reading
0
425
28th July 2020
Backblaze B2DevelopmentLaravelLaravelPHPPHPProgrammingWeb Development

How to use Backblaze B2 with Laravel

I am working on a Laravel project and decided to use a Backblaze bucket as it's cheaper for storage when compared to AWS S3. I couldn't find a tutorial on how to get it working from scratch and I tested a bunch of Laravel B2 libraries that didn't end up working. The good news is that you don't need a special B2 plugin and instead can use the S3 package recommended by the Laravel docs.

If you haven't added the flysystem-aws-s3 package, add it to your project using composer:

Continue Reading
2
377
4th May 2020
AdministrationCloudGitlabTips and Tricks

How to Setup a CI/CD Pipeline for Storybook.js using Gitlab

I just spent a few hours setting up a Gitlab pipeline to deploy a Storybook.js site. Of course the end result ended up being much simpler than I made it out to be. Like everything else on my blog, I'm sharing in case anyone else can use the information to save time.

Just put this in your gitlab-ci.yml and it'll take care of caching the node modules and building your static version of Storybook to deploy.

Continue Reading
0
377
8th April 2020
AdministrationApplicationsC#c#DevelopmentOpen SourceProgrammingSoftwareSolutionsTips and TricksToolsTroubleshootingUtilitiesWindowsWindows 10Windows 7Windows 8Windows ServerWindows Server 2008Windows Server 2012

How to Clear Archive & Read-only flags on Files in Windows in Bulk

I ran into an issue where I had to move files from one system to another and was running into issues because files had been set as read-only, had the archive flag set, or both. It was causing the system to skip files which wasn't acceptable. Normally you could just use Windows to clear it in bulk, but that could potentially mess up file permissions. I needed a way to automatically just clear all flags but respect permissions.

I did some searching and didn't find a utility that would do the job and most of the solutions I found required Powershell which wasn't available on the system I was on. I ended up writing a quick console application in C# to do the trick. I've made it free and open sourced it in case anyone wants to use it.

If you need just the app, you can find the release build here with instructions. The app also prompts for input to make things a bit easier to use. There's no install, no tracking or metrics, or anything else related to privacy concerns in this app. It's a simple throwaway utility to get the job done and move on.

https://github.com/gregvarghese/clearflags/releases/tag/1.0.0

If you want to see the source code, that is available here:
https://github.com/gregvarghese/clearflags/

Please note that I did this in about 10 minutes for my own use so error handling is pretty much non-existent. I mention this because I did run into one issue where Windows was somehow seeing a folder with files in it as a file and it couldn't be deleted or renamed and the utility couldn't get past it until it was resolved. I didn't spend much time debugging and just used my Mac to rename the folder and Windows was able to recognize it after the change, so the utility was able to continue processing.

Continue Reading
0
452
Page 2 of 10
Newer Posts
  • 1
  • 2
  • 3
  • 4
  • …
  • 10
Older Posts

Tags

.NET (4) Administration (24) AI (3) Applications (13) ASP.NET (8) ASP.NET MVC (2) C# (6) Caution (4) Debug (6) Development (23) digital ocean (2) Errors (9) ESET (3) Excel (2) Fix (22) High CPU Usage (2) IIS (3) Javascript (5) jQuery (4) laravel (7) linux (6) Mac (17) MAMP (3) Microsoft (5) NTFS (2) Open Source (3) Outlook (2) Outlook 2011 (4) Photography (2) php (4) Programming (9) review (2) Sitecore (2) Software (7) Solutions (43) SQL (4) SSL (3) Tips (35) Tools (5) Troubleshooting (27) Useful (22) Utilties (8) Windows (14) Windows 7 (4) Windows Server (2)

Categories

  • Administration 66
    • Caution 3
    • Cloud 8
      • Cloudflare 1
      • Digital Ocean 6
        • Droplet 5
      • Namecheap 1
    • Hardware 4
      • Drobo 3
    • IIS 2
    • Linux 9
      • Apache 1
      • SSH 7
        • Terminal 4
      • Ubuntu 16.04 1
    • Mac 14
      • Software 5
        • Alfred 1
        • MacFusion 1
        • MAMP 3
        • pCloud 1
        • PHPStorm 1
      • Terminal 9
        • bun.sh 1
    • Review 1
    • Security 6
      • ESET 4
      • Firewall 1
    • SQL 3
      • 2008 1
      • DTSX 1
      • mySQL 1
    • Stupid Tales 2
    • Windows 46
      • Applications 16
      • Malware 2
      • NTFS 2
      • PowerShell 2
      • Software 21
        • Excel 3
        • Outlook 1
        • Peerblock 1
        • Remote Desktop 1
          • RDC 1
        • SourceTree 1
        • Steam 1
        • Synergy 1
        • Visio 1
        • Visual Studio 2013 1
        • Word 1
        • Wordpress 2
          • Hack 2
      • Tips and Tricks 35
      • Tools 23
      • Utilities 19
      • Windows 10 2
      • Windows 7 9
      • Windows 8 4
      • Windows Server 3
        • Windows Server 2008 2
        • Windows Server 2012 2
  • Body Hacking 1
    • Diet 1
    • Soylent 1
  • Development 35
    • AI 3
    • Bitbucket 3
      • Pipelines 3
    • c# 2
    • CouchDB 1
    • Github 3
    • Gitlab 2
    • Open Source 4
    • ORM 1
      • Dapper 1
    • PHP 8
      • Laravel 8
        • Jigsaw 1
    • PHPStorm 2
    • Sitecore 2
    • SourceTree 1
    • Syncfusion 1
  • Mac 13
    • iCloud 1
    • Outlook 2011 2
    • Safari 1
  • Photography 3
    • Food 1
    • Rockstars 1
    • Uproar Festival 2012 1
    • Wolves 1
  • Products 3
    • Backblaze B2 1
    • Reviews 2
  • Programming 32
    • ASP.NET 7
      • MVC 1
    • AWS 1
      • Rekognition 1
    • C# 3
    • Gatsby 1
    • Javascript 2
    • jQuery 3
      • Fancybox 1
    • MonoTouch 1
    • PHP 7
      • Laravel 7
        • Tinker 1
    • Regex 1
    • Sitecore 2
    • SQL 1
    • SSL 2
    • VBA 2
      • Microsoft Word 1
    • Web Development 10
      • JavaScript 2
    • WinForms 2
  • Raspberry Pi 1
  • Recipe 1
  • Self Experimentation 1
  • Troubleshooting 46
    • Solutions 45
  • Uncategorized 11

Archives

  • May 2025 (1)
  • August 2024 (1)
  • July 2024 (3)
  • March 2024 (1)
  • January 2024 (1)
  • September 2023 (2)
  • March 2023 (2)
  • January 2023 (1)
  • November 2022 (1)
  • August 2022 (1)
  • January 2022 (1)
  • October 2021 (1)
  • January 2021 (1)
  • July 2020 (1)
  • May 2020 (1)
  • April 2020 (1)
  • February 2020 (1)
  • September 2019 (1)
  • August 2019 (3)
  • July 2019 (1)
  • June 2019 (1)
  • May 2019 (4)
  • October 2018 (1)
  • July 2018 (1)
  • May 2018 (1)
  • April 2018 (2)
  • November 2017 (1)
  • October 2017 (1)
  • June 2017 (1)
  • May 2017 (1)
  • November 2016 (1)
  • October 2016 (2)
  • September 2016 (1)
  • June 2016 (2)
  • May 2016 (4)
  • February 2016 (1)
  • January 2016 (1)
  • October 2015 (1)
  • September 2015 (1)
  • July 2015 (1)
  • June 2015 (1)
  • May 2015 (3)
  • April 2015 (1)
  • March 2015 (1)
  • February 2015 (1)
  • July 2014 (1)
  • June 2014 (1)
  • May 2014 (1)
  • December 2013 (2)
  • September 2013 (1)
  • July 2013 (1)
  • May 2013 (2)
  • March 2013 (2)
  • February 2013 (1)
  • September 2012 (1)
  • August 2012 (4)
  • July 2012 (1)
  • March 2012 (1)
  • November 2011 (1)
  • September 2011 (4)
  • July 2011 (3)
  • June 2011 (2)
  • February 2011 (1)
  • August 2010 (1)
  • May 2010 (1)
  • October 2007 (1)

Continue Reading
Gregory Varghese

Recent Posts

  • How to Extract SSL Certificates from a PFX File on macOS
  • Supercharge Your Laravel Development and Get AI to Understand Your Models
  • How to Take Ownership of Files and Folders Using PowerShell
  • How to add case insensitive where in Laravel
  • How to Move Files by Partial File Name to New Directory on Mac using a shell script

Copyright © Gregory Varghese. 2025 • All rights reserved.

Published with WordPress.