Skip to content

Instantly share code, notes, and snippets.

View ideabrian's full-sized avatar

Brian Ball ideabrian

View GitHub Profile
import React from 'react';
import { Check, Rocket, Shield, RefreshCw, ArrowRight } from 'lucide-react';
const DRPricingCard = () => {
return (
<div className="max-w-lg mx-auto p-6">
<h1 className="text-3xl font-bold text-center mb-8 flex items-center justify-center gap-2">
<Rocket className="text-orange-500" />
Supercharge Your DR Score
</h1>
import React from 'react';
import { Check, Rocket, Shield, RefreshCw, ArrowRight } from 'lucide-react';
const DRPricingCard = () => {
return (
<div className="max-w-lg mx-auto p-6">
<h1 className="text-3xl font-bold text-center mb-8 flex items-center justify-center gap-2">
<Rocket className="text-orange-500" />
Supercharge Your DR Score
</h1>

Managing MongoDB Users with mongosh

This guide provides step-by-step instructions to deauthorize and set up new users in MongoDB using mongosh.


Prerequisites

  1. Access to MongoDB: Ensure you can connect to your MongoDB server via mongosh.
  2. Admin Access: You need a user with the userAdmin role in the admin database.

Managing MongoDB Users with mongosh

This guide provides step-by-step instructions to deauthorize and set up new users in MongoDB using mongosh.


Prerequisites

  1. Access to MongoDB: Ensure you can connect to your MongoDB server via mongosh.
  2. Admin Access: You need a user with the userAdmin role in the admin database.
@ideabrian
ideabrian / README.md
Last active November 21, 2024 14:06
DeskHub Setup Guide

Here’s the updated instructions and checklist, now combined with a clear explanation of NFC in a

DeskHub Device Setup and NFC Automation Guide

Welcome to DeskHub! Follow these instructions to set up your device and configure the NFC-based automation for Do Not Disturb (DND) mode.


What is NFC?

NFC (Near Field Communication) is a short-range wireless communication technology that allows devices to exchange information over very short distances, typically a few centimeters.

import React, { useState, useEffect } from 'react';
import {
DollarSign,
Users,
Calculator,
Target,
ChevronRight,
Star,
TrendingUp,
Zap
@ideabrian
ideabrian / worker.js
Created September 15, 2024 04:01 — forked from longseespace/worker.js
Cloudflare Worker Proxy
addEventListener('fetch', (event) => {
event.respondWith(handleRequest(event.request));
});
async function handleRequest(request) {
const url = new URL(request.url);
const { pathname, search } = url;
var newPathname = pathname;
if (pathname.startsWith('/docs')) {
newPathname = pathname.replace('/docs', '');
@ideabrian
ideabrian / gist:0e74625b54c9e7979b71aeb5f5af5ba7
Created December 7, 2023 20:24
Navigate Craigslist.org with this snippet. Paste in the "developer console" to have it available on the page.
document.addEventListener('keydown', function(event) {
// Define the key codes for navigation and activation
const navigateKey = 'ArrowRight'; // Example: Right arrow key for navigation
const activateKey = 'q'; // Use 'q' key for activation
// Handle navigation
if (event.key === navigateKey) {
navigateToNextItem();
}
@ideabrian
ideabrian / cities100.json
Last active December 16, 2022 01:12 — forked from Miserlou/cities.json
100 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@ideabrian
ideabrian / emojis.json
Created December 8, 2022 01:24 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "&#128104;&zwj;&#128105;&z