Bascially all you really need is this
location / {
try_files $uri $uri/ $uri.html $uri.php$is_args$query_string;
}
But to be on the safe side I added everything below:
import { render } from '@react-email/render'; | |
import fs from 'fs'; | |
import path from 'path'; | |
import React from 'react'; | |
// Get a list of all files in the 'emails' directory | |
const emailFiles = fs.readdirSync('./emails'); | |
// Create a new directory named 'build' if it doesn't exist | |
if (!fs.existsSync('build')) fs.mkdirSync('build'); |
Twitter ID, Screen name, Followers | |
12,jack,6526006 | |
13,biz,2608289 | |
20,ev,1679155 | |
57,SarahM,17448 | |
59,Tim535353,9340 | |
76,marciadorsey,19501 | |
224,davepell,57523 | |
291,goldman,916937 | |
295,joshk,149086 |
# Node. | |
brew install node | |
brew install n | |
n lts | |
brew uninstall node # Not needed anymore from brew. | |
npm i -g git-open |
Bascially all you really need is this
location / {
try_files $uri $uri/ $uri.html $uri.php$is_args$query_string;
}
But to be on the safe side I added everything below:
You can open the Marketplace tab and search for the current LAMP stack.
We will use the LAMP stack on a Basic plan for 5$/month.
php -v
# if php 8 then
The package linked to from here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.https://jennamolby.com/how-to-use-cookies-to-capture-url-parameters/ | |
let YOUR_DOMAIN = "YOUR_DOMAIN.TLD" // ex: scrapingbee.com | |
function getParameterByName(name) { | |
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), | |
results = regex.exec(location.search); | |
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
} |
const decoration = plugin(function ({ e, addUtilities, theme }) { | |
colors = theme('colors'); | |
const decorationColors = Object.keys(colors).reduce((acc, key) => { | |
if (typeof colors[key] === 'string') { | |
return { | |
...acc, | |
[`.decoration-${e(key)}`]: { | |
'text-decoration-color': colors[key], | |
}, |
I was poking around trying to figure out all the packages I have access to publish and got curious. So I write this little script to determine the download stats for all the packages I have publish access to.
Feel free to try it yourself. Just change the username passed to getUserDownloadStats
.
By default, the stats are sorted by their average daily downloads (descending). That should give you an idea of the most "popular" package of a given user relative to how long that package has been around.
You can use it with npx
like so:
const MY_DOMAIN = "agodrich.com" | |
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2" | |
const DISQUS_SHORTNAME = "agodrich" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", |