Skip to content

Instantly share code, notes, and snippets.

@daverich204
daverich204 / Code.gs
Created April 16, 2024 01:58
Yahoo Finance Api V8 Example Google App Script
function yahooF(ticker) {
const url = `https://query1.finance.yahoo.com/v8/finance/chart/${ticker}`;
const res = UrlFetchApp.fetch(url, {muteHttpExceptions: true});
const contentText = res.getContentText();
const data = JSON.parse(contentText);
// Check if the result exists and has data
if (data && data.chart && data.chart.result && data.chart.result.length > 0) {
const regularMarketPrice = data.chart.result[0].meta.regularMarketPrice;
@SHSharkar
SHSharkar / deprecating-npm-package-versions.md
Created November 16, 2023 18:59
Deprecating NPM Package Versions

Deprecating NPM Package Versions

This document provides a step-by-step guide on how to deprecate specific versions of an npm package. The process involves using the npm deprecate command.

Prerequisites

  • Ensure you have npm installed and are logged in to an account with permission to publish and manage the package.
  • You should have Node.js and npm installed on your system.

Deprecation Process

@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active January 15, 2025 18:28
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@mohit-raj-purohit
mohit-raj-purohit / git-commit-message-template.md
Last active January 15, 2025 18:27
How to create a git message template for better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

Introduction

In this document, we will discuss how to set up and use Git commit message templates to write better commit messages.

Prerequisites

  • Git installed on your local machine
  • Basic understanding of Git and commit messages
@JosefNemec
JosefNemec / FlashpointLbToPlaynite.ps1
Created July 17, 2018 08:16
LB to Playnite Flashpoint exported
# I assume you have FlashPlayer emulator created to run the games
# Here's how to do it https://github.com/JosefNemec/Playnite/wiki/Adding-new-emulator
# You can also create one from script, but I don't know what's your workflow or if you need it
# Emulator should have arguments set to {ImagePath} and path pointing to flashplayer.exe location
# This gets Emulator called FlashPlayer that will run the games
$emulator = $PlayniteApi.Database.GetEmulators() | Where { $_.Name -eq "FlashPlayer" }
# $lbGames variable expects list of games you loaded from LB's xml files
Begin by enclosing all thoughts within <thinking> tags, exploring multiple angles and approaches.
Break down the solution into clear steps within <step> tags. Start with a 20-step budget, requesting more for complex problems if needed.
Use <count> tags after each step to show the remaining budget. Stop when reaching 0.
Continuously adjust your reasoning based on intermediate results and reflections, adapting your strategy as you progress.
Regularly evaluate progress using <reflection> tags. Be critical and honest about your reasoning process.
Assign a quality score between 0.0 and 1.0 using <reward> tags after each reflection. Use this to guide your approach:
0.8+: Continue current approach
0.5-0.7: Consider minor adjustments
Below 0.5: Seriously consider backtracking and trying a different approach
@troyharvey
troyharvey / deployment.yml
Last active January 15, 2025 18:24
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@prrao87
prrao87 / install_postman_mint_no_snap.md
Last active January 15, 2025 18:24
Install Postman on Linux Mint (without using snap)

Goal

Postman is a usefull app to build and test APIs, most commonly installed on ubuntu-like systems via snap. On recent distributions of Linux Mint (20 and above), snap installs are no longer possible. The instructions below show how to install Postman via the terminal.

Download Postman

$ wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz

Extract archive

$ sudo tar -xzf postman.tar.gz -C /opt

Make symlink

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 15, 2025 18:24
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@robsteriam
robsteriam / az104studymaterials.md
Last active January 15, 2025 18:21
AZ-104 Study Materials Compilation