- Sign up and sign in to Cloudflare https://dash.cloudflare.com/sign-up.
- In your Cloudflare dashboard, select the
Domain Registration > Register Domains
tab. - Search for your favorite domain and purchase it. In my case, I purchased the domain https://nivethan.me/ for my portfolio.
- Sign in to Vercel and go to your dashboard, where you can see all your projects in the
Overview
tab. - Click on a project and on the top right, select
Domains
. - Type your domain in the text box, e.g.,
nivethan.me
, and clickAdd
. - Select the recommended option:
Add www.nivethan.me and redirect nivethan.me to it
. - Vercel will show an invalid configuration under your domains and display the relevant A record IP under
nivethan.me
and a CNAME IP underwww.nivethan.me
. These need to be set up on Cloudflare to make it work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@target Illustrator | |
// script.name = textBlockLive.jsx; | |
// script.description = converts selected point textFrames into a Block of Text; | |
// script.required = one document with at least two selected Point Text frames; | |
// script.parent = carlos canto // 12/4/11; Update 03/15/205 added User Defined Units, cosmetics | |
// script.modification = sergey osokin // 08/12/23; keep text editable, sort texts by Y, cosmetics | |
// script.elegant = false; | |
function main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/sha256" | |
"fmt" | |
"io" | |
"github.com/lestrrat-go/jwx/v2/jwa" | |
"github.com/lestrrat-go/jwx/v2/jwe" | |
"golang.org/x/crypto/hkdf" |
We are trying to combine the idea of SWR ("stale-while-revalidate") and React Suspense together, and this write-up covers all our findings from this journey.
When React Hooks launched, people started to rely on useEffect
to initiate data fetching:
function User () {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
/** | |
* Gets currently open comp from timeline, as opposed to | |
* selected comp in project panel | |
* | |
* @returns {CompItem | null} Active comp, or null if none | |
*/ | |
function getFocusedComp() { | |
var activeItem = app.project.activeItem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pnp.* | |
.yarn/* | |
!.yarn/patches | |
!.yarn/plugins | |
!.yarn/releases | |
!.yarn/sdks | |
!.yarn/versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; This is a companion script for https://gist.github.com/jcherven/42b84294248674c29eb50cb711114315 | |
; Rolls back changes made by the above registry patch script | |
; Don't edit this file; save and double click to run. | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] | |
"Segoe UI (TrueType)"="segoeui.ttf" |
A dead simple React Twemoji component.
npm install --save twemoji
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
* It was requested to be introduced at as part of the jsonwebtoken library, | |
* since we feel it does not add too much value but it will add code to mantain | |
* we won't include it. | |
* | |
* I create this gist just to help those who want to auto-refresh JWTs. | |
*/ | |
const jwt = require('jsonwebtoken'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is free and unencumbered software released into the public domain. | |
// | |
// Anyone is free to copy, modify, publish, use, compile, sell, or distribute | |
// this software, either in source code form or as a compiled binary, for any | |
// purpose, commercial or non-commercial, and by any means. | |
// | |
// In jurisdictions that recognize copyright laws, the author or authors of this | |
// software dedicate any and all copyright interest in the software to the | |
// public domain. We make this dedication for the benefit of the public at large | |
// and to the detriment of our heirs and successors. We intend this dedication |
NewerOlder