Skip to content

Instantly share code, notes, and snippets.

@pasupulaphani
pasupulaphani / after_res_hooks.js
Last active May 1, 2024 20:37
Mongoose connection best practices
var db = mongoose.connect('mongodb://localhost:27017/DB');
// In middleware
app.use(function (req, res, next) {
// action after response
var afterResponse = function() {
logger.info({req: req}, "End request");
// any other clean ups
@ridwanbejo
ridwanbejo / Google Cloud Skill Boost - FREE!
Last active June 30, 2024 08:38
These are totally free courses from Google Cloud Skill Boost. You just need a gmail account to access thouse courses .
Google Cloud Skill Boost - FREE!
--------------------------------
Gogle Cloud Platform:
- Course
Site Reliability Engineering: Measuring and Managing Reliability -> https://www.cloudskillsboost.google/course_templates/59
Developing a Google SRE Culture -> https://www.cloudskillsboost.google/course_templates/95
import * as React from 'react';
import { DateTime } from 'luxon';
import { Calendar as CalendarIcon } from 'lucide-react';
import { Button } from '@/components/ui/Button';
import { Calendar } from '@/components/ui/Calendar';
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/Popover';
import { cn } from '@/lib/utils';
import { SelectSingleEventHandler } from 'react-day-picker';
import { Label } from '@/components/ui/Label';