Skip to content

Instantly share code, notes, and snippets.

@awni
awni / metal_in_python.py
Last active March 7, 2026 07:28
Compile and call a Metal GPU kernel from Python
# Requires:
# pip install pyobjc-framework-Metal
import numpy as np
import Metal
# Get the default GPU device
device = Metal.MTLCreateSystemDefaultDevice()
# Make a command queue to encode command buffers to
command_queue = device.newCommandQueue()
@DF-wu
DF-wu / GeminiModels.json
Last active March 7, 2026 07:27
Google Gemini Models list.
{
"models": [
{
"name": "models/chat-bison-001",
"version": "001",
"displayName": "PaLM 2 Chat (Legacy)",
"description": "A legacy text-only model optimized for chat conversations",
"inputTokenLimit": 4096,
"outputTokenLimit": 1024,
"supportedGenerationMethods": [
@Antosik
Antosik / Internship.md
Last active March 7, 2026 07:26
IT Стажировки в Москве и России

Список IT стажировок и вакансий без опыта в Москве и России

  • Яндекс
    • Программы стажировок
      • Разработка (Python, C++, Java, Go, Kotlin, Scala, C, Flutter, фронтенд, DevOps, Android, iOS)
      • Анализ данных
      • Информационная безопасность
      • Тестирование
      • Менеджмент в IT
  • Бизнес
@tshego3
tshego3 / Complete Postman Guide Spotify API.md
Last active March 7, 2026 07:23
Here’s a comprehensive step-by-step guide on how to use Postman (Web version) to authenticate with the Spotify Web API and retrieve a user's playlists, including how to get the required access token via OAuth 2.0.

Complete Postman Guide: How to Use the Spotify API to Get a User's Playlists (With OAuth 2.0 Authentication)


Goal

Use Postman to authenticate a Spotify user and get their playlists using the Spotify Web API.


GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@Alee14
Alee14 / win-dism.md
Last active March 7, 2026 07:21
Installing Windows using CMD. (UEFI and BIOS Supported)

Installing Windows using CMD. (UEFI and BIOS Supported)

Guide created by Andrew Lee. Supports Windows 7, 8, 10, and 11.

Note that this guide does not go into detail, it's just providing the commands to install Windows.

Be cautions when doing this when dualbooting, please backup any existing data or you will lose them all.

Open CMD

First open CMD by pressing the following keys after booting into setup: Shift + F10

Creating Partition

@the-sufi
the-sufi / whmcs-show-credit-balance.php
Last active March 7, 2026 07:16
WHMCS Show Credit Balance on side panel/sidebar
<?php
/**
* code goes inside "includes/hooks" directory
*/
//for customizing nav menu items
use WHMCS\View\Menu\Item as MenuItem;
//for interacting with DB
use Illuminate\Database\Capsule\Manager as Capsule;
@Sharique55
Sharique55 / Building-Software-using-OpenAI-Codex.md
Created June 15, 2025 16:16
🚀 Ultimate step-by-step guide to building software using OpenAI Codex — includes code samples, workflows, best practices, and VS Code integrations! Perfect for AI-assisted development beginners & pros! 🔥

🧠 How to Build Software Using OpenAI Codex – Step-by-Step Guide

A full-blown guide to building complete software projects using OpenAI's Codex—step by step. From setting up the API to generating, testing, and deploying code using Codex (via Playground, API, or GitHub Copilot).


📘 What is OpenAI Codex?

OpenAI Codex is a large language model by OpenAI, specialized in code generation. It powers:

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@johnathanmay
johnathanmay / logitech-mx-master-3-extras-for-linux-with-logiops.md
Last active March 7, 2026 07:12
How to install and configure PixlOne's logid to program Logitech MX Master 3 buttons on Linux.

Logitech MX Master 3 Extras for Linux With logiops

The Logitech Options program isn't available for Linux, but by a nice guy on GitHub (PixlOne) created an open source project that lets you obtain some of that functionality. It's called logiops. It works in conjunction with the Solaar project as well, which I find especially handy since that shows your available battery life in the system tray and lets you pair/unpair devices with the Logitech Unifying Receiver.

Here are some additional pages with info that I used to generate this documentation: