Skip to content

Instantly share code, notes, and snippets.

You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.

Directly using the latest release of the extension

Using the latest stable release of PSAT extension in Chrome OS is as easy as going to the Chrome Webstore and installing the extension. No additional steps needed to install the extension directly from the Chrome Webstore

Building the Extension locally

  1. Set up Linux in Chrome OS.
    Ref: https://support.google.com/chromebook/answer/9145439?hl=en
  2. Install NVM
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
@gagan0123
gagan0123 / setup-local-domains.sh
Created May 10, 2024 06:24
Setup local domains for Privacy Sandbox Demos
#!/bin/bash
# IP address all domains should point to
IP_ADDRESS="127.0.0.1"
HOSTS_FILE="/etc/hosts"
# Backup the existing hosts file
sudo cp "$HOSTS_FILE" "${HOSTS_FILE}.bak"
# Privacy Sandbox Demo Domains to be added or updated

There are lots of command lines which can be used with the Google Chrome browser. Some change behavior of features, others are for debugging or experimenting. This page lists the available switches including their conditions and descriptions. Last automated update occurred on 2018-10-20.

Condition Explanation
-- Report pseudo allocation traces. Pseudo traces are derived from currently active trace events.
--/prefetch:1 /prefetch:# arguments to use when launching various process types. It has been observed that when file reads are consistent for 3 process launches with the same /prefetch:# argument, the Windows prefetcher starts issuing reads in batch at process launch. Because reads depend on the process type, the prefetcher wouldn't be able to observe consistent reads if no /prefetch:# arguments were used. Note that the browser process has no /prefetch:# argument; as such a
@gagan0123
gagan0123 / youtube.md
Created December 22, 2023 05:59 — forked from bitsurgeon/youtube.md
Markdown cheatsheet for YouTube

Embed YouTube Video in Markdown File

  1. Markdown style
[![Watch the video](https://img.youtube.com/vi/nTQUwghvy5Q/default.jpg)](https://youtu.be/nTQUwghvy5Q)
  1. HTML style
<a href="http://www.youtube.com/watch?feature=player_embedded&v=nTQUwghvy5Q" target="_blank">
@gagan0123
gagan0123 / LG infrared codes
Created July 18, 2023 07:38 — forked from francis2110/LG infrared codes
Lg infrared codes for making your own remote
on-off->20DF10EF
energy->20DFA956
av. mode->20DF0CF3
input->20DFD02F
tv/rad->20DF0FF0
1->20DF8877
2->20DF48B7
3->20DFC837
4->20DF28D7
5->20DFA857
@gagan0123
gagan0123 / sitemapPageSpeedAnalyzer.js
Created June 19, 2023 13:40
Sitemap PageSpeed Analyzer
// Importing required libraries and modules
const axios = require('axios');
const xml2js = require('xml2js');
const psi = require('psi');
const fs = require('fs');
const path = require('path');
const fastcsv = require('fast-csv');
/**
* Fetch and parse the sitemap located at the given URL.
@gagan0123
gagan0123 / test.js
Created November 30, 2022 20:35
Outdoors K6.io Checkout Testing
import { group } from 'k6'
import http from 'k6/http'
export const options = {
ext: {
loadimpact: {
distribution: { 'amazon:us:ashburn': { loadZone: 'amazon:us:ashburn', percent: 100 } },
apm: [],
},
},
#!/bin/bash
set -e
export BACKUP_SERVER="{IP of server}"
export BACKUP_SERVER_NAME="{Any-name-you-want-to-give-it}"
export BORG_REPO={borg-repo-path}
export BACKUP_DIR={backup-directory-path}
export BACKUP_USER="root"
export EXCLUDE_DBS=("information_schema" "performance_schema")
@gagan0123
gagan0123 / pi-hole.conf
Created October 29, 2021 08:00
PiHole Unbound Config with Caching
server:
# If no logfile is specified, syslog is used
# logfile: "/var/log/unbound/unbound.log"
verbosity: 0
interface: 127.0.0.1
port: 5335
do-ip4: yes
do-udp: yes
do-tcp: yes