Skip to content

Instantly share code, notes, and snippets.

View opchaves's full-sized avatar

Paulo Chaves opchaves

View GitHub Profile
--[[
lvim is the global options object
Linters should be
filled in as strings with either
a global executable or a path to
an executable
]]
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
@opchaves
opchaves / rename-go-imports.sh
Last active December 11, 2022 13:44
Renaming go mod and imports across the project
#!/bin/bash
for file in ./<some-regex-to-find-files>/**/*.go
do
if [ -w "$file" ]
then
echo $file
sed -i '' 's/<old_user>\/<old_project>/<new_user>\/<new_project>/g' $file
else
echo "Cannot write on $file"
@opchaves
opchaves / blog3.md
Created December 28, 2023 15:50 — forked from khushal87/blog3.md
Linking a custom domain from Google domains to Vercel app

Linking a custom domain to a deployed application is confusing and at times you don't get a route on how to link the domain with the website. 😫

In this article, I will be explaining how to link a Custom domain brought in Google Domains service to an application hosted on Vercel.

Perks of using vercel is that it allows adding domain without any verification unlike Heroku/Netlify, which means you don't have to add your billing details to add a domain to your application. Moreover, it is fast, efficient, and easy to use.😁

What is Vercel?

​Vercel is a deployment and collaboration platform for frontend developers. ​Vercel enables developers to host websites and web services that deploy instantly and scale automatically – all without any configuration. Source - Official Docs

@opchaves
opchaves / building-sync-systems.md
Last active August 21, 2024 17:35 — forked from pesterhazy/building-sync-systems.md
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles