Skip to content

Instantly share code, notes, and snippets.

View olegopro's full-sized avatar
😃
Ищу работу на FullStack (Laravel+Vue/TS)

Oleg Desyatnikov olegopro

😃
Ищу работу на FullStack (Laravel+Vue/TS)
View GitHub Profile
@alexchexes
alexchexes / chatgpt_ui_fix.user.js
Last active December 2, 2025 08:51
ChatGPT web-interface width fix (and other UI improvements)
// ==UserScript==
// @name ChatGPT CSS fixes
// @version 2025-11-30
// @description Adjusts the ChatGPT web UI for convenience: wider chat area, colored message bubbles, clearer code blocks, multi-line history items, and a few other tweaks for heavy ChatGPT use. ❤️ If you like this, consider buying me a coffee: ko-fi.com/alexchexes ❤️
// @updateURL https://gist.github.com/alexchexes/d2ff0b9137aa3ac9de8b0448138125ce/raw/chatgpt_ui_fix.user.js
// @downloadURL https://gist.github.com/alexchexes/d2ff0b9137aa3ac9de8b0448138125ce/raw/chatgpt_ui_fix.user.js
// @author alexchexes
// @website https://ko-fi.com/alexchexes
// @namespace http://tampermonkey.net/
// @match https://chat.openai.com/*
@steven-michaud
steven-michaud / ThirdPartyKexts.md
Last active December 7, 2025 19:16
Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

As of macOS 12 (Monterey), Apple's Virtualization framework has nice support for macOS guest virtual machines, but with severe limitations: For example you can't install a macOS guest on Intel Macs, install guests with newer versions of macOS than the host, copy and paste between the host and the guest, or install third party kernel extensions in the guest. As usual for Apple, the functionality they do support is nicely implemented, but they've left out so much that the result is only marginally useful -- at least compared to

@jerrydeakins
jerrydeakins / remove_idea_etc
Last active July 9, 2024 14:34
Как удалить любую папку, в т.ч. и .idea, и лишние файлы из Git
Как удалить любую папку, в т.ч. и .idea, и лишние файлы из Git
Создаем файл .gitignore в корне репозитария с содержимым:
.idea
logs/
------------------------------------------------------------------
Подробнее можно ознакомиться на странице: https://git-scm.com/book/ru/v1/Основы-Git-Запись-изменений-в-репозиторий
Удаляем ненужные папки и файлы при синхронизации в Git репозиторий
@bendasvadim
bendasvadim / remove-from-git-index.txt
Last active May 6, 2025 06:32
GIT. Как полностью удалить файл из истории
1. Нужно найти все коммиты, которые изменяли файл:
git log --pretty=oneline --branches -- BIGFILE.ZIP
2.1 Удалить ссылки на файл из всей истории коммитов, начиная с последнего (пусть, хеш последнего коммита - 6df7640):
git filter-branch --index-filter 'git rm --cached BIGFILE.ZIP --ignore-unmatch' --prune-empty --tag-name-filter cat -- --all
2.2 Удалить ссылки на каталог из истории коммитов:
git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch BIG/DIR' --prune-empty --tag-name-filter cat -- --all
3. Отправляем изменения на сервер:
@zmts
zmts / tokens.md
Last active December 3, 2025 15:55
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

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

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@carlodaniele
carlodaniele / custom_menu_admin.php
Last active July 5, 2025 14:27
A basic plugin showing how to add menu metaboxes to admin menu page
<?php
/**
* @package Custom_menu_admin
* @version 1.0
*/
/*
Plugin Name: Custom menu admin
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin
Author: Carlo Daniele