Skip to content

Instantly share code, notes, and snippets.

@gokulapap
gokulapap / cookie_stealer.js
Last active April 1, 2025 07:35
simple cookie stealer script
@zmts
zmts / tokens.md
Last active April 1, 2025 07:34
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@mnik01
mnik01 / llm-applied-to-front-end.md
Last active April 1, 2025 07:32
Применения LLM во front-end’e и не только

cover

В основном LLM'ки упрощают жизнь в рутинных задачах и ускоряют работу

Warning

Воспринимайте ответы от LLM со скепсисом. Не передавайте в LLM'ки секреты и чувствительные данные


Примеры использования

IMG_7581

100% Whole Wheat Slicing Bread

Nearly all whole "wheat bread" you buy in the store, and in most bakeries, is made with only some whole wheat flour. Usually, the majority of the flour in the loaf is actually processed white flour. This is because whole wheat flour is more difficult to for bakers work with, and also more expensive to use (whole wheat flour costs more, and has a much shorter shelf life than white flour).

In the US, loaves containing even a small portion of whole wheat flour can be labelled and sold as "whole wheat bread." You'll need to look for "100% whole wheat bread" to get bread that truly whole wheat, but even then its often loaded up with added sugar. For better taste and quality, make your own loaf using the recipe below: just 30 minutes prep, 90 minutes rise, 45 minutes bake, and its done. And the finished loaf has essentially no sugar content (near 0g per slice).

This easy, delicio

Easy Telemetry Disable for 10/11

Prerequisites

  1. Upgrade to Enterprise edition of Windows 10/11 if you are running Home or Pro.
    • You can do this through the Change Edition option in the Extras menu in MAS.

Disabling Telemetry via Group Policy

  1. Open the Group Policy Editor. Search for "Edit Group Policy" in search or run gpedit.msc.
@larskanis
larskanis / outlook_imap_login.rb
Last active April 1, 2025 07:22
This is how to access the online service of Microsoft Office 365 by IMAP protocol in Ruby. It uses OAUTH2 authentication through the browser.
#
# This is how to access the online service of Microsoft Office 365 by IMAP protocol in Ruby.
#
# It uses OAUTH2 authentication through the browser.
# The authentication is done with the Thunderbird client_id, so that it should work equally to your Thunderbird access.
#
# Adjust your mail address:
email_address = '[email protected]'
@K1ethoang
K1ethoang / Active StarUml version 6 for Window | MacOS | Linux.md
Last active April 1, 2025 07:21
Active StarUml version 6 for Window | MacOS | Linux
@jblang
jblang / rc2014.md
Last active April 1, 2025 07:19
RC2014 Links
@sgoguen
sgoguen / tree-calculus.fsx
Created January 14, 2025 17:28
A Gödelian Encoding for Tree Calculus
// The irony of this snippet is that Tree Calculus, unlike Lambda Calculus, is a
// system that was designed to be reflective so one doesn't have to resort to things
// like Gödelian numbering systems or other schemes in order for it to reason about
// its own programs.
// But seeing how I know little to nothing about Tree Calculus, I figured this would be
// an interesting way to explore it.
// Interestingly enough, this snippet was written one month before reading this post:
// https://github.com/barry-jay-personal/blog/blob/main/2025-01-06-diagonal.md
#!/usr/bin/env bash
# set -e: exit on command failure
# set -u: error on using undefined variables
# set -o pipefail: fail a pipeline if any command within it fails
set -euo pipefail
# ---------------------------------------------------------------------------
# CLI script that updates or reads a value from a JSON file using jq.
# By default, it targets /Applications/Cursor.app/Contents/Resources/app/product.json,