This file contains 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
# For development purposes, note Next.js supports a .env.local | |
# file, which is already configured to be git ignored. | |
# Read more about Next.js support of environment variables here: | |
# https://nextjs.org/docs/basic-features/environment-variables | |
# The public URL to use for absolute URLs, which are required when | |
# the Next.js app is run within Sitecore editors. | |
# This should match the `serverSideRenderingEngineApplicationUrl` | |
# in your Sitecore configuration (see \sitecore\config\sxastarter.config). | |
# Be sure to update these values accordingly as your public endpoint changes. |
This file contains 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
#usage: | |
#{% loop_directory directory:images iterator:image filter:*.jpg sort:descending %} | |
# <img src="{{ image }}" /> | |
#{% endloop_directory %} | |
module Jekyll | |
class LoopDirectoryTag < Liquid::Block | |
include Liquid::StandardFilters | |
Syntax = /(#{Liquid::QuotedFragment}+)?/ |
This file contains 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
import { clinics, PrismaClient } from "@prisma/client"; | |
import * as fs from "fs"; | |
import * as path from "path"; | |
import * as csv from "fast-csv"; | |
const prisma = new PrismaClient(); | |
type ClinicsCsvRow = Omit<clinics, "date_created" | "date_updated">; | |
async function main() { |
This file contains 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
{ | |
"name": "packages", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"private": true, | |
"scripts": { | |
"start": "concurrently \"wsrun --parallel start\"" | |
}, | |
"workspaces": [ |
This file contains 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
#!/bin/bash | |
read -p "Are you sure you want to go to production? <y/N> " prompt | |
if [[ $prompt =~ [yY](es)* ]] | |
then | |
echo "---- UPDATE example.net SITE ----" | |
HOST="ftp.example.net" | |
USER="username" | |
PASS="password" | |
FTPURL="ftp://$USER:$PASS@$HOST" | |
LCD="/Users/username/Sites/project-name" |
This file contains 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
var nodemailer = require('nodemailer'); | |
var fromEmail = 'jgatjens@gmail.com'; | |
var fromPassword = ''; | |
var toEmail = ['z1priano@gmail.com']; | |
// Defined transport | |
var transporter = nodemailer.createTransport({ | |
service: 'Gmail', |
This file contains 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
import { NextRequest, NextResponse } from 'next/server' | |
export function middleware(req: NextRequest) { | |
const basicAuth = req.headers.get('authorization') | |
if (basicAuth) { | |
const auth = basicAuth.split(' ')[1] | |
const [user, pwd] = Buffer.from(auth, 'base64').toString().split(':') | |
if (user === '4dmin' && pwd === 'testpwd123') { |
This file contains 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
var nodemailer = require('nodemailer'); | |
var fromEmail = 'jgatjens@gmail.com'; | |
var fromPassword = '****'; | |
var toEmail = ['makod3v@gmail.com']; | |
// Defined transport | |
var transporter = nodemailer.createTransport({ | |
service: 'Gmail', |
This file contains 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
// share variables with javascript (webpack) | |
variables.scss | |
:export { | |
--hww-dark-blue: #0d2126; | |
--hww-blue: #00b0e0; | |
--hww-light: #ffffff; | |
--hww-secondary-green: #57bf9e; | |
--hww-secondary-yellow: #e8c71c; | |
--hww-secondary-red: #de2b47; |
NewerOlder